Forum: Ruby on Rails migration from an existing database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D1f3d779854573da0340bf53b0b625cc?d=identicon&s=25 flaubert (Guest)
on 2008-10-20 14:40
(Received via mailing list)
hello all,


Is there some way to generate migrations from an existing database
structure? I have the schema.rb file, but it isn't enough for me. I
need the migration files....



Please help!
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-10-20 14:58
(Received via mailing list)
On 20 Oct 2008, at 13:40, flaubert wrote:

>
> hello all,
>
>
> Is there some way to generate migrations from an existing database
> structure? I have the schema.rb file, but it isn't enough for me. I
> need the migration files....
>
schema.rb is as close as you're going to get. You could always chop it
up into migrations if you really wanted to (why?)

Fred
D1f3d779854573da0340bf53b0b625cc?d=identicon&s=25 flaubert (Guest)
on 2008-10-20 15:15
(Received via mailing list)
just to store the database history with my team
This topic is locked and can not be replied to.