lib/sequel_rails/railties/database.rake in sequel-rails-0.6.1 vs lib/sequel_rails/railties/database.rake in sequel-rails-0.7.0
- old
+ new
@@ -31,10 +31,10 @@
task :load => :environment do
file = ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb"
if File.exists?(file)
require 'sequel/extensions/migration'
load(file)
- ::Sequel::Migration.descendants.first.apply(db_for_current_env, :up)
+ ::Sequel::Migration.descendants.each{|m| m.apply(db_for_current_env, :up)}
else
abort %{#{file} doesn't exist yet. Run "rake db:migrate" to create it then try again. If you do not intend to use a database, you should instead alter #{Rails.root}/config/boot.rb to limit the frameworks that will be loaded}
end
end
end