-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.yml
34 lines (29 loc) · 844 Bytes
/
database.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# using postgres on dev and production
# so the db can be backed up or moved to from dev
# basic settings
default: &default
timeout: 5000
adapter: postgresql
encoding: unicode
pool: 5
host: localhost
database: winery
development:
<<: *default
#database: db/development.sqlite3
# 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
pool: 5
timeout: 5000
database: db/test.sqlite3
production:
<<: *default
# setup instructions for creating the database user
#sudo -u postgres createuser -s winery
#sudo -u postgres psql
#\password winery #use same password as is in the env.yml
username: winery
password: <%= ENV['APP_DATABASE_PASSWORD'] %>