Permalink
Browse files

Merge pull request #3275 from simi/patch-1

Improve ActiveRecord changelog
  • Loading branch information...
2 parents 84c8b2f + ceb65a6 commit c3c157141c2c1120c6e02eb8f74d47d7785f9eba @josevalim josevalim committed Oct 10, 2011
Showing with 8 additions and 7 deletions.
  1. +8 −7 activerecord/CHANGELOG
View
@@ -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]

0 comments on commit c3c1571

Please sign in to comment.