Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ irb
- 2.2.3 :001 > require 'yaml'
- => true
- 2.2.3 :002 > config = YAML.load_file('config.yml')
- => {"development"=>{"adapter"=>"postgresql", "encoding"=>"unicode", "pool"=>5, "host"=>"localhost", "database"=>"customers_db_development", "username"=>"foo", "password"=>"bar"}, "test"=>{"adapter"=>"postgresql", "encoding"=>"unicode", "pool"=>5, "host"=>"localhost", "database"=>"customers_db_test", "username"=>"foo", "password"=>"bar"}, "production"=>{"adapter"=>"postgresql", "encoding"=>"unicode", "pool"=>5, "host"=>"localhost", "database"=>"customers_db_test", "username"=>"customers_db", "password"=>"adfkj3d8vjt4fjashd36"}}
- 2.2.3 :003 >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement