Skip to content

Commit

Permalink
Merge pull request #2922 from wayneeseguin/master
Browse files Browse the repository at this point in the history
Include ActiveRecord SQLServer Adapter by @metaskills in new application generator.
  • Loading branch information
tenderlove committed Sep 7, 2011
2 parents 82de8ad + 8b63559 commit 8e79c52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions railties/lib/rails/generators/app_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
module Rails
module Generators
class AppBase < Base
DATABASES = %w( mysql oracle postgresql sqlite3 frontbase ibm_db )
DATABASES = %w( mysql oracle postgresql sqlite3 frontbase ibm_db sqlserver )
JDBC_DATABASES = %w( jdbcmysql jdbcsqlite3 jdbcpostgresql jdbc )
DATABASES.concat(JDBC_DATABASES)

Expand Down Expand Up @@ -154,12 +154,13 @@ def rails_gemfile_entry
end

def gem_for_database
# %w( mysql oracle postgresql sqlite3 frontbase ibm_db jdbcmysql jdbcsqlite3 jdbcpostgresql )
# %w( mysql oracle postgresql sqlite3 frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
case options[:database]
when "oracle" then "ruby-oci8"
when "postgresql" then "pg"
when "frontbase" then "ruby-frontbase"
when "mysql" then "mysql2"
when "sqlserver" then "activerecord-sqlserver-adapter"
when "jdbcmysql" then "activerecord-jdbcmysql-adapter"
when "jdbcsqlite3" then "activerecord-jdbcsqlite3-adapter"
when "jdbcpostgresql" then "activerecord-jdbcpostgresql-adapter"
Expand Down

0 comments on commit 8e79c52

Please sign in to comment.