aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-27 00:23:49 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-27 00:23:49 +0000
commit660952e5b0a50fb55c1b2f3d7fbe85d7eb9c86cc (patch)
tree95a46ad17bf398e355ef79fab5a1cfa0b09cd1fb /activerecord
parentc5ff33cd7b9c0dd0340b390a48d1d385629f1134 (diff)
downloadrails-660952e5b0a50fb55c1b2f3d7fbe85d7eb9c86cc.tar.gz
rails-660952e5b0a50fb55c1b2f3d7fbe85d7eb9c86cc.tar.bz2
rails-660952e5b0a50fb55c1b2f3d7fbe85d7eb9c86cc.zip
CHANGED DEFAULT: ActiveRecord::Base.schema_format is now :ruby by default instead of :sql. This means that we'll assume you want to live in the world of db/schema.rb where the grass is green and the girls are pretty. If your schema contains un-dumpable elements, such as constraints or database-specific column types, you just got an invitation to either 1) patch the dumper to include foreign key support, 2) stop being db specific, or 3) just change the default in config/environment.rb to config.active_record.schema_format = :sql -- we even include an example for that on new Rails skeletons now. Brought to you by the federation of opinionated framework builders! [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 441b555721..70c44b838d 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -324,7 +324,7 @@ module ActiveRecord #:nodoc:
# supports migrations. Use :ruby if you want to have different database
# adapters for, e.g., your development and test environments.
cattr_accessor :schema_format
- @@schema_format = :sql
+ @@schema_format = :ruby
class << self # Class methods
# Find operates with three different retrieval approaches: