lib/sinator/templates/Rakefile.erb in sinator-3.0.1 vs lib/sinator/templates/Rakefile.erb in sinator-3.0.2

- old
+ new

@@ -16,10 +16,10 @@ <% if @with_database %> namespace :db do desc "Run migrations" task :migrate, [:version] do |t, args| Sequel.extension :migration - db = Sequel.connect(YAML.load_file("#{Sinator::ROOT}/config/database.yml")[ENV['APP_ENV']]) + db = Sequel.connect(YAML.load_file("#{Sinator::ROOT}/config/database.yml")[ENV['RACK_ENV']]) migration_path = "#{Sinator::ROOT}/db/migrations" if args[:version] puts "Migrating to version #{args[:version]}" Sequel::Migrator.run(db, migration_path, target: args[:version].to_i)