Hi
how to migrate in between versions ? suppose if i have version 1-76 .
if i want to revert from 57-65 then what should i do ?without affecting data of migrations from 66-76.Please help
Sijo
Hi
how to migrate in between versions ? suppose if i have version 1-76 .
if i want to revert from 57-65 then what should i do ?without affecting data of migrations from 66-76.Please help
Sijo
'rake db:migrate VERSION=x' (where 'x' is the migration number)
I'm not sure if it is possible to do what you want using rake. Generally speaking in the development environment, while data loss can be inconvenient the data is rarely considered to be crucial - the critical data is what is used in the production environment.
If you really do have to save what you have in the tables that would be lost, you can backup the data from the database and then restore it once rake recreates the empty tables. The method to do this depends on which database platform you are using, with MySQL for example you would use mysqldump.
Gareth
Hi Thanks