From a6ff36e435033830a2d2faba24d751aa9af4a694 Mon Sep 17 00:00:00 2001 From: Dave Schweisguth Date: Fri, 23 Jun 2017 13:45:21 -0700 Subject: [PATCH] Add example database.yml --- README.rdoc | 6 ++++-- test/database-example.yml | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 test/database-example.yml diff --git a/README.rdoc b/README.rdoc index 147cc26..7e8f316 100644 --- a/README.rdoc +++ b/README.rdoc @@ -149,9 +149,11 @@ Rails as of Rails 3.0.3, so we hope it will get rectified at some point. === Development and support -==== Set-up +==== Setup -Create a test database configuration file test/database.yml with the following content (replace with proper dbname/username/password): +Create a test database configuration file test/database.yml with the following content. +If you like you can copy test/database-example.yml to test/database.yml. +Replace the database, username and password with correct values. adapter: mysql2spatial encoding: utf8 diff --git a/test/database-example.yml b/test/database-example.yml new file mode 100644 index 0000000..51ee5eb --- /dev/null +++ b/test/database-example.yml @@ -0,0 +1,8 @@ +# Copy this file to database.yml in the same directory and fill in the empty fields +adapter: mysql2spatial +encoding: utf8 +reconnect: true +host: localhost +database: +username: +password: