Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Usewicz <piotr@layer22.com>
  • Loading branch information
Paweł Kondzior authored and pusewicz committed Jan 12, 2009
1 parent 3365d07 commit 94b6921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/sequel.rake
Expand Up @@ -8,8 +8,8 @@ desc 'Sequel migration'
namespace :sequel do
task :migrate => :environment do
path = File.join(RAILS_ROOT, 'db', 'migrate')
if ARGV[1] =~ /VERSION=\d+/
Sequel::Migrator.apply(Sequel::Model.db, path, ARGV[1].split('=')[1].to_i)
if ENV['VERSION']
Sequel::Migrator.apply(Sequel::Model.db, path, ENV['VERSION'].to_i)
else
Sequel::Migrator.apply(Sequel::Model.db, path)
end
Expand Down

0 comments on commit 94b6921

Please sign in to comment.