Guest User

Untitled

a guest
Mar 7th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <% app_name = File.basename(File.expand_path(RAILS_ROOT)) %>
  2. development:
  3. adapter: <%= RUBY_PLATFORM =~ /java/ ? "jdbc" : "mysql" %>
  4. database: <%= app_name %>_development
  5. driver: com.mysql.jdbc.Driver
  6. url: jdbc:mysql://localhost/<%= app_name %>_development
  7. username: root
  8. password:
  9. host: localhost
  10.  
  11. test:
  12. adapter: <%= RUBY_PLATFORM =~ /java/ ? "jdbc" : "mysql" %>
  13. database: <%= app_name %>_test
  14. driver: com.mysql.jdbc.Driver
  15. url: jdbc:mysql://localhost/<%= app_name %>_test
  16. username: root
  17. password:
  18. host: localhost
  19.  
  20. production:
  21. adapter: <%= RUBY_PLATFORM =~ /java/ ? "jdbc" : "mysql" %>
  22. database: <%= app_name %>_production
  23. driver: com.mysql.jdbc.Driver
  24. url: jdbc:mysql://localhost/<%= app_name %>_production
  25. username: root
  26. password:
  27. host: localhost
Add Comment
Please, Sign In to add comment