Skip to content

Commit a6ff36e

Browse files
committed
Add example database.yml
1 parent fb4ac37 commit a6ff36e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.rdoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,11 @@ Rails as of Rails 3.0.3, so we hope it will get rectified at some point.
149149

150150
=== Development and support
151151

152-
==== Set-up
152+
==== Setup
153153

154-
Create a test database configuration file <tt>test/database.yml</tt> with the following content (replace with proper dbname/username/password):
154+
Create a test database configuration file <tt>test/database.yml</tt> with the following content.
155+
If you like you can copy <tt>test/database-example.yml</tt> to <tt>test/database.yml</tt>.
156+
Replace the database, username and password with correct values.
155157

156158
adapter: mysql2spatial
157159
encoding: utf8

test/database-example.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copy this file to database.yml in the same directory and fill in the empty fields
2+
adapter: mysql2spatial
3+
encoding: utf8
4+
reconnect: true
5+
host: localhost
6+
database:
7+
username:
8+
password:

0 commit comments

Comments
 (0)