instance method
gem_for_database
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
gem_for_database()
No documentation comment.
Source
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 399
def gem_for_database
# %w( mysql oracle postgresql sqlite3 frontbase ibm_db jdbcmysql jdbcsqlite3 jdbcpostgresql)
case options[:database]
when "oracle" then "ruby-oci8"
when "postgresql" then "pg"
when "sqlite3" then "sqlite3"
when "frontbase" then "ruby-frontbase"
when "mysql" then "mysql2"
when "jdbcmysql" then "activerecord-jdbcmysql-adapter"
when "jdbcsqlite3" then "activerecord-jdbcsqlite3-adapter"
when "jdbcpostgresql" then "activerecord-jdbcpostgresql-adapter"
when "jdbc" then "activerecord-jdbc-adapter"
else options[:database]
end
end
Defined in railties/lib/rails/generators/rails/app/app_generator.rb line 399
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::AppGenerator