Changed the default database from mysql to sqlite3, so now running "rails myapp" will have a config/database.yml thats setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run "rails -d mysql myapp" [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2007-12-16 23:22:56 +00:00
parent d8f2fea813
commit a50284d28f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Changed the default database from mysql to sqlite3, so now running "rails myapp" will have a config/database.yml that's setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run "rails -d mysql myapp" [DHH]
* Turned on ActionView::Base.cache_template_loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH]
* Introduce `rake secret` to output a crytographically secure secret key for use with cookie sessions #xxxx [update from Trac]

View File

@ -8,7 +8,7 @@ class AppGenerator < Rails::Generator::Base
DATABASES = %w(mysql oracle postgresql sqlite2 sqlite3 frontbase)
default_options :db => (ENV["RAILS_DEFAULT_DATABASE"] || "mysql"),
default_options :db => (ENV["RAILS_DEFAULT_DATABASE"] || "sqlite3"),
:shebang => DEFAULT_SHEBANG, :freeze => false
mandatory_options :source => "#{File.dirname(__FILE__)}/../../../../.."