Advertisement
Guest User

Untitled

a guest
May 24th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. # MySQL. Versions 5.0+ are recommended.
  2. #
  3. # Install the MYSQL driver
  4. # gem install mysql2
  5. #
  6. # Ensure the MySQL gem is defined in your Gemfile
  7. # gem 'mysql2'
  8. #
  9. # And be sure to use new-style password hashing:
  10. # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
  11. #
  12. default: &default
  13. adapter: mysql2
  14. encoding: utf8
  15. pool: 5
  16. username: root
  17. password:
  18. socket: /var/run/mysqld/mysqld.sock
  19.  
  20. development:
  21. <<: *default
  22. database: easyhrm_development
  23.  
  24. # Warning: The database defined as "test" will be erased and
  25. # re-generated from your development database when you run "rake".
  26. # Do not set this db to the same as development or production.
  27. test:
  28. <<: *default
  29. database: easyhrm_test
  30.  
  31. # As with config/secrets.yml, you never want to store sensitive information,
  32. # like your database password, in your source code. If your source code is
  33. # ever seen by anyone, they now have access to your database.
  34. #
  35. # Instead, provide the password as a unix environment variable when you boot
  36. # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
  37. # for a full rundown on how to provide these environment variables in a
  38. # production deployment.
  39. #
  40. # On Heroku and other platform providers, you may have a full connection URL
  41. # available as an environment variable. For example:
  42. #
  43. # DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
  44. #
  45. # You can use this database configuration with:
  46. #
  47. # production:
  48. # url: <%= ENV['DATABASE_URL'] %>
  49. #
  50. production:
  51. <<: *default
  52. database: easyhrm_production
  53. username: easyhrm
  54. password: <%= ENV['EASYHRM_DATABASE_PASSWORD'] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement