Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8457

Show
Ignore:
Timestamp:
12/21/07 03:39:25 (2 years ago)
Author:
bitsweat
Message:

App generate says sqlite3 is the default and mentions frontbase. Closes #10550 [Cheah Chu Yeow, Will Cannings]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/rails_generator/generators/applications/app/app_generator.rb

    r8417 r8457  
    88 
    99  DATABASES = %w(mysql oracle postgresql sqlite2 sqlite3 frontbase) 
     10  DEFAULT_DATABASE = 'sqlite3' 
    1011 
    11   default_options   :db => (ENV["RAILS_DEFAULT_DATABASE"] || "sqlite3"), 
     12  default_options   :db => (ENV["RAILS_DEFAULT_DATABASE"] || DEFAULT_DATABASE), 
    1213    :shebang => DEFAULT_SHEBANG, :freeze => false 
    1314  mandatory_options :source => "#{File.dirname(__FILE__)}/../../../../.." 
     
    120121 
    121122      opt.on("-d", "--database=name", String, 
    122             "Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite2/sqlite3).", 
    123             "Default: mysql") { |v| options[:db] = v } 
     123            "Preconfigure for selected database (options: #{DATABASES.join('/')}).", 
     124            "Default: #{DEFAULT_DATABASE}") { |v| options[:db] = v } 
    124125 
    125126      opt.on("-f", "--freeze",