I have a Rails app running over a MySql DB.
Is there a way to consolidate migrations? for example:
lets say I have a very large table called members and I create a migration to add column name to that table, later on I create another migration that adds another field address and adds index to the address field.
when i run the migration now, it will change the table 3 times: add name, add address and add index. and in each of the times, the alter table command will actually create a new table, copy all the data to it and drop the old table.
in my case, the members table is very big, over 10M records so each alter takes a few hours.
is there a way to consolidate the changes into one alter?