In a Rails 4 project using comfortable_mexican_sofa gem for content management, how do you change the default database table names?
I'd like to remove the 'comfy_' prefix so they are just 'cms_blocks', 'cms_pages', etc...
In a Rails 4 project using comfortable_mexican_sofa gem for content management, how do you change the default database table names?
I'd like to remove the 'comfy_' prefix so they are just 'cms_blocks', 'cms_pages', etc...
class ComfyWhateverElseMore < ActiveRecord::Base
self.table_name = "whatever_you_wish"
end
For reference consider the api docs