1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/migrations
Piotr Sarnacki 75f8ac6ea7 Implemented ActiveRecord::Migrations#copy based on James Adam's idea
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
2010-09-03 22:59:09 +02:00
..
broken Made migrations transactional for PostgreSQL [#834 state:resolved] 2008-08-22 14:46:25 -07:00
decimal
duplicate
duplicate_names Added protection against duplicate migration names (Aslak Hellesøy) [#112 state:resolved] 2008-05-11 13:37:29 -05:00
interleaved
missing
to_copy Implemented ActiveRecord::Migrations#copy based on James Adam's idea 2010-09-03 22:59:09 +02:00
to_copy_with_timestamps Implemented ActiveRecord::Migrations#copy based on James Adam's idea 2010-09-03 22:59:09 +02:00
valid
valid_with_timestamps Implemented ActiveRecord::Migrations#copy based on James Adam's idea 2010-09-03 22:59:09 +02:00