aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJosef Šimánek <retricek@gmail.com>2011-10-10 12:19:31 +0300
committerJosef Šimánek <retricek@gmail.com>2011-10-10 12:19:31 +0300
commitceb65a639c940613449bc9f137a56a1c3f6a83e3 (patch)
tree2025dc15357ebf2f8120a396c4f13e1efd89500e /activerecord
parent84c8b2feee6c722184695abc42aeca05d5907e28 (diff)
downloadrails-ceb65a639c940613449bc9f137a56a1c3f6a83e3.tar.gz
rails-ceb65a639c940613449bc9f137a56a1c3f6a83e3.tar.bz2
rails-ceb65a639c940613449bc9f137a56a1c3f6a83e3.zip
Active Record changelog mistakes
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG15
1 files changed, 8 insertions, 7 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index aaadabcbab..50203608c2 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -10,6 +10,13 @@
[Jeremy Kemper]
+* Add first_or_create, first_or_create!, first_or_initialize methods to Active Record. This is a
+ better approach over the old find_or_create_by dynamic methods because it's clearer which
+ arguments are used to find the record and which are used to create it:
+
+ User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson")
+
+ [Andrés Mejía]
*Rails 3.1.1 (October 7, 2011)*
@@ -41,13 +48,7 @@
keys are per process id.
* lib/active_record/connection_adapters/sqlite_adapter.rb: ditto
-* Add first_or_create, first_or_create!, first_or_initialize methods to Active Record. This is a
- better approach over the old find_or_create_by dynamic methods because it's clearer which
- arguments are used to find the record and which are used to create it:
-
- User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson")
-
- [Andrés Mejía]
+ [Aaron Patterson]
* Support bulk change_table in mysql2 adapter, as well as the mysql one. [Jon Leighton]