Rails migration schema + data, quick tip.

It is good to call


when you’re using models in your migration to change data in DB,

Especially when you have two migrations changing schema for the same model. The first one will know about new columns, but the second will get ‘cached’ version.

It is mentioned in rails manuals but, of course, I would rather hit the wall first and then look for manual…

Share Button

Leave a Reply

Your email address will not be published. Required fields are marked *