Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Model with the column "type" breaks factory #43
type is a reserved column in Rails used for single-table-inheritance. Type is also a method on Object that returns the class: http://ruby-doc.org/core/classes/Object.html#M000349
So you have to set the type attribute indirectly via add_attribute.