diff options
author | Robert Nesius <nesius@gmail.com> | 2012-11-16 23:20:59 -0600 |
---|---|---|
committer | Robert Nesius <nesius@gmail.com> | 2012-11-16 23:20:59 -0600 |
commit | 716222c66488dc463642cbd24a3a543e4932ecee (patch) | |
tree | c307436dc1f54649d33368d80634d264770d967e /railties/lib | |
parent | 154fee2727ff279937b1f812f8dfed847f8e5555 (diff) | |
download | rails-716222c66488dc463642cbd24a3a543e4932ecee.tar.gz rails-716222c66488dc463642cbd24a3a543e4932ecee.tar.bz2 rails-716222c66488dc463642cbd24a3a543e4932ecee.zip |
Adding sqlserver.yml template to satisfy "-d sqlserver" being given
invocations of "rails new".
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml b/railties/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml new file mode 100644 index 0000000000..b52b733c56 --- /dev/null +++ b/railties/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml @@ -0,0 +1,57 @@ +# SQL Server (2005 or higher recommended) +# +# Install the adapters and driver +# gem install tiny_tds +# gem install activerecord-sqlserver-adapter +# +# Ensure the activerecord adapter and db driver gems are defined in your Gemfile +# gem 'tiny_tds' +# 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 + +development: + adapter: sqlserver + encoding: utf8 + reconnect: false + database: <%= app_name %>_development + username: <%= app_name %> + password: + timeout: 25 + dataserver: from_freetds.conf + + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + adapter: sqlserver + encoding: utf8 + reconnect: false + database: <%= app_name %>_test + username: <%= app_name %> + password: + timeout: 25 + dataserver: from_freetds.conf + +production: + adapter: sqlserver + encoding: utf8 + reconnect: false + database: <%= app_name %>_production + username: <%= app_name %> + password: + timeout: 25 + dataserver: from_freetds.conf |