database.yml.erb 338 B

12345678910
  1. <%- @databases.each do |env, db| %>
  2. <%= (env =~ /_default/ ? "production" : env) %>:
  3. adapter: <%= db['adapter'] %>
  4. host: <%= @host %>
  5. database: <%= db['database'] %>
  6. username: <%= db['username'] %>
  7. password: <%= db['password'] %>
  8. encoding: <%= db.has_key?('encoding') ? db['encoding'] : 'utf8' %>
  9. reconnect: true
  10. <%- end %>