Skip to content

Commit

Permalink
Merge pull request datamapper#22 from two-bit-fool/master
Browse files Browse the repository at this point in the history
fix deprecated syntax on rake task
  • Loading branch information
dkubb committed Jul 21, 2011
2 parents aaa7891 + 196f37a commit ad2e10c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dm-rails/railties/database.rake
Expand Up @@ -64,12 +64,12 @@ namespace :db do
end

desc 'Migrate up using migrations'
task :up, :version, :needs => :load do |t, args|
task :up, [:version] => [:load] do |t, args|
::DataMapper::MigrationRunner.migrate_up!(args[:version])
end

desc 'Migrate down using migrations'
task :down, :version, :needs => :load do |t, args|
task :down, [:version] => [:load] do |t, args|
::DataMapper::MigrationRunner.migrate_down!(args[:version])
end
end
Expand Down

0 comments on commit ad2e10c

Please sign in to comment.