method
table_name=
v4.2.1 -
Show latest stable
- Class:
ActiveRecord::ModelSchema::ClassMethods
table_name=(value)public
Sets the table name explicitly. Example:
class Project < ActiveRecord::Base self.table_name = "project" end
You can also just define your own self.table_name method; see the documentation for ActiveRecord::Base#table_name.