Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% require "uri" %>
- db_config: &db_config
- <% if ENV["DATABASE_URL"].present? %>
- <% uri = URI.parse(ENV["DATABASE_URL"]) if ENV["DATABASE_URL"].present? %>
- username: <%= uri.user %>
- password: <%= uri.password %>
- host: <%= uri.host %>
- <% else %>
- username: root
- password: 'MentorMate1'
- host: localhost
- <% end %>
- adapter: mysql2
- pool: 10
- timeout: 5000
- port: 3306
- development:
- <<: *db_config
- database: twoforone_development
- production:
- <<: *db_config
- database: twoforone_production
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement