You do not have to do anything. The Rails' .underscore method translates' FileURL 'to' file_url 'and will search for a file with the same base name in the download path.
If ActiveRecord does not guess the correct table name, use set_table_name:
class FileURL < ActiveRecord::Base set_table_name "file_urls" .. end
source share