Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SQLite version 3.x
- # gem install sqlite3-ruby (not necessary on OS X Leopard)
- # Warning: The database defined as "test" will be erased and
- # re-generated from your development database when you run "rake".
- # Do not set this db to the same as development or production.
- common: &common
- # ------------------------------------
- # SQLlite
- # ------------------------------------
- adapter: sqlite3
- timeout: 5000
- <% %w(production development test staging).each do |env| %>
- <%= env %>:
- database: <%= env %>.sqllite3
- <<: *common
- <% end %>
- # ------------------------------------
- # MySQL
- # ------------------------------------
- # adapter: mysql
- # username:
- # password:
- # encoding: utf8
- # socket: <%= %w(/tmp/mysql.sock /var/run/mysqld/mysqld.sock).detect { |sock| File.exists? sock } %>
- # host: localhost
- #<% %w(production development test staging).each do |env| %>
- #<%= env %>:
- # database: project_<%= env %>
- # <% if env != "development" %>
- # password:
- # <% else %>
- # password:
- # <% end %>
- # <<: *common
- #<% end %>
Add Comment
Please, Sign In to add comment