I have a Model class called Countries and I want it to map to a DB table called 'cc'.
How is that done in Rails?
This question is related to
ruby-on-rails
class Countries < ActiveRecord::Base
self.table_name = "cc"
end
In Rails 3.x this is the way to specify the table name.
Source: Stackoverflow.com