lib/migration_tools/tasks.rb in migration_tools-0.1.3 vs lib/migration_tools/tasks.rb in migration_tools-0.1.4

- old
+ new

@@ -59,9 +59,12 @@ else pending_migrations.each do |migration| migration.migrate(:up) migrator.send(:record_version_state_after_migrating, 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 end end end end