lib/migration_tools/tasks.rb in migration_tools-1.6.0 vs lib/migration_tools/tasks.rb in migration_tools-1.7.0

- old
+ new

@@ -33,13 +33,11 @@ migrations_paths, ActiveRecord::SchemaMigration ).migrations, target_version) elsif ActiveRecord::VERSION::MAJOR == 5 && ActiveRecord::VERSION::MINOR == 2 migrate_up(ActiveRecord::MigrationContext.new(migrations_paths).migrations, target_version) - elsif ActiveRecord::VERSION::MAJOR > 3 - migrate_up(ActiveRecord::Migrator.migrations(migrations_paths), target_version) else - migrate_up(migrations_paths, target_version) + migrate_up(ActiveRecord::Migrator.migrations(migrations_paths), target_version) end end def migrate_up(migrations, target_version) if ActiveRecord::VERSION::MAJOR >= 6