Flowdock
method

table_name=

Importance_1
v3.2.3 - Show latest stable - 0 notes - Class: 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.

Show source
Register or log in to add new notes.