On Nov 15, 2012, at 11:01 AM, RVince wrote: > If I have a table in MySQL on an existing Rails project, how do I go to > creating a migration for it? All the examples I see online seem to be geared > to creating models and tables from a migration -- but how do I go the other > way and create a migration itself from a table? Thank you.
Look in the schema.rb. That's your "up" method, and "down" is always the same: drop_table :foo. Walter -- 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 https://groups.google.com/groups/opt_out.

