Skip to content
  • Piotr Sarnacki's avatar
    75f8ac6e
    Implemented ActiveRecord::Migrations#copy based on James Adam's idea · 75f8ac6e
    Piotr Sarnacki authored
    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
    75f8ac6e
    Implemented ActiveRecord::Migrations#copy based on James Adam's idea
    Piotr Sarnacki authored
    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
Loading