Blog (activerecord)
Update: You might also want to check out reset_column_information.
So a few days ago we started seeing the following errors on our Jenkins builds (swapped with fictional model and attribute names):
NoMethodError:
undefined method `attack_power=' for #<Ironman:0x00000008525d20>
attack_power is a new attribute we recently added to the Ironman ActiveRecord model.
I was baffled, as the table column is clearly there but ActiveRecord couldn’t see it.
This weird behaviour is confirmed by ...