diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-20 19:35:45 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-20 19:35:45 -0700 |
| commit | b1bac85f2c8b55e92f0472cbe4e548beb74743d0 (patch) | |
| tree | ecf290992c11ef8ebbb27cc5ecdc5457733d282c /config | |
| parent | 12e544beb49702b876ce0cbd104d881d86b53383 (diff) | |
remove sqlite and use pg.
Diffstat (limited to 'config')
| -rw-r--r-- | config/database.yml | 32 | ||||
| -rw-r--r-- | config/database.yml.example | 13 |
2 files changed, 24 insertions, 21 deletions
diff --git a/config/database.yml b/config/database.yml index 51a4dd4..95db128 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,25 +1,15 @@ -# 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 + adapter: postgresql + encoding: unicode + database: licenses_dev pool: 5 - timeout: 5000 + username: mo + password: password + host: localhost -# 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 + adapter: postgresql + database: licenses_test + username: mo + password: password + host: localhost diff --git a/config/database.yml.example b/config/database.yml.example new file mode 100644 index 0000000..e598daf --- /dev/null +++ b/config/database.yml.example @@ -0,0 +1,13 @@ +development: + adapter: postgresql + database: licenses_dev + username: <username> + password: <password> + host: <hostname or ip address. eg.: localhost> + +test: + adapter: postgresql + database: licenses_test + username: <username> + password: <password> + host: <hostname or ip address. eg.: localhost> |
