Skip to content

Commit e09800d

Browse files
committed
Add example database.yml and update README
1 parent 7b09a95 commit e09800d

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ by [Michael Hartl](http://michaelhartl.com/). You can use this reference impleme
77
$ cd /tmp
88
$ git clone git@github.com:railstutorial/sample_app_2nd_ed.git
99
$ cd sample_app_2nd_ed
10+
$ cp config/database.yml.example config/database.yml
1011
$ bundle install
1112
$ bundle exec rake db:migrate
1213
$ bundle exec rake db:test:prepare

config/database.yml.example

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SQLite version 3.x
2+
# gem install sqlite3
3+
#
4+
# Ensure the SQLite 3 gem is defined in your Gemfile
5+
# gem 'sqlite3'
6+
development:
7+
adapter: sqlite3
8+
database: db/development.sqlite3
9+
pool: 5
10+
timeout: 5000
11+
12+
# Warning: The database defined as "test" will be erased and
13+
# re-generated from your development database when you run "rake".
14+
# Do not set this db to the same as development or production.
15+
test: &test
16+
adapter: sqlite3
17+
database: db/test.sqlite3
18+
pool: 5
19+
timeout: 5000
20+
21+
production:
22+
adapter: sqlite3
23+
database: db/production.sqlite3
24+
pool: 5
25+
timeout: 5000
26+
27+
cucumber:
28+
<<: *test

0 commit comments

Comments
 (0)