mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Modernize SQL Server database YAML for Linux/vNext.
This commit is contained in:
parent
d506f3def1
commit
451320c850
1 changed files with 4 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
||||||
# SQL Server (2005 or higher recommended)
|
# SQL Server (2012 or higher recommended)
|
||||||
#
|
#
|
||||||
# Install the adapters and driver
|
# Install the adapters and driver
|
||||||
# gem install tiny_tds
|
# gem install tiny_tds
|
||||||
|
@ -8,29 +8,12 @@
|
||||||
# gem 'tiny_tds'
|
# gem 'tiny_tds'
|
||||||
# gem 'activerecord-sqlserver-adapter'
|
# gem 'activerecord-sqlserver-adapter'
|
||||||
#
|
#
|
||||||
# You should make sure freetds is configured correctly first.
|
|
||||||
# freetds.conf contains host/port/protocol_versions settings.
|
|
||||||
# http://freetds.schemamania.org/userguide/freetdsconf.htm
|
|
||||||
#
|
|
||||||
# A typical Microsoft server
|
|
||||||
# [mssql]
|
|
||||||
# host = mssqlserver.yourdomain.com
|
|
||||||
# port = 1433
|
|
||||||
# tds version = 7.1
|
|
||||||
|
|
||||||
# If you can connect with "tsql -S servername", your basic FreeTDS installation is working.
|
|
||||||
# 'man tsql' for more info
|
|
||||||
# Set timeout to a larger number if valid queries against a live db fail
|
|
||||||
#
|
|
||||||
default: &default
|
default: &default
|
||||||
adapter: sqlserver
|
adapter: sqlserver
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
username: sa
|
||||||
reconnect: false
|
password: <%= ENV['SA_PASSWORD'] %>
|
||||||
username: <%= app_name %>
|
host: localhost
|
||||||
password:
|
|
||||||
timeout: 25
|
|
||||||
dataserver: from_freetds.conf
|
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
|
Loading…
Reference in a new issue