Guest User

Untitled

a guest
Feb 20th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. # SQLite version 3.x
  2. # gem install sqlite3-ruby (not necessary on OS X Leopard)
  3.  
  4. # Warning: The database defined as "test" will be erased and
  5. # re-generated from your development database when you run "rake".
  6. # Do not set this db to the same as development or production.
  7.  
  8.  
  9. common: &common
  10. # ------------------------------------
  11. # SQLlite
  12. # ------------------------------------
  13. adapter: sqlite3
  14. timeout: 5000
  15. <% %w(production development test staging).each do |env| %>
  16. <%= env %>:
  17. database: <%= env %>.sqllite3
  18. <<: *common
  19. <% end %>
  20.  
  21. # ------------------------------------
  22. # MySQL
  23. # ------------------------------------
  24. # adapter: mysql
  25. # username:
  26. # password:
  27. # encoding: utf8
  28. # socket: <%= %w(/tmp/mysql.sock /var/run/mysqld/mysqld.sock).detect { |sock| File.exists? sock } %>
  29. # host: localhost
  30. #<% %w(production development test staging).each do |env| %>
  31. #<%= env %>:
  32. # database: project_<%= env %>
  33. # <% if env != "development" %>
  34. # password:
  35. # <% else %>
  36. # password:
  37. # <% end %>
  38. # <<: *common
  39. #<% end %>
Add Comment
Please, Sign In to add comment