Reputation: 2704
I am wondering if Rails is capable of doing migration on the fly without locking table. For example, there are too many tools that can do this pt-online-schema-change and oak-online-alter-table. Therefore it's reasonable to assume that it's already done, are you familiar with something like this?
Upvotes: 0
Views: 446
Reputation: 2834
Funny, I just answered another similar question. You should look into https://github.com/DAddYE/mini_record
It works very similar to Datamapper. Just define or modify your column names/types right in your model and the schema gets updated automagically. Pretty cool.
I'm not sure about the locking, but you can submit an issue on that github page. The developers are very responsive and helpful.
Upvotes: 1