28 Apr '14, 9am

Apparently "type" is a reserved property in ActiveRecord. It recommends overriding inheritance_column with "zoink".

Defines the name of the table column which will store the class name on single-table inheritance situations. The default inheritance column name is type, which means it’s a reserved word inside Active Record . To be able to use single-table inheritance with another column name, or to use the column type in your own model for something else, you can set inheritance_column: self . inheritance_column = ' zoink '

Full article: http://apidock.com/rails/ActiveRecord/ModelSchema/ClassMe...

Tweets

Hashrocket Blog - Rails Quick Tips - ActiveReco...

hashrocket.com 28 Apr '14, 10pm

See the difference? When the symbol is passed, the query is built using fully qualified and properly quoted column names. ...