Migraciones de rieles sobre la marcha

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-cambio-esquema-en-línea y oak-online-alter-table. Therefore it's reasonable to assume that it's already done, are you familiar with something like this?

preguntado el 30 de enero de 12 a las 19:01

It's not Rails that locks your table, it's the database server. -

1 Respuestas

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.

Respondido el 31 de enero de 12 a las 00:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.