I've just run a migration to add a :new_column
to :my_table
. This is a serialized column (first one in entire project), so I've added the configuration to the model:
serialize :new_column, Array
My migration was as the following:
add_column :my_table, :new_column, :text
After that, I've run rake db:reset
, so as to seed new data, and checked in rails console
to ensure the data was properly added to my :new_column
. And it's all there.
So far so good, but... inside rails server
, my application will simply halt with the error:
ActiveModel::MissingAttributeError in TestController#index
missing attribute: new_column
Well, all I know is that my controller is trying to access @my_table_model.new_column
. I've also checked schema.db
, and everything is fine there.
What could be causing it?