lib/migration_tools/tasks.rb in migration_tools-0.1.6 vs lib/migration_tools/tasks.rb in migration_tools-0.1.7

- old
+ new

@@ -56,11 +56,10 @@ notify "Please specify a migration group" elsif pending_migrations.empty? notify "Your database schema is up to date" else pending_migrations.each do |migration| - migration.migrate(:up) - migrator.send(:record_version_state_after_migrating, migration.version) + ActiveRecord::Migrator.run(:up, 'db/migrate', migration.version) end Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby Rake::Task["db:structure:dump"].invoke if ActiveRecord::Base.schema_format == :sql end