Advertisement
Guest User

Untitled

a guest
Mar 6th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.71 KB | None | 0 0
  1. # MySQL. Versions 5.1.10 and up are supported.
  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. #   https://dev.mysql.com/doc/refman/5.7/en/password-hashing.html
  11. #
  12. default: &default
  13.   adapter: mysql2
  14.   encoding: utf8
  15.   pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  16.   username: root
  17.   password:
  18.   host: localhost
  19.  
  20. development:
  21.   <<: *default
  22.   database: NOMBRE_DE_LA_APP_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: NOMBRE_DE_LA_APP_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: NOMBRE_DE_LA_APP_production
  53.   username: NOMBRE_DE_LA_APP
  54.   password: <%= ENV['NOMBRE_DE_LA_APP_DATABASE_PASSWORD'] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement