lib/sequel_rails/railties/database.rake in sequel-rails-0.9.17 vs lib/sequel_rails/railties/database.rake in sequel-rails-1.0.0

- old
+ new

@@ -143,18 +143,18 @@ task :reset => %W(#{sequel_rails_namespace}:drop #{sequel_rails_namespace}:create #{sequel_rails_namespace}:migrate) desc 'Runs the "up" for a given migration VERSION.' task :up => :load do version = ENV['VERSION'] ? ENV['VERSION'].to_i : nil - fail 'VERSION is required' unless version + raise 'VERSION is required' unless version SequelRails::Migrations.migrate_up!(version) Rake::Task["#{sequel_rails_namespace}:dump"].invoke if SequelRails.configuration.schema_dump end desc 'Runs the "down" for a given migration VERSION.' task :down => :load do version = ENV['VERSION'] ? ENV['VERSION'].to_i : nil - fail 'VERSION is required' unless version + raise 'VERSION is required' unless version SequelRails::Migrations.migrate_down!(version) Rake::Task["#{sequel_rails_namespace}:dump"].invoke if SequelRails.configuration.schema_dump end end