aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 7a3dfd34dc..73f9212371 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,21 @@
## Rails 4.0.0 (unreleased) ##
+* Add `:default` and `:null` options to `column_exists?`.
+
+ column_exists?(:testings, :taggable_id, :integer, null: false)
+ column_exists?(:testings, :taggable_type, :string, default: 'Photo')
+
+ *Aleksey Magusev*
+
+* `ActiveRelation#inspect` no longer calls `#to_a`. This means that in places
+ where `#inspect` is implied (such as in the console), creating a relation
+ will not execute it anymore, you'll have to call `#to_a` when necessary:
+
+ User.where(:age => 30) # => returns the relation
+ User.where(:age => 30).to_a # => executes the query and returns the loaded objects, as before
+
+ *Brian Cardarella*
+
* Add `collate` and `ctype` support to PostgreSQL. These are available for PostgreSQL 8.4 or later.
Example: