Skip to content

Commit

Permalink
Add Azure instruction [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
kaznum committed Apr 10, 2016
1 parent 513b2d4 commit 9e0c136
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.rdoc
Expand Up @@ -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

Expand Down
17 changes: 17 additions & 0 deletions config/database.yml.sample
Expand Up @@ -17,6 +17,23 @@ production:
# password: <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: <DB_NAME>
# username: <USERNAME>@examplehost
# password: <PASSWORD>
# azure: true
# timeout: 10000

development:
adapter: sqlite3
database: db/development.sqlite3
Expand Down

0 comments on commit 9e0c136

Please sign in to comment.