static public Method

Base.inheritance_column

Defines the column name for use with single table inheritance — can be set in subclasses like so: self.inheritance_column = "type_id"

Source Code

# File active_record/base.rb, line 973
def inheritance_column
  @inheritance_column ||= "type".freeze
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.