Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%
- app = "awesome_application"
- mysql_version = case Rails.version.first.to_i
- when 3 then 'mysql2'
- when 2 then 'mysql'
- else
- raise 'Version not supported'
- end
- %>
- defaults: &defaults
- adapter: <%= mysql_version %>
- encoding: utf8
- reconnect: false
- pool: 5
- username: root
- password:
- host: localhost
- development:
- database: <%= app + "_dev" %>
- <<: *defaults
- test:
- database: <%= app + "_test" %>
- <<: *defaults
- production:
- database: <%= app + "_dev" %>
- <<: *defaults
Add Comment
Please, Sign In to add comment