diff options
author | Xavier Noria <fxn@hashref.com> | 2011-03-23 21:52:33 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-23 21:52:33 +0100 |
commit | 3b91b3726dbd7ef6e1f4927d65e2cbe8da12f7c7 (patch) | |
tree | d0b29e5edb35d20eade90c31442fb7abdfe8872a /activerecord | |
parent | 3a7c7dc73d6111e7c821a81d9c56024dd35769a5 (diff) | |
parent | ee8ca49414271026575dab70947b446ac6e4b51a (diff) | |
download | rails-3b91b3726dbd7ef6e1f4927d65e2cbe8da12f7c7.tar.gz rails-3b91b3726dbd7ef6e1f4927d65e2cbe8da12f7c7.tar.bz2 rails-3b91b3726dbd7ef6e1f4927d65e2cbe8da12f7c7.zip |
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 1 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index 756c221fad..a3082b8f01 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -237,7 +237,6 @@ module ActiveRecord # add_limit_offset!('SELECT * FROM suppliers', {:limit => 10, :offset => 50}) # generates # SELECT * FROM suppliers LIMIT 10 OFFSET 50 - def add_limit_offset!(sql, options) if limit = options[:limit] sql << " LIMIT #{sanitize_limit(limit)}" diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 3ec7dd02a4..8bae50885f 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -279,12 +279,11 @@ module ActiveRecord raise NotImplementedError, "change_column is not implemented" end - # Sets a new default value for a column. If you want to set the default - # value to +NULL+, you are out of luck. You need to - # DatabaseStatements#execute the appropriate SQL statement yourself. + # Sets a new default value for a column. # ===== Examples # change_column_default(:suppliers, :qualification, 'new') # change_column_default(:accounts, :authorized, 1) + # change_column_default(:users, :email, nil) def change_column_default(table_name, column_name, default) raise NotImplementedError, "change_column_default is not implemented" end |