tasks/db.rb in dm-migrations-0.9.11 vs tasks/db.rb in dm-migrations-0.10.0
- old
+ new
@@ -10,10 +10,10 @@
end
# set DIRECTION to migrate down
desc "Run your system's migrations"
task :migrate => [:setup_migration_dir] do
- require File.expand_path(File.join(File.dirname(__FILE__), "lib", "migration_runner.rb"))
+ require 'dm-migrations/migration_runner.rb'
require File.expand_path(File.join(MIGRATION_DIR, "config.rb"))
Dir[File.join(MIGRATION_DIR, "*.rb")].each { |file| require file }
ENV["DIRECTION"] != "down" ? migrate_up! : migrate_down!