Displaying 1 result from an estimated 1 matches for "releoad".
Did you mean:
relead
2006 Aug 11
0
Migration strategies for table dumps?
Hi,
I''m curious how folks handle situations where you want to backup
existing data in a table before performing migrations. Say, for
example, you have a column type change, and you want to preserve the
current data and later releoad that data in case something goes wrong.
Do folks manually do a Model.find(:all) and dump it to a file in, say,
yaml format in the self.up method before any schema changes occur and
then reload it in the self.down method? Perhaps as a pseudo-fixture?
Or do people use temporary tables?
What'...