Skip to content

Commit

Permalink
add database.yml.example
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvlopes committed Jan 30, 2010
1 parent 236d89d commit 45c6fd7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Expand Up @@ -25,7 +25,7 @@ def activate
redirect_to current_user
end

protected
protected

def collection
@users ||= User.active.all
Expand Down
29 changes: 29 additions & 0 deletions config/database.yml.example
@@ -0,0 +1,29 @@
development:
adapter: mysql
encoding: utf8
reconnect: false
database: railsmg_development
pool: 5
username: root
password: 123456
socket: /tmp/mysql.sock

test:
adapter: mysql
encoding: utf8
reconnect: false
database: railsmg_test
pool: 5
username: root
password: 123456
socket: /tmp/mysql.sock

production:
adapter: mysql
encoding: utf8
reconnect: false
database: railsmg_production
pool: 5
username: root
password: 123456
socket: /tmp/mysql.sock

0 comments on commit 45c6fd7

Please sign in to comment.