From 915ae48cd7c1944ba39e7ff85e8be85b32cc5f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Mej=C3=ADa?= Date: Tue, 30 Aug 2011 16:16:39 -0500 Subject: [PATCH] Updating CHANGELOG --- activerecord/CHANGELOG | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 700e11ff946a7..57e4fcf9cf0c8 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,11 @@ *Rails 3.2.0 (unreleased)* +* Add first_or_create, first_or_create!, first_or_build and first_or_new 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", :hot => true) + + [Andrés Mejía] + * Support bulk change_table in mysql2 adapter, as well as the mysql one. [Jon Leighton] * If multiple parameters are sent representing a date, and some are blank, the