Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

rake db:migrate fix #13

Open
wants to merge 1 commit into from

1 participant

@rhossi

fixed error Sequel::AdapterNotFound: LoadError: no such file to load -- sequel/adapters/sqlite3 when running migrate task

rhossi fixed error Sequel::AdapterNotFound: LoadError: no such file to load …
…-- sequel/adapters/sqlite3 when running migrate task
3fdedc9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 11, 2011
  1. fixed error Sequel::AdapterNotFound: LoadError: no such file to load …

    rhossi authored
    …-- sequel/adapters/sqlite3 when running migrate task
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sequel-rails/railties/database.rake
View
2  lib/sequel-rails/railties/database.rake
@@ -4,7 +4,7 @@ namespace :db do
desc "Create a db/schema.rb file that can be portably used against any DB supported by Sequel"
task :dump do
Sequel.extension :schema_dumper
- db = Sequel.connect(Rails.configuration.database_configuration[Rails.env])
+ db = Sequel.connect(::Rails::Sequel.configuration.environment_for(Rails.env))
File.open(ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb", "w") do |file|
file.write(db.dump_schema_migration)
end
Something went wrong with that request. Please try again.