Re: DB Migrations

Jimmy Kittiyachavalit
2006-12-01T09:40:20Z

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

rake db:schema:dump

Good luck.

On 11/30/06, John Oxley <john-JA4dDRuU84dWk0Htik3J/w@public.gmane.org>
wrote:
>
>
> Hi,
>
> 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
> migrations.
>
> How do I make sure that the schema_info.rb in myapp/db is current and
> accurate?
>
> TIA,
>
> -John
>
> >
>