Baz L wrote:
> Good day all.
> Any ideas anyone?
> ThanX in advance.
Please check out 'rake --tasks', one of the tasks is 'rake
db:schema:dump' which will take your existing schema and
write a file
entitled 'db/schema.rb'. You can then take this file and
easily change
it's name to: 'db/migrate/001_initial.rb' and you are off to
the races..
prior to doing this make sure your config/database.yaml file
is pointing
to the correct db..
ohh.. and please make a dump of your database or make sure
you have a
backup prior to doing ANYTHING!!!
hth
ilan
--
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 rubyonrails-talk googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
|