mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
75f8ac6ea7
ActiveRecord::Migration#copy allows to copy migrations from one place to another, changing migrations versions and adding scope to filename. For example: ActiveRecord::Migration.copy("db/migrate", :blog_engine => "vendor/gems/blog/db/migrate") will copy all migrations from vendor/gems/blog/db/migrate to db/migrate with such format: Versions of copied migrations will be reversioned to be appended after migrations that already exists in db/migrate |
||
---|---|---|
.. | ||
20100101010101_people_have_last_names.rb | ||
20100201010101_we_need_reminders.rb | ||
20100301010101_innocent_jointable.rb |