mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
App generate says sqlite3 is the default and mentions frontbase. Closes #10550 [Cheah Chu Yeow, Will Cannings]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
f6379bfe15
commit
2556e67403
1 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,9 @@ class AppGenerator < Rails::Generator::Base
|
|||
Config::CONFIG['ruby_install_name'])
|
||||
|
||||
DATABASES = %w(mysql oracle postgresql sqlite2 sqlite3 frontbase)
|
||||
DEFAULT_DATABASE = 'sqlite3'
|
||||
|
||||
default_options :db => (ENV["RAILS_DEFAULT_DATABASE"] || "sqlite3"),
|
||||
default_options :db => (ENV["RAILS_DEFAULT_DATABASE"] || DEFAULT_DATABASE),
|
||||
:shebang => DEFAULT_SHEBANG, :freeze => false
|
||||
mandatory_options :source => "#{File.dirname(__FILE__)}/../../../../.."
|
||||
|
||||
|
@ -119,8 +120,8 @@ class AppGenerator < Rails::Generator::Base
|
|||
"Default: #{DEFAULT_SHEBANG}") { |v| options[:shebang] = v }
|
||||
|
||||
opt.on("-d", "--database=name", String,
|
||||
"Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite2/sqlite3).",
|
||||
"Default: mysql") { |v| options[:db] = v }
|
||||
"Preconfigure for selected database (options: #{DATABASES.join('/')}).",
|
||||
"Default: #{DEFAULT_DATABASE}") { |v| options[:db] = v }
|
||||
|
||||
opt.on("-f", "--freeze",
|
||||
"Freeze Rails in vendor/rails from the gems generating the skeleton",
|
||||
|
|
Loading…
Reference in a new issue