diff --git a/README.rdoc b/README.rdoc index ea8251d68..793e922a1 100644 --- a/README.rdoc +++ b/README.rdoc @@ -59,6 +59,13 @@ built with Ruby on Rails. * Insert `gem 'activerecord-jdbcmssql-adapter'` into Gemfile and execute `bundle install` * Edit `config/database.yml` for the connection to SQL Server Database (see `config/database.yml.sample`) +== For MRI and SQL Server 2014 / Azure SQL Database (v12) (Not Official support) +* Insert `gem 'tiny_tds' into Gemfile +* Insert `gem 'activerecord-sqlserver-adapter' into Gemfile +* Execute `bundle install` +* Edit `config/database.yml` for the connection to SQL Server Database (see `config/database.yml.sample`) + + == RESTful API * See https://github.com/kaznum/sanataro/wiki/RESTful-API diff --git a/config/database.yml.sample b/config/database.yml.sample index 3d334ea90..ae32922d1 100644 --- a/config/database.yml.sample +++ b/config/database.yml.sample @@ -17,6 +17,23 @@ production: # password: # +## For Azure SQL Database (v12) / SQL Server 2014 with MRI adapter +## 1. insert "gem 'activerecord-sqlserver-adapter'" in Gemfile and execute 'bundle install' +## 2. uncomment the following lines and replace <...> for your environment +## 3. set 'azure: true' when used with Azure SQL Database. +## See, for details, https://github.com/rails-sqlserver/activerecord-sqlserver-adapter +# +# production: +# adapter: sqlserver +# encoding: utf8 +# collation: Japanese_CS_AS +# host: examplehost.database.windows.net +# database: +# username: @examplehost +# password: +# azure: true +# timeout: 10000 + development: adapter: sqlite3 database: db/development.sqlite3