Skip to content

Commit 6e253db

Browse files
committed
Update database-example.yml for use with sqlite3
1 parent b5bc986 commit 6e253db

File tree

1 file changed

+18
-23
lines changed

1 file changed

+18
-23
lines changed

config/database-example.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
development:
2-
adapter: postgresql
3-
encoding: unicode
4-
database: rails_template_development
5-
pool: 5
6-
username:
7-
password:
81

9-
staging:
10-
adapter: postgresql
11-
encoding: unicode
12-
database: rails_template_development
2+
# SQLite version 3.x
3+
# gem install sqlite3
4+
#
5+
# Ensure the SQLite 3 gem is defined in your Gemfile
6+
# gem 'sqlite3'
7+
development:
8+
adapter: sqlite3
9+
database: db/development.sqlite3
1310
pool: 5
14-
username:
15-
password:
11+
timeout: 5000
1612

13+
# Warning: The database defined as "test" will be erased and
14+
# re-generated from your development database when you run "rake".
15+
# Do not set this db to the same as development or production.
1716
test:
18-
adapter: postgresql
19-
encoding: unicode
20-
database: rails_template_test
17+
adapter: sqlite3
18+
database: db/test.sqlite3
2119
pool: 5
22-
username:
23-
password:
20+
timeout: 5000
2421

2522
production:
26-
adapter: postgresql
27-
encoding: unicode
28-
database: rails_template_production
23+
adapter: sqlite3
24+
database: db/production.sqlite3
2925
pool: 5
30-
username:
31-
password:
26+
timeout: 5000

0 commit comments

Comments
 (0)