Skip to content

Commit 2812fe5

Browse files
committed
Added database.yml template since I had gitignored the file
1 parent 2b0aeba commit 2812fe5

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
lines changed

README.rdoc

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
== README
22

3-
This README would normally document whatever steps are necessary to get the
4-
application up and running.
3+
To run the application, you'll need to include a database.yml file in the config directory
54

6-
Things you may want to cover:
5+
I have included a template named database.example.yml
76

8-
* Ruby version
7+
Use it as a guide and change the settings according to your environment and be sure to save the file as database.yml
98

10-
* System dependencies
9+
(If you're using sqlite3, just drop the .example and use as is)
1110

12-
* Configuration
1311

14-
* Database creation
15-
16-
* Database initialization
17-
18-
* How to run the test suite
19-
20-
* Services (job queues, cache servers, search engines, etc.)
21-
22-
* Deployment instructions
23-
24-
* ...
25-
26-
27-
Please feel free to use a different markup language if you do not plan to run
28-
<tt>rake doc:app</tt>.

config/database.example.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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:
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

0 commit comments

Comments
 (0)