test/dummy/log/test.log in dirty_associations-0.3.0 vs test/dummy/log/test.log in dirty_associations-0.4.0
- old
+ new
@@ -2663,5 +2663,3105 @@
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = 1 AND "foos"."id" IN (2)
[1m[36m (0.0ms)[0m [1mUPDATE "foos" SET "bar_id" = 1, "updated_at" = '2013-11-14 02:31:05.537246' WHERE "foos"."id" = 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (7.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (6.6ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.2ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.6ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:37:17 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.7ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:46:18 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:20 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.8ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 15 May 2014 11:58:38 UTC +00:00], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.8ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.2ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.8ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35mSQL (0.3ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35mSQL (0.3ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.2ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (6.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:50:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.3ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00]]
+ [1m[35mSQL (0.4ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.2ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00]]
+ [1m[35mSQL (0.3ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:51:22 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:22 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:51:22 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:22 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:51:22 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:22 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:51:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:52:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (6.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:53:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (5.7ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:55:02 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:55:02 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:55:02 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:55:02 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 14:57:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:57:23 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:57:23 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:57:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.3ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:59:09 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:59:09 UTC +00:00]]
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:59:09 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.2ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (5.7ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (5.6ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:02:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:02:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:02:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:02:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.4ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:02:17 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:02:17 UTC +00:00]]
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:02:17 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:04:01 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:04:01 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:04:01 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:04:01 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.3ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:04:02 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:04:02 UTC +00:00]]
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:04:02 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.5ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (22.8ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.2ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
+----------------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+DirtyAssociationsTest: test_changes_reset_by_save
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
+ [1m[35mSQL (0.2ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
+---------------------------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.1ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
+-------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.1ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
+----------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFoo Load (0.0ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1[0m [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------------------------------------------
+DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
+-----------------------------------------------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFoo Load (0.0ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2)[0m [["bar_id", 1]]
+ [1m[35mSQL (0.1ms)[0m UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1[0m [["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m