Skip to content

Commit

Permalink
Changed the default database from mysql to sqlite3, so now running "r…
Browse files Browse the repository at this point in the history
…ails 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
  • Loading branch information
dhh committed Dec 16, 2007
1 parent d8f2fea commit a50284d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
@@ -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]
Expand Down
Expand Up @@ -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__)}/../../../../.."

Expand Down

0 comments on commit a50284d

Please sign in to comment.