Matt Harrison wrote: > I don't know of any automatic way to generate models from an existing > schema, but as far as I know, there's nothing to stop you generating > models normally using the existing database structure.
Right. However, you'll want an accurate schema.rb file anyway. Use rake db:schema:dump to generate one. > > I guess you can then just "forget" to run the migrations, and your > models will work with your existing data. No need to "forget". Use --skip-migration, or delete the migrations without running them, or don't use the model generator at all! Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

