Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $ irb
  2. 2.2.3 :001 > require 'yaml'
  3. => true
  4. 2.2.3 :002 > config = YAML.load_file('config.yml')
  5. => {"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"}}
  6. 2.2.3 :003 >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement