Skip to content

Commit d2a69c9

Browse files
committed
Merge pull request TalentBox#6 from tchandy/master
Fixing database.rake tasks
2 parents 394dfcd + 0340fe3 commit d2a69c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sequel_rails/railties/database.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace :db do
3434
if File.exists?(file)
3535
require 'sequel/extensions/migration'
3636
load(file)
37-
SequelRails::Migration.descendants.first.apply(db_for_current_env, :up)
37+
::Sequel::Migration.descendants.first.apply(db_for_current_env, :up)
3838
else
3939
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}
4040
end
@@ -66,7 +66,7 @@ namespace :db do
6666
task :drop, [:env] => :environment do |t, args|
6767
args.with_defaults(:env => Rails.env)
6868

69-
Rails::Sequel::Storage.adapter_for(args.env).drop
69+
SequelRails::Storage.adapter_for(args.env).drop
7070
end
7171

7272
namespace :migrate do

0 commit comments

Comments
 (0)