lib/sequel_rails/railties/database.rake in sequel-rails-0.4.0.pre vs lib/sequel_rails/railties/database.rake in sequel-rails-0.4.0.pre1

- old
+ new

@@ -32,11 +32,11 @@ task :load => :environment do file = ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb" if File.exists?(file) require 'sequel/extensions/migration' load(file) - SequelRails::Migration.descendants.first.apply(db_for_current_env, :up) + ::Sequel::Migration.descendants.first.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 @@ -64,10 +64,10 @@ desc "Create the database defined in config/database.yml for the current Rails.env" task :drop, [:env] => :environment do |t, args| args.with_defaults(:env => Rails.env) - Rails::Sequel::Storage.adapter_for(args.env).drop + SequelRails::Storage.adapter_for(args.env).drop end namespace :migrate do task :load => :environment do require 'sequel_rails/migrations'