user984621
user984621

Reputation: 48453

Rails 3 - how to update my migrations by DB schema

I updated my DB schema a I would need to update a migrations by this schema. Exist any elegant way to do it or I have to update my migrations manually?

Thank you

Upvotes: 0

Views: 583

Answers (1)

Marnen Laibow-Koser
Marnen Laibow-Koser

Reputation: 6337

You don't generate migrations from the schema.rb file. Instead, use rails generate migration, or generate them as part of your models.

Upvotes: 1

Related Questions