DB Migrations


So I've been an idiot. I haven't been using db migrations up until now.
I want to start using them. What steps do I have to take to make sure
everything is hunky dory and my existing data won't be deleted.

What I'm thinking of doing is making sure that all the migrations for
the models exist and are correct currently and set the schema_info to 20
(The number of models I have now.). I will then start using the

How do I make sure that the schema_info.rb in myapp/db is current and



I don’t know the solution to your problem, but you might want to check out

rake db:schema:dump

Good luck.

The Rails Recipes book has a good recipe for setting up migrations for
older Rails apps.