summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-18 16:01:22 -0600
committermo khan <mo@mokhan.ca>2013-07-18 16:01:45 -0600
commit78df3ba326e2e528afb8a6499db9324f445dc89a (patch)
treee303281bd48fbf1f3f8d4b79a4bf117404659714 /config
parent00ac42bda9c4643ca653b7f6ed9a89e7be917525 (diff)
move database.yml to example file
Diffstat (limited to 'config')
-rw-r--r--config/database.yml25
-rw-r--r--config/database.yml.example29
2 files changed, 29 insertions, 25 deletions
diff --git a/config/database.yml b/config/database.yml
deleted file mode 100644
index 51a4dd4..0000000
--- a/config/database.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
-development:
- adapter: sqlite3
- database: db/development.sqlite3
- pool: 5
- timeout: 5000
-
-# 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.
-test:
- adapter: sqlite3
- database: db/test.sqlite3
- pool: 5
- timeout: 5000
-
-production:
- adapter: sqlite3
- database: db/production.sqlite3
- pool: 5
- timeout: 5000
diff --git a/config/database.yml.example b/config/database.yml.example
new file mode 100644
index 0000000..aac957f
--- /dev/null
+++ b/config/database.yml.example
@@ -0,0 +1,29 @@
+development:
+ adapter: postgresql
+ encoding: unicode
+ min_messages: warning
+ database: parley_development
+ host: localhost
+ pool: 5
+ username: parley_app
+ password: postgres
+
+test:
+ adapter: postgresql
+ encoding: unicode
+ min_messages: warning
+ database: parley_test
+ host: localhost
+ pool: 5
+ username: parley_app
+ password: postgres
+
+production:
+ adapter: postgresql
+ encoding: unicode
+ min_messages: warning
+ database: parley_development
+ host: localhost
+ pool: 5
+ username: parley_app
+ password: postgres