Sathish Kumar wrote: [...] > Consider, I have deleted all the migration files from the folder > RAILS_ROOT/db/migrate/*. > > We have all the tables present in Mysql database. Now, I want to > create a migration files for all existing tables. > > Is that possible to create those? If yes, how is it? > > Even I have deleted the schema.rb file from RAILS_ROOT/db/ folder.
Just check out the migrations and schema.rb again from your version control repository, same as you would for any accidentally deleted file. 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 -~----------~----~----~----~------~----~------~--~---

