Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rails.env.production? ? (env = "production") : (env = "development")
- dbconfig = YAML::load(File.open('config/database.yml'))[env]
- ActiveRecord::Base.establish_connection(dbconfig)
- ArgumentError: syntax error on line 17, col 0: `adapter = uri.scheme'
- from /usr/local/lib/ruby/1.9.1/syck.rb:135:in `load'
- development:
- adapter: sqlite3
- database: db/development.sqlite3
- pool: 5
- timeout: 5000
- test:
- adapter: sqlite3
- database: db/test.sqlite3
- pool: 5
- timeout: 5000
- production:
- adapter: postgresql
- encoding: unicode
- database: foo
- port: 5432
- host: foobar.amazonaws.com
- username: foo
- password: bar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement