dirty_associations 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f1871cdecda4666339e95a6ca04c82f51eff5d8
4
- data.tar.gz: 326db54144ab7b20cbb9e0e2e9d65349c20ccc90
3
+ metadata.gz: 0c35d26cc36f27c04d6498116a6eadefe32b8e38
4
+ data.tar.gz: a81fa91183efb5cef250d469ca8326edb5e37479
5
5
  SHA512:
6
- metadata.gz: 002a1955767d7eff828b5fb8859230b78457b1bcf0225fced244267fdc19662c679177f9770fd93c03eed6f4636732d8819794888f15f42ec2ca62b22b5efb87
7
- data.tar.gz: 0576f15b928b3670f0e24152e2642fbcf5e487628658fac96686ba4762ac113500cad171c6f72a25068c3e1184854cf3d6831bbfa3919850ab458a2239aef462
6
+ metadata.gz: cec571b1f0fe99bb131f0be8ceb07a00153b47006a6b5d899e3c6890ac464a4d340792e0b80f8a6999cd9fd89f16cebf986c7cddb8eb423ff1db21297d96f5ee
7
+ data.tar.gz: 43c76320d0e4f79de94cafb130fbb9540a0d30ae6e489638225dcb6d8bf9a015cc40d9e2a89ab7ce0372402e029dbf4863fec173730bd5a74c705dddd34bda62
@@ -14,14 +14,17 @@ module DirtyAssociations
14
14
  # The +association+ parameter should be a string or symbol representing the name of an association.
15
15
  def monitor_association_changes(association)
16
16
  ids = "#{association.to_s.singularize}_ids"
17
- attributes = "#{association.to_s}_attributes"
18
17
 
19
- [association, ids, attributes].each do |name|
18
+ [association, ids].each do |name|
20
19
  define_method "#{name}=" do |value|
21
- attribute_will_change!(association)
20
+ attribute_will_change!(association.to_s) unless send(name) == value
22
21
  super(value)
23
22
  end
24
23
 
24
+ define_method "#{name}_change" do
25
+ changes[name]
26
+ end
27
+
25
28
  define_method "#{name}_changed?" do
26
29
  changes.has_key?(association.to_s)
27
30
  end
@@ -1,3 +1,3 @@
1
1
  module DirtyAssociations
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -1,11 +1,20 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class DirtyAssociationsTest < ActiveSupport::TestCase
4
- test "setting has_many association adds object to changes" do
4
+ test "setting has_many association to the same thing is not counted as a change" do
5
5
  foo = FactoryGirl.create(:foo)
6
+ bar.foos = [ foo ]
7
+ bar.save
6
8
 
7
9
  refute bar.foos_changed?
10
+ bar.foos = [ foo ]
11
+ refute bar.foos_changed?
12
+ end
8
13
 
14
+ test "setting has_many association adds object to changes" do
15
+ foo = FactoryGirl.create(:foo)
16
+
17
+ refute bar.foos_changed?
9
18
  bar.foos = [ foo ]
10
19
  assert_equal [ foo ], bar.foos
11
20
  assert bar.foos_changed?
@@ -21,11 +30,6 @@ class DirtyAssociationsTest < ActiveSupport::TestCase
21
30
  assert bar.foos_changed?
22
31
  end
23
32
 
24
- test "setting has_many assocation attributes adds association to changes" do
25
- bar.assign_attributes(:foos_attributes => [{}, {}])
26
- assert bar.foos_changed?
27
- end
28
-
29
33
  test "changes reset by save" do
30
34
  bar.foos = [ FactoryGirl.create(:foo) ]
31
35
  assert bar.foos_changed?
@@ -2665,3 +2665,3103 @@ Connecting to database specified by database.yml
2665
2665
   (0.0ms) UPDATE "foos" SET "bar_id" = 1, "updated_at" = '2013-11-14 02:31:05.537246' WHERE "foos"."id" = 1
2666
2666
   (0.0ms) RELEASE SAVEPOINT active_record_1
2667
2667
   (7.1ms) rollback transaction
2668
+  (0.2ms) begin transaction
2669
+ -------------------------------------------------
2670
+ DirtyAssociationsTest: test_changes_reset_by_save
2671
+ -------------------------------------------------
2672
+  (0.0ms) SAVEPOINT active_record_1
2673
+ SQL (6.6ms) 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]]
2674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2675
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2676
+  (0.0ms) SAVEPOINT active_record_1
2677
+ SQL (1.0ms) 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]]
2678
+ SQL (0.2ms) 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]]
2679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2680
+  (0.0ms) SAVEPOINT active_record_1
2681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2682
+  (0.0ms) SAVEPOINT active_record_1
2683
+ SQL (0.2ms) 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]]
2684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2685
+  (0.0ms) SAVEPOINT active_record_1
2686
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2687
+ SQL (0.1ms) 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]]
2688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2689
+  (0.0ms) SAVEPOINT active_record_1
2690
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
2691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2692
+  (0.4ms) rollback transaction
2693
+  (0.0ms) begin transaction
2694
+ ---------------------------------------------------------------------------------------
2695
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2696
+ ---------------------------------------------------------------------------------------
2697
+  (0.0ms) SAVEPOINT active_record_1
2698
+ SQL (0.3ms) 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]]
2699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2700
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2701
+  (0.1ms) SAVEPOINT active_record_1
2702
+ SQL (0.4ms) 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]]
2703
+ SQL (0.1ms) 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]]
2704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2705
+  (0.0ms) SAVEPOINT active_record_1
2706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2707
+  (0.0ms) SAVEPOINT active_record_1
2708
+ SQL (0.1ms) 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]]
2709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2710
+  (0.0ms) SAVEPOINT active_record_1
2711
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2712
+ SQL (0.1ms) 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]]
2713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2714
+  (0.0ms) SAVEPOINT active_record_1
2715
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:37:17 UTC +00:00]]
2716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2717
+  (0.0ms) SAVEPOINT active_record_1
2718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2719
+  (0.3ms) rollback transaction
2720
+  (0.0ms) begin transaction
2721
+ ----------------------------------------------------------------------------------------------
2722
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
2723
+ ----------------------------------------------------------------------------------------------
2724
+  (0.0ms) SAVEPOINT active_record_1
2725
+ SQL (0.3ms) 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]]
2726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2727
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2728
+  (0.0ms) SAVEPOINT active_record_1
2729
+ SQL (0.4ms) 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]]
2730
+ SQL (0.1ms) 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]]
2731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2732
+  (0.0ms) SAVEPOINT active_record_1
2733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2734
+  (0.4ms) rollback transaction
2735
+  (0.1ms) begin transaction
2736
+ -------------------------------------------------------------------------------
2737
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2738
+ -------------------------------------------------------------------------------
2739
+  (0.0ms) SAVEPOINT active_record_1
2740
+ SQL (0.2ms) 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]]
2741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2742
+  (0.0ms) SAVEPOINT active_record_1
2743
+ SQL (0.3ms) 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]]
2744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2745
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2746
+  (0.0ms) SAVEPOINT active_record_1
2747
+ SQL (0.1ms) 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]]
2748
+ SQL (0.1ms) 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]]
2749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2750
+  (0.0ms) SAVEPOINT active_record_1
2751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2752
+  (0.0ms) SAVEPOINT active_record_1
2753
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2754
+ SQL (0.1ms) 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]]
2755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2756
+  (0.5ms) rollback transaction
2757
+  (0.1ms) begin transaction
2758
+ ----------------------------------------------------------------------------------------
2759
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2760
+ ----------------------------------------------------------------------------------------
2761
+  (0.1ms) SAVEPOINT active_record_1
2762
+ SQL (1.6ms) 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]]
2763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2764
+  (0.0ms) SAVEPOINT active_record_1
2765
+ SQL (0.3ms) 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]]
2766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2767
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2768
+  (0.0ms) SAVEPOINT active_record_1
2769
+ SQL (0.1ms) 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]]
2770
+ SQL (0.1ms) 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]]
2771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2772
+  (0.0ms) SAVEPOINT active_record_1
2773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2774
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2775
+  (0.0ms) SAVEPOINT active_record_1
2776
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2777
+ SQL (0.1ms) 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]]
2778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2779
+  (1.7ms) rollback transaction
2780
+  (0.2ms) begin transaction
2781
+ -------------------------------------------------
2782
+ DirtyAssociationsTest: test_changes_reset_by_save
2783
+ -------------------------------------------------
2784
+  (0.0ms) SAVEPOINT active_record_1
2785
+ SQL (2.4ms) 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]]
2786
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2787
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2788
+  (0.1ms) SAVEPOINT active_record_1
2789
+ SQL (1.0ms) 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]]
2790
+ SQL (0.2ms) 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]]
2791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2792
+  (0.0ms) SAVEPOINT active_record_1
2793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2794
+  (0.0ms) SAVEPOINT active_record_1
2795
+ SQL (0.1ms) 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]]
2796
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2797
+  (0.0ms) SAVEPOINT active_record_1
2798
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2799
+ SQL (0.1ms) 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]]
2800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2801
+  (0.0ms) SAVEPOINT active_record_1
2802
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
2803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2804
+  (0.4ms) rollback transaction
2805
+  (0.0ms) begin transaction
2806
+ ---------------------------------------------------------------------------------------
2807
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2808
+ ---------------------------------------------------------------------------------------
2809
+  (0.0ms) SAVEPOINT active_record_1
2810
+ SQL (0.3ms) 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]]
2811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2812
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2813
+  (0.1ms) SAVEPOINT active_record_1
2814
+ SQL (0.4ms) 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]]
2815
+ SQL (0.1ms) 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]]
2816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2817
+  (0.0ms) SAVEPOINT active_record_1
2818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2819
+  (0.0ms) SAVEPOINT active_record_1
2820
+ SQL (0.1ms) 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]]
2821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2822
+  (0.0ms) SAVEPOINT active_record_1
2823
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2824
+ SQL (0.1ms) 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]]
2825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2826
+  (0.0ms) SAVEPOINT active_record_1
2827
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:46:18 UTC +00:00]]
2828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2829
+  (0.0ms) SAVEPOINT active_record_1
2830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2831
+  (0.4ms) rollback transaction
2832
+  (0.0ms) begin transaction
2833
+ ----------------------------------------------------------------------------------------------
2834
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
2835
+ ----------------------------------------------------------------------------------------------
2836
+  (0.0ms) SAVEPOINT active_record_1
2837
+ SQL (0.3ms) 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]]
2838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2839
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2840
+  (0.0ms) SAVEPOINT active_record_1
2841
+ SQL (0.3ms) 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]]
2842
+ SQL (0.1ms) 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]]
2843
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2844
+  (0.0ms) SAVEPOINT active_record_1
2845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2846
+  (0.4ms) rollback transaction
2847
+  (0.0ms) begin transaction
2848
+ -------------------------------------------------------------------------------
2849
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2850
+ -------------------------------------------------------------------------------
2851
+  (0.0ms) SAVEPOINT active_record_1
2852
+ SQL (0.2ms) 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]]
2853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2854
+  (0.0ms) SAVEPOINT active_record_1
2855
+ SQL (0.2ms) 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]]
2856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2857
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2858
+  (0.0ms) SAVEPOINT active_record_1
2859
+ SQL (0.1ms) 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]]
2860
+ SQL (0.1ms) 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]]
2861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2862
+  (0.0ms) SAVEPOINT active_record_1
2863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2864
+  (0.0ms) SAVEPOINT active_record_1
2865
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2866
+ SQL (0.1ms) 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]]
2867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2868
+  (0.4ms) rollback transaction
2869
+  (0.0ms) begin transaction
2870
+ ----------------------------------------------------------------------------------------
2871
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2872
+ ----------------------------------------------------------------------------------------
2873
+  (0.0ms) SAVEPOINT active_record_1
2874
+ SQL (0.2ms) 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]]
2875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2876
+  (0.0ms) SAVEPOINT active_record_1
2877
+ SQL (0.3ms) 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]]
2878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2879
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2880
+  (0.0ms) SAVEPOINT active_record_1
2881
+ SQL (0.1ms) 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]]
2882
+ SQL (0.1ms) 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]]
2883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2884
+  (0.0ms) SAVEPOINT active_record_1
2885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2886
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2887
+  (0.0ms) SAVEPOINT active_record_1
2888
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2889
+ SQL (0.1ms) 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]]
2890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2891
+  (0.3ms) rollback transaction
2892
+  (0.2ms) begin transaction
2893
+ -------------------------------------------------
2894
+ DirtyAssociationsTest: test_changes_reset_by_save
2895
+ -------------------------------------------------
2896
+  (0.0ms) SAVEPOINT active_record_1
2897
+ SQL (2.0ms) 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]]
2898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2899
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2900
+  (0.1ms) SAVEPOINT active_record_1
2901
+ SQL (0.9ms) 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]]
2902
+ SQL (0.2ms) 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]]
2903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2904
+  (0.0ms) SAVEPOINT active_record_1
2905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2906
+  (0.0ms) SAVEPOINT active_record_1
2907
+ SQL (0.1ms) 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]]
2908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2909
+  (0.0ms) SAVEPOINT active_record_1
2910
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2911
+ SQL (0.1ms) 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]]
2912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2913
+  (0.0ms) SAVEPOINT active_record_1
2914
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
2915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2916
+  (6.6ms) rollback transaction
2917
+  (0.1ms) begin transaction
2918
+ ---------------------------------------------------------------------------------------
2919
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2920
+ ---------------------------------------------------------------------------------------
2921
+  (0.0ms) SAVEPOINT active_record_1
2922
+ SQL (0.3ms) 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]]
2923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2924
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2925
+  (0.0ms) SAVEPOINT active_record_1
2926
+ SQL (0.3ms) 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]]
2927
+ SQL (0.1ms) 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]]
2928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2929
+  (0.0ms) SAVEPOINT active_record_1
2930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2931
+  (0.0ms) SAVEPOINT active_record_1
2932
+ SQL (0.1ms) 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]]
2933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2934
+  (0.0ms) SAVEPOINT active_record_1
2935
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2936
+ SQL (0.1ms) 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]]
2937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2938
+  (0.0ms) SAVEPOINT active_record_1
2939
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:20 UTC +00:00]]
2940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2941
+  (0.0ms) SAVEPOINT active_record_1
2942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2943
+  (0.3ms) rollback transaction
2944
+  (0.0ms) begin transaction
2945
+ ----------------------------------------------------------------------------------------------
2946
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
2947
+ ----------------------------------------------------------------------------------------------
2948
+  (0.0ms) SAVEPOINT active_record_1
2949
+ SQL (0.2ms) 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]]
2950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2951
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2952
+  (0.0ms) SAVEPOINT active_record_1
2953
+ SQL (0.3ms) 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]]
2954
+ SQL (0.1ms) 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]]
2955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2956
+  (0.0ms) SAVEPOINT active_record_1
2957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2958
+  (0.3ms) rollback transaction
2959
+  (0.0ms) begin transaction
2960
+ -------------------------------------------------------------------------------
2961
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2962
+ -------------------------------------------------------------------------------
2963
+  (0.1ms) SAVEPOINT active_record_1
2964
+ SQL (0.2ms) 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]]
2965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2966
+  (0.0ms) SAVEPOINT active_record_1
2967
+ SQL (0.3ms) 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]]
2968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2969
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2970
+  (0.0ms) SAVEPOINT active_record_1
2971
+ SQL (0.1ms) 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]]
2972
+ SQL (0.1ms) 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]]
2973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2974
+  (0.0ms) SAVEPOINT active_record_1
2975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2976
+  (0.0ms) SAVEPOINT active_record_1
2977
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2978
+ SQL (0.1ms) 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]]
2979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2980
+  (0.3ms) rollback transaction
2981
+  (0.0ms) begin transaction
2982
+ ----------------------------------------------------------------------------------------
2983
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2984
+ ----------------------------------------------------------------------------------------
2985
+  (0.0ms) SAVEPOINT active_record_1
2986
+ SQL (0.2ms) 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]]
2987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2988
+  (0.0ms) SAVEPOINT active_record_1
2989
+ SQL (0.3ms) 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]]
2990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2991
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2992
+  (0.0ms) SAVEPOINT active_record_1
2993
+ SQL (0.1ms) 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]]
2994
+ SQL (0.1ms) 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]]
2995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2996
+  (0.1ms) SAVEPOINT active_record_1
2997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2998
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2999
+  (0.0ms) SAVEPOINT active_record_1
3000
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3001
+ SQL (0.1ms) 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]]
3002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3003
+  (0.4ms) rollback transaction
3004
+  (0.2ms) begin transaction
3005
+ -------------------------------------------------
3006
+ DirtyAssociationsTest: test_changes_reset_by_save
3007
+ -------------------------------------------------
3008
+  (0.0ms) SAVEPOINT active_record_1
3009
+ SQL (1.9ms) 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]]
3010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3011
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3012
+  (0.1ms) SAVEPOINT active_record_1
3013
+ SQL (1.2ms) 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]]
3014
+ SQL (0.2ms) 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]]
3015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3016
+  (0.0ms) SAVEPOINT active_record_1
3017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3018
+  (0.0ms) SAVEPOINT active_record_1
3019
+ SQL (0.1ms) 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]]
3020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3021
+  (0.0ms) SAVEPOINT active_record_1
3022
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3023
+ SQL (0.1ms) 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]]
3024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3025
+  (0.0ms) SAVEPOINT active_record_1
3026
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
3027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3028
+  (6.8ms) rollback transaction
3029
+  (0.1ms) begin transaction
3030
+ ---------------------------------------------------------------------------------------
3031
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3032
+ ---------------------------------------------------------------------------------------
3033
+  (0.0ms) SAVEPOINT active_record_1
3034
+ SQL (0.3ms) 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]]
3035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3036
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3037
+  (0.0ms) SAVEPOINT active_record_1
3038
+ SQL (0.3ms) 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]]
3039
+ SQL (0.1ms) 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]]
3040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3041
+  (0.0ms) SAVEPOINT active_record_1
3042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3043
+  (0.0ms) SAVEPOINT active_record_1
3044
+ SQL (0.1ms) 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]]
3045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3046
+  (0.0ms) SAVEPOINT active_record_1
3047
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3048
+ SQL (0.1ms) 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]]
3049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3050
+  (0.0ms) SAVEPOINT active_record_1
3051
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Thu, 15 May 2014 11:58:38 UTC +00:00]]
3052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3053
+  (0.0ms) SAVEPOINT active_record_1
3054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3055
+  (0.3ms) rollback transaction
3056
+  (0.0ms) begin transaction
3057
+ ----------------------------------------------------------------------------------------------
3058
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
3059
+ ----------------------------------------------------------------------------------------------
3060
+  (0.0ms) SAVEPOINT active_record_1
3061
+ SQL (0.2ms) 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]]
3062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3063
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3064
+  (0.0ms) SAVEPOINT active_record_1
3065
+ SQL (0.4ms) 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]]
3066
+ SQL (0.1ms) 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]]
3067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3068
+  (0.0ms) SAVEPOINT active_record_1
3069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3070
+  (0.3ms) rollback transaction
3071
+  (0.0ms) begin transaction
3072
+ -------------------------------------------------------------------------------
3073
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
3074
+ -------------------------------------------------------------------------------
3075
+  (0.0ms) SAVEPOINT active_record_1
3076
+ SQL (0.2ms) 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]]
3077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3078
+  (0.0ms) SAVEPOINT active_record_1
3079
+ SQL (0.3ms) 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]]
3080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3081
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3082
+  (0.0ms) SAVEPOINT active_record_1
3083
+ SQL (0.1ms) 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]]
3084
+ SQL (0.1ms) 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]]
3085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3086
+  (0.0ms) SAVEPOINT active_record_1
3087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3088
+  (0.0ms) SAVEPOINT active_record_1
3089
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3090
+ SQL (0.1ms) 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]]
3091
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3092
+  (0.3ms) rollback transaction
3093
+  (0.0ms) begin transaction
3094
+ ----------------------------------------------------------------------------------------
3095
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
3096
+ ----------------------------------------------------------------------------------------
3097
+  (0.0ms) SAVEPOINT active_record_1
3098
+ SQL (0.2ms) 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]]
3099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3100
+  (0.0ms) SAVEPOINT active_record_1
3101
+ SQL (0.3ms) 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]]
3102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3103
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3104
+  (0.1ms) SAVEPOINT active_record_1
3105
+ SQL (0.1ms) 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]]
3106
+ SQL (0.1ms) 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]]
3107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3108
+  (0.0ms) SAVEPOINT active_record_1
3109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3110
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3111
+  (0.0ms) SAVEPOINT active_record_1
3112
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3113
+ SQL (0.1ms) 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]]
3114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3115
+  (0.3ms) rollback transaction
3116
+  (0.3ms) begin transaction
3117
+ -------------------------------------------------
3118
+ DirtyAssociationsTest: test_changes_reset_by_save
3119
+ -------------------------------------------------
3120
+  (0.1ms) SAVEPOINT active_record_1
3121
+ SQL (3.8ms) 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]]
3122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3123
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3124
+  (0.1ms) SAVEPOINT active_record_1
3125
+ SQL (0.9ms) 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]]
3126
+ SQL (0.2ms) 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]]
3127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3128
+  (0.0ms) SAVEPOINT active_record_1
3129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3130
+  (0.1ms) SAVEPOINT active_record_1
3131
+ SQL (0.1ms) 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]]
3132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3133
+  (0.0ms) SAVEPOINT active_record_1
3134
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3135
+ SQL (0.1ms) 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]]
3136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3137
+  (0.0ms) SAVEPOINT active_record_1
3138
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
3139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3140
+  (0.4ms) rollback transaction
3141
+  (0.0ms) begin transaction
3142
+ ---------------------------------------------------------------------------------------
3143
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3144
+ ---------------------------------------------------------------------------------------
3145
+  (0.1ms) SAVEPOINT active_record_1
3146
+ SQL (0.3ms) 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]]
3147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3148
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3149
+  (0.1ms) SAVEPOINT active_record_1
3150
+ SQL (0.5ms) 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]]
3151
+ SQL (0.1ms) 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]]
3152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3153
+  (0.0ms) SAVEPOINT active_record_1
3154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3155
+  (0.1ms) SAVEPOINT active_record_1
3156
+ SQL (0.1ms) 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]]
3157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3158
+  (0.0ms) SAVEPOINT active_record_1
3159
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3160
+ SQL (0.1ms) 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]]
3161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3162
+  (0.0ms) SAVEPOINT active_record_1
3163
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
3164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3165
+  (0.0ms) SAVEPOINT active_record_1
3166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3167
+  (0.5ms) rollback transaction
3168
+  (0.1ms) begin transaction
3169
+ ----------------------------------------------------------------------------------------------
3170
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
3171
+ ----------------------------------------------------------------------------------------------
3172
+  (0.0ms) SAVEPOINT active_record_1
3173
+ SQL (0.2ms) 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]]
3174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3175
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3176
+  (0.0ms) SAVEPOINT active_record_1
3177
+ SQL (0.3ms) 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]]
3178
+ SQL (0.1ms) 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]]
3179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3180
+  (0.0ms) SAVEPOINT active_record_1
3181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3182
+  (0.4ms) rollback transaction
3183
+  (0.0ms) begin transaction
3184
+ -------------------------------------------------------------------------------
3185
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
3186
+ -------------------------------------------------------------------------------
3187
+  (0.0ms) SAVEPOINT active_record_1
3188
+ SQL (0.2ms) 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]]
3189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3190
+  (0.0ms) SAVEPOINT active_record_1
3191
+ SQL (0.3ms) 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]]
3192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3193
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3194
+  (0.0ms) SAVEPOINT active_record_1
3195
+ SQL (0.1ms) 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]]
3196
+ SQL (0.1ms) 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]]
3197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3198
+  (0.0ms) SAVEPOINT active_record_1
3199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3200
+  (0.0ms) SAVEPOINT active_record_1
3201
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3202
+ SQL (0.1ms) 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]]
3203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3204
+  (0.5ms) rollback transaction
3205
+  (0.0ms) begin transaction
3206
+ ----------------------------------------------------------------------------------------
3207
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
3208
+ ----------------------------------------------------------------------------------------
3209
+  (0.0ms) SAVEPOINT active_record_1
3210
+ SQL (0.2ms) 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]]
3211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3212
+  (0.0ms) SAVEPOINT active_record_1
3213
+ SQL (0.3ms) 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]]
3214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3215
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3216
+  (0.0ms) SAVEPOINT active_record_1
3217
+ SQL (0.1ms) 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]]
3218
+ SQL (0.1ms) 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]]
3219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3220
+  (0.0ms) SAVEPOINT active_record_1
3221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3222
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3223
+  (0.0ms) SAVEPOINT active_record_1
3224
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3225
+ SQL (0.1ms) 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]]
3226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3227
+  (0.4ms) rollback transaction
3228
+  (0.1ms) begin transaction
3229
+ -----------------------------------------------------------------------------------------------------
3230
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
3231
+ -----------------------------------------------------------------------------------------------------
3232
+  (0.0ms) SAVEPOINT active_record_1
3233
+ SQL (0.3ms) 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]]
3234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3235
+  (0.0ms) SAVEPOINT active_record_1
3236
+ SQL (0.3ms) 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]]
3237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3238
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3239
+  (0.0ms) SAVEPOINT active_record_1
3240
+ SQL (0.1ms) 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]]
3241
+ SQL (0.1ms) 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]]
3242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3243
+  (0.0ms) SAVEPOINT active_record_1
3244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3245
+  (0.0ms) SAVEPOINT active_record_1
3246
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3247
+ SQL (0.1ms) 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]]
3248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3249
+  (0.0ms) SAVEPOINT active_record_1
3250
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:22:09 UTC +00:00]]
3251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3252
+  (0.0ms) SAVEPOINT active_record_1
3253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3254
+  (0.4ms) rollback transaction
3255
+  (0.2ms) begin transaction
3256
+ -------------------------------------------------
3257
+ DirtyAssociationsTest: test_changes_reset_by_save
3258
+ -------------------------------------------------
3259
+  (0.1ms) SAVEPOINT active_record_1
3260
+ SQL (2.0ms) 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]]
3261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3262
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3263
+  (0.0ms) SAVEPOINT active_record_1
3264
+ SQL (1.0ms) 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]]
3265
+ SQL (0.2ms) 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]]
3266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3267
+  (0.0ms) SAVEPOINT active_record_1
3268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3269
+  (0.0ms) SAVEPOINT active_record_1
3270
+ SQL (0.1ms) 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]]
3271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3272
+  (0.0ms) SAVEPOINT active_record_1
3273
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3274
+ SQL (0.1ms) 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]]
3275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3276
+  (0.1ms) SAVEPOINT active_record_1
3277
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
3278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3279
+  (0.5ms) rollback transaction
3280
+  (0.1ms) begin transaction
3281
+ ---------------------------------------------------------------------------------------
3282
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3283
+ ---------------------------------------------------------------------------------------
3284
+  (0.0ms) SAVEPOINT active_record_1
3285
+ SQL (0.3ms) 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]]
3286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3287
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3288
+  (0.0ms) SAVEPOINT active_record_1
3289
+ SQL (0.3ms) 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]]
3290
+ SQL (0.1ms) 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]]
3291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3292
+  (0.0ms) SAVEPOINT active_record_1
3293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3294
+  (0.0ms) SAVEPOINT active_record_1
3295
+ SQL (0.1ms) 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]]
3296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3297
+  (0.0ms) SAVEPOINT active_record_1
3298
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3299
+ SQL (0.1ms) 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]]
3300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3301
+  (0.0ms) SAVEPOINT active_record_1
3302
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
3303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3304
+  (0.0ms) SAVEPOINT active_record_1
3305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3306
+  (0.4ms) rollback transaction
3307
+  (0.0ms) begin transaction
3308
+ ----------------------------------------------------------------------------------------------
3309
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
3310
+ ----------------------------------------------------------------------------------------------
3311
+  (0.0ms) SAVEPOINT active_record_1
3312
+ SQL (0.3ms) 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]]
3313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3314
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3315
+  (0.0ms) SAVEPOINT active_record_1
3316
+ SQL (0.3ms) 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]]
3317
+ SQL (0.1ms) 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]]
3318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3319
+  (0.0ms) SAVEPOINT active_record_1
3320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3321
+  (0.4ms) rollback transaction
3322
+  (0.0ms) begin transaction
3323
+ -------------------------------------------------------------------------------
3324
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
3325
+ -------------------------------------------------------------------------------
3326
+  (0.1ms) SAVEPOINT active_record_1
3327
+ SQL (0.3ms) 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]]
3328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3329
+  (0.1ms) SAVEPOINT active_record_1
3330
+ SQL (0.4ms) 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]]
3331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3332
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3333
+  (0.0ms) SAVEPOINT active_record_1
3334
+ SQL (0.2ms) 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]]
3335
+ SQL (0.1ms) 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]]
3336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3337
+  (0.0ms) SAVEPOINT active_record_1
3338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3339
+  (0.0ms) SAVEPOINT active_record_1
3340
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3341
+ SQL (0.1ms) 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]]
3342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3343
+  (0.5ms) rollback transaction
3344
+  (0.0ms) begin transaction
3345
+ ----------------------------------------------------------------------------------------
3346
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
3347
+ ----------------------------------------------------------------------------------------
3348
+  (0.0ms) SAVEPOINT active_record_1
3349
+ SQL (0.2ms) 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]]
3350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3351
+  (0.0ms) SAVEPOINT active_record_1
3352
+ SQL (0.3ms) 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]]
3353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3354
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3355
+  (0.0ms) SAVEPOINT active_record_1
3356
+ SQL (0.2ms) 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]]
3357
+ SQL (0.1ms) 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]]
3358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3359
+  (0.1ms) SAVEPOINT active_record_1
3360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3361
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3362
+  (0.0ms) SAVEPOINT active_record_1
3363
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3364
+ SQL (0.1ms) 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]]
3365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3366
+  (0.4ms) rollback transaction
3367
+  (0.1ms) begin transaction
3368
+ -----------------------------------------------------------------------------------------------------
3369
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
3370
+ -----------------------------------------------------------------------------------------------------
3371
+  (0.0ms) SAVEPOINT active_record_1
3372
+ SQL (0.3ms) 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]]
3373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3374
+  (0.0ms) SAVEPOINT active_record_1
3375
+ SQL (0.3ms) 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]]
3376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3377
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3378
+  (0.0ms) SAVEPOINT active_record_1
3379
+ SQL (0.2ms) 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]]
3380
+ SQL (0.1ms) 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]]
3381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3382
+  (0.0ms) SAVEPOINT active_record_1
3383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3384
+  (0.0ms) SAVEPOINT active_record_1
3385
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3386
+ SQL (0.1ms) 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]]
3387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3388
+  (0.0ms) SAVEPOINT active_record_1
3389
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:26:50 UTC +00:00]]
3390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3391
+  (0.0ms) SAVEPOINT active_record_1
3392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3393
+  (0.4ms) rollback transaction
3394
+  (0.2ms) begin transaction
3395
+ -------------------------------------------------
3396
+ DirtyAssociationsTest: test_changes_reset_by_save
3397
+ -------------------------------------------------
3398
+  (0.0ms) SAVEPOINT active_record_1
3399
+ SQL (2.0ms) 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]]
3400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3401
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3402
+  (0.0ms) SAVEPOINT active_record_1
3403
+ SQL (1.1ms) 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]]
3404
+ SQL (0.2ms) 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]]
3405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3406
+  (0.0ms) SAVEPOINT active_record_1
3407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3408
+  (0.0ms) SAVEPOINT active_record_1
3409
+ SQL (0.2ms) 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]]
3410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3411
+  (0.0ms) SAVEPOINT active_record_1
3412
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3413
+ SQL (0.1ms) 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]]
3414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3415
+  (0.0ms) SAVEPOINT active_record_1
3416
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
3417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3418
+  (6.5ms) rollback transaction
3419
+  (0.1ms) begin transaction
3420
+ ---------------------------------------------------------------------------------------
3421
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3422
+ ---------------------------------------------------------------------------------------
3423
+  (0.0ms) SAVEPOINT active_record_1
3424
+ SQL (0.3ms) 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]]
3425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3426
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3427
+  (0.0ms) SAVEPOINT active_record_1
3428
+ SQL (0.3ms) 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]]
3429
+ SQL (0.1ms) 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]]
3430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3431
+  (0.0ms) SAVEPOINT active_record_1
3432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3433
+  (0.0ms) SAVEPOINT active_record_1
3434
+ SQL (0.1ms) 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]]
3435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3436
+  (0.0ms) SAVEPOINT active_record_1
3437
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3438
+ SQL (0.1ms) 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]]
3439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3440
+  (0.0ms) SAVEPOINT active_record_1
3441
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
3442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3443
+  (0.0ms) SAVEPOINT active_record_1
3444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3445
+  (0.4ms) rollback transaction
3446
+  (0.0ms) begin transaction
3447
+ ----------------------------------------------------------------------------------------------
3448
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
3449
+ ----------------------------------------------------------------------------------------------
3450
+  (0.0ms) SAVEPOINT active_record_1
3451
+ SQL (0.2ms) 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]]
3452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3453
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3454
+  (0.0ms) SAVEPOINT active_record_1
3455
+ SQL (0.3ms) 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]]
3456
+ SQL (0.1ms) 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]]
3457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3458
+  (0.0ms) SAVEPOINT active_record_1
3459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3460
+  (0.4ms) rollback transaction
3461
+  (0.0ms) begin transaction
3462
+ -------------------------------------------------------------------------------
3463
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
3464
+ -------------------------------------------------------------------------------
3465
+  (0.0ms) SAVEPOINT active_record_1
3466
+ SQL (0.2ms) 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]]
3467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3468
+  (0.0ms) SAVEPOINT active_record_1
3469
+ SQL (0.3ms) 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]]
3470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3471
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3472
+  (0.0ms) SAVEPOINT active_record_1
3473
+ SQL (0.1ms) 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]]
3474
+ SQL (0.1ms) 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]]
3475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3476
+  (0.0ms) SAVEPOINT active_record_1
3477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3478
+  (0.0ms) SAVEPOINT active_record_1
3479
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3480
+ SQL (0.1ms) 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]]
3481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3482
+  (0.4ms) rollback transaction
3483
+  (0.0ms) begin transaction
3484
+ ----------------------------------------------------------------------------------------
3485
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
3486
+ ----------------------------------------------------------------------------------------
3487
+  (0.0ms) SAVEPOINT active_record_1
3488
+ SQL (0.2ms) 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]]
3489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3490
+  (0.0ms) SAVEPOINT active_record_1
3491
+ SQL (0.3ms) 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]]
3492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3493
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3494
+  (0.0ms) SAVEPOINT active_record_1
3495
+ SQL (0.1ms) 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]]
3496
+ SQL (0.1ms) 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]]
3497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3498
+  (0.0ms) SAVEPOINT active_record_1
3499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3500
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3501
+  (0.0ms) SAVEPOINT active_record_1
3502
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3503
+ SQL (0.1ms) 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]]
3504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3505
+  (0.4ms) rollback transaction
3506
+  (0.0ms) begin transaction
3507
+ -----------------------------------------------------------------------------------------------------
3508
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
3509
+ -----------------------------------------------------------------------------------------------------
3510
+  (0.0ms) SAVEPOINT active_record_1
3511
+ SQL (0.2ms) 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]]
3512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3513
+  (0.0ms) SAVEPOINT active_record_1
3514
+ SQL (0.3ms) 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]]
3515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3516
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3517
+  (0.0ms) SAVEPOINT active_record_1
3518
+ SQL (0.1ms) 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]]
3519
+ SQL (0.1ms) 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]]
3520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3521
+  (0.0ms) SAVEPOINT active_record_1
3522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3523
+  (0.0ms) SAVEPOINT active_record_1
3524
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3525
+ SQL (0.1ms) 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]]
3526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3527
+  (0.1ms) SAVEPOINT active_record_1
3528
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:30:23 UTC +00:00]]
3529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3530
+  (0.0ms) SAVEPOINT active_record_1
3531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3532
+  (0.4ms) rollback transaction
3533
+  (0.2ms) begin transaction
3534
+ -------------------------------------------------
3535
+ DirtyAssociationsTest: test_changes_reset_by_save
3536
+ -------------------------------------------------
3537
+  (0.0ms) SAVEPOINT active_record_1
3538
+ SQL (2.0ms) 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]]
3539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3540
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3541
+  (0.0ms) SAVEPOINT active_record_1
3542
+ SQL (0.9ms) 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]]
3543
+ SQL (0.2ms) 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]]
3544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3545
+  (0.0ms) SAVEPOINT active_record_1
3546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3547
+  (0.0ms) SAVEPOINT active_record_1
3548
+ SQL (0.1ms) 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]]
3549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3550
+  (0.0ms) SAVEPOINT active_record_1
3551
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3552
+ SQL (0.1ms) 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]]
3553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3554
+  (0.0ms) SAVEPOINT active_record_1
3555
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
3556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3557
+  (0.4ms) rollback transaction
3558
+  (0.0ms) begin transaction
3559
+ ---------------------------------------------------------------------------------------
3560
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3561
+ ---------------------------------------------------------------------------------------
3562
+  (0.0ms) SAVEPOINT active_record_1
3563
+ SQL (0.3ms) 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]]
3564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3565
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3566
+  (0.0ms) SAVEPOINT active_record_1
3567
+ SQL (0.3ms) 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]]
3568
+ SQL (0.1ms) 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]]
3569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3570
+  (0.0ms) SAVEPOINT active_record_1
3571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3572
+  (0.0ms) SAVEPOINT active_record_1
3573
+ SQL (0.1ms) 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]]
3574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3575
+  (0.0ms) SAVEPOINT active_record_1
3576
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3577
+ SQL (0.1ms) 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]]
3578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3579
+  (0.0ms) SAVEPOINT active_record_1
3580
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
3581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3582
+  (0.0ms) SAVEPOINT active_record_1
3583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3584
+  (0.5ms) rollback transaction
3585
+  (0.0ms) begin transaction
3586
+ ----------------------------------------------------------------------------------------------
3587
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
3588
+ ----------------------------------------------------------------------------------------------
3589
+  (0.0ms) SAVEPOINT active_record_1
3590
+ SQL (0.2ms) 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]]
3591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3592
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3593
+  (0.0ms) SAVEPOINT active_record_1
3594
+ SQL (0.3ms) 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]]
3595
+ SQL (0.1ms) 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]]
3596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3597
+  (0.0ms) SAVEPOINT active_record_1
3598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3599
+  (1.2ms) rollback transaction
3600
+  (0.0ms) begin transaction
3601
+ -------------------------------------------------------------------------------
3602
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
3603
+ -------------------------------------------------------------------------------
3604
+  (0.0ms) SAVEPOINT active_record_1
3605
+ SQL (0.2ms) 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]]
3606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3607
+  (0.0ms) SAVEPOINT active_record_1
3608
+ SQL (0.3ms) 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]]
3609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3610
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3611
+  (0.0ms) SAVEPOINT active_record_1
3612
+ SQL (0.1ms) 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]]
3613
+ SQL (0.1ms) 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]]
3614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3615
+  (0.0ms) SAVEPOINT active_record_1
3616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3617
+  (0.0ms) SAVEPOINT active_record_1
3618
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3619
+ SQL (0.1ms) 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]]
3620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3621
+  (0.4ms) rollback transaction
3622
+  (0.0ms) begin transaction
3623
+ ----------------------------------------------------------------------------------------
3624
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
3625
+ ----------------------------------------------------------------------------------------
3626
+  (0.0ms) SAVEPOINT active_record_1
3627
+ SQL (0.2ms) 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]]
3628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3629
+  (0.0ms) SAVEPOINT active_record_1
3630
+ SQL (0.3ms) 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]]
3631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3632
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3633
+  (0.0ms) SAVEPOINT active_record_1
3634
+ SQL (0.1ms) 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]]
3635
+ SQL (0.1ms) 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]]
3636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3637
+  (0.0ms) SAVEPOINT active_record_1
3638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3639
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3640
+  (0.0ms) SAVEPOINT active_record_1
3641
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3642
+ SQL (0.1ms) 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]]
3643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3644
+  (0.3ms) rollback transaction
3645
+  (0.0ms) begin transaction
3646
+ -----------------------------------------------------------------------------------------------------
3647
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
3648
+ -----------------------------------------------------------------------------------------------------
3649
+  (0.0ms) SAVEPOINT active_record_1
3650
+ SQL (0.2ms) 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]]
3651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3652
+  (0.0ms) SAVEPOINT active_record_1
3653
+ SQL (0.2ms) 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]]
3654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3655
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3656
+  (0.0ms) SAVEPOINT active_record_1
3657
+ SQL (0.1ms) 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]]
3658
+ SQL (0.1ms) 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]]
3659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3660
+  (0.0ms) SAVEPOINT active_record_1
3661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3662
+  (0.0ms) SAVEPOINT active_record_1
3663
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3664
+ SQL (0.1ms) 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]]
3665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3666
+  (0.0ms) SAVEPOINT active_record_1
3667
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:39:54 UTC +00:00]]
3668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3669
+  (0.0ms) SAVEPOINT active_record_1
3670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3671
+  (0.4ms) rollback transaction
3672
+  (0.2ms) begin transaction
3673
+ -------------------------------------------------
3674
+ DirtyAssociationsTest: test_changes_reset_by_save
3675
+ -------------------------------------------------
3676
+  (0.0ms) SAVEPOINT active_record_1
3677
+ SQL (3.8ms) 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]]
3678
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3679
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3680
+  (0.0ms) SAVEPOINT active_record_1
3681
+ SQL (0.9ms) 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]]
3682
+ SQL (0.2ms) 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]]
3683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3684
+  (0.0ms) SAVEPOINT active_record_1
3685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3686
+  (0.0ms) SAVEPOINT active_record_1
3687
+ SQL (0.1ms) 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]]
3688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3689
+  (0.0ms) SAVEPOINT active_record_1
3690
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3691
+ SQL (0.2ms) 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]]
3692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3693
+  (0.0ms) SAVEPOINT active_record_1
3694
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
3695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3696
+  (0.4ms) rollback transaction
3697
+  (0.0ms) begin transaction
3698
+ ---------------------------------------------------------------------------------------
3699
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3700
+ ---------------------------------------------------------------------------------------
3701
+  (0.0ms) SAVEPOINT active_record_1
3702
+ SQL (0.3ms) 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]]
3703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3704
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3705
+  (0.0ms) SAVEPOINT active_record_1
3706
+ SQL (0.3ms) 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]]
3707
+ SQL (0.1ms) 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]]
3708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3709
+  (0.0ms) SAVEPOINT active_record_1
3710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3711
+  (0.0ms) SAVEPOINT active_record_1
3712
+ SQL (0.1ms) 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]]
3713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3714
+  (0.0ms) SAVEPOINT active_record_1
3715
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3716
+ SQL (0.1ms) 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]]
3717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3718
+  (0.0ms) SAVEPOINT active_record_1
3719
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
3720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3721
+  (0.0ms) SAVEPOINT active_record_1
3722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3723
+  (0.3ms) rollback transaction
3724
+  (0.0ms) begin transaction
3725
+ ----------------------------------------------------------------------------------------------
3726
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
3727
+ ----------------------------------------------------------------------------------------------
3728
+  (0.0ms) SAVEPOINT active_record_1
3729
+ SQL (0.3ms) 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]]
3730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3731
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3732
+  (0.0ms) SAVEPOINT active_record_1
3733
+ SQL (0.3ms) 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]]
3734
+ SQL (0.1ms) 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]]
3735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3736
+  (0.0ms) SAVEPOINT active_record_1
3737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3738
+  (0.3ms) rollback transaction
3739
+  (0.0ms) begin transaction
3740
+ -------------------------------------------------------------------------------
3741
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
3742
+ -------------------------------------------------------------------------------
3743
+  (0.0ms) SAVEPOINT active_record_1
3744
+ SQL (0.3ms) 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]]
3745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3746
+  (0.0ms) SAVEPOINT active_record_1
3747
+ SQL (0.3ms) 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]]
3748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3749
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3750
+  (0.0ms) SAVEPOINT active_record_1
3751
+ SQL (0.1ms) 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]]
3752
+ SQL (0.1ms) 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]]
3753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3754
+  (0.0ms) SAVEPOINT active_record_1
3755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3756
+  (0.0ms) SAVEPOINT active_record_1
3757
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3758
+ SQL (0.1ms) 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]]
3759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3760
+  (0.4ms) rollback transaction
3761
+  (0.0ms) begin transaction
3762
+ ----------------------------------------------------------------------------------------
3763
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
3764
+ ----------------------------------------------------------------------------------------
3765
+  (0.0ms) SAVEPOINT active_record_1
3766
+ SQL (0.2ms) 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]]
3767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3768
+  (0.0ms) SAVEPOINT active_record_1
3769
+ SQL (0.3ms) 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]]
3770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3771
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3772
+  (0.0ms) SAVEPOINT active_record_1
3773
+ SQL (0.1ms) 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]]
3774
+ SQL (0.1ms) 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]]
3775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3776
+  (0.0ms) SAVEPOINT active_record_1
3777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3778
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3779
+  (0.0ms) SAVEPOINT active_record_1
3780
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3781
+ SQL (0.1ms) 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]]
3782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3783
+  (0.3ms) rollback transaction
3784
+  (0.0ms) begin transaction
3785
+ -----------------------------------------------------------------------------------------------------
3786
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
3787
+ -----------------------------------------------------------------------------------------------------
3788
+  (0.0ms) SAVEPOINT active_record_1
3789
+ SQL (0.2ms) 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]]
3790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3791
+  (0.0ms) SAVEPOINT active_record_1
3792
+ SQL (0.3ms) 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]]
3793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3794
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3795
+  (0.0ms) SAVEPOINT active_record_1
3796
+ SQL (0.1ms) 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]]
3797
+ SQL (0.1ms) 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]]
3798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3799
+  (0.0ms) SAVEPOINT active_record_1
3800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3801
+  (0.0ms) SAVEPOINT active_record_1
3802
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3803
+ SQL (0.1ms) 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]]
3804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3805
+  (0.0ms) SAVEPOINT active_record_1
3806
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:41:50 UTC +00:00]]
3807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3808
+  (0.0ms) SAVEPOINT active_record_1
3809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3810
+  (0.4ms) rollback transaction
3811
+  (0.2ms) begin transaction
3812
+ -------------------------------------------------
3813
+ DirtyAssociationsTest: test_changes_reset_by_save
3814
+ -------------------------------------------------
3815
+  (0.1ms) SAVEPOINT active_record_1
3816
+ SQL (2.0ms) 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]]
3817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3818
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3819
+  (0.1ms) SAVEPOINT active_record_1
3820
+ SQL (1.1ms) 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]]
3821
+ SQL (0.3ms) 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]]
3822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3823
+  (0.0ms) SAVEPOINT active_record_1
3824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3825
+  (0.0ms) SAVEPOINT active_record_1
3826
+ SQL (0.1ms) 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]]
3827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3828
+  (0.0ms) SAVEPOINT active_record_1
3829
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3830
+ SQL (0.1ms) 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]]
3831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3832
+  (0.0ms) SAVEPOINT active_record_1
3833
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
3834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3835
+  (6.5ms) rollback transaction
3836
+  (0.1ms) begin transaction
3837
+ ---------------------------------------------------------------------------------------
3838
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3839
+ ---------------------------------------------------------------------------------------
3840
+  (0.0ms) SAVEPOINT active_record_1
3841
+ SQL (0.3ms) 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]]
3842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3843
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3844
+  (0.0ms) SAVEPOINT active_record_1
3845
+ SQL (0.3ms) 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]]
3846
+ SQL (0.1ms) 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]]
3847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3848
+  (0.0ms) SAVEPOINT active_record_1
3849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3850
+  (0.0ms) SAVEPOINT active_record_1
3851
+ SQL (0.1ms) 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]]
3852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3853
+  (0.0ms) SAVEPOINT active_record_1
3854
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3855
+ SQL (0.1ms) 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]]
3856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3857
+  (0.0ms) SAVEPOINT active_record_1
3858
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
3859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3860
+  (0.0ms) SAVEPOINT active_record_1
3861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3862
+  (0.4ms) rollback transaction
3863
+  (0.0ms) begin transaction
3864
+ ----------------------------------------------------------------------------------------------
3865
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
3866
+ ----------------------------------------------------------------------------------------------
3867
+  (0.0ms) SAVEPOINT active_record_1
3868
+ SQL (0.2ms) 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]]
3869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3870
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3871
+  (0.0ms) SAVEPOINT active_record_1
3872
+ SQL (0.3ms) 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]]
3873
+ SQL (0.1ms) 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]]
3874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3875
+  (0.1ms) SAVEPOINT active_record_1
3876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3877
+  (0.3ms) rollback transaction
3878
+  (0.0ms) begin transaction
3879
+ -------------------------------------------------------------------------------
3880
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
3881
+ -------------------------------------------------------------------------------
3882
+  (0.0ms) SAVEPOINT active_record_1
3883
+ SQL (0.2ms) 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]]
3884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3885
+  (0.0ms) SAVEPOINT active_record_1
3886
+ SQL (0.3ms) 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]]
3887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3888
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3889
+  (0.0ms) SAVEPOINT active_record_1
3890
+ SQL (0.1ms) 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]]
3891
+ SQL (0.1ms) 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]]
3892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3893
+  (0.0ms) SAVEPOINT active_record_1
3894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3895
+  (0.0ms) SAVEPOINT active_record_1
3896
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3897
+ SQL (0.1ms) 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]]
3898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3899
+  (0.5ms) rollback transaction
3900
+  (0.0ms) begin transaction
3901
+ ----------------------------------------------------------------------------------------
3902
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
3903
+ ----------------------------------------------------------------------------------------
3904
+  (0.0ms) SAVEPOINT active_record_1
3905
+ SQL (0.3ms) 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]]
3906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3907
+  (0.1ms) SAVEPOINT active_record_1
3908
+ SQL (0.3ms) 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]]
3909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3910
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3911
+  (0.0ms) SAVEPOINT active_record_1
3912
+ SQL (0.1ms) 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]]
3913
+ SQL (0.1ms) 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]]
3914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3915
+  (0.0ms) SAVEPOINT active_record_1
3916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3917
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3918
+  (0.0ms) SAVEPOINT active_record_1
3919
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3920
+ SQL (0.1ms) 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]]
3921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3922
+  (0.4ms) rollback transaction
3923
+  (0.1ms) begin transaction
3924
+ -----------------------------------------------------------------------------------------------------
3925
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
3926
+ -----------------------------------------------------------------------------------------------------
3927
+  (0.0ms) SAVEPOINT active_record_1
3928
+ SQL (0.2ms) 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]]
3929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3930
+  (0.0ms) SAVEPOINT active_record_1
3931
+ SQL (0.3ms) 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]]
3932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3933
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
3934
+  (0.0ms) SAVEPOINT active_record_1
3935
+ SQL (0.1ms) 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]]
3936
+ SQL (0.1ms) 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]]
3937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3938
+  (0.0ms) SAVEPOINT active_record_1
3939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3940
+  (0.0ms) SAVEPOINT active_record_1
3941
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
3942
+ SQL (0.1ms) 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]]
3943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3944
+  (0.0ms) SAVEPOINT active_record_1
3945
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:03 UTC +00:00]]
3946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3947
+  (0.0ms) SAVEPOINT active_record_1
3948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3949
+  (0.4ms) rollback transaction
3950
+  (0.3ms) begin transaction
3951
+ -------------------------------------------------
3952
+ DirtyAssociationsTest: test_changes_reset_by_save
3953
+ -------------------------------------------------
3954
+  (0.0ms) SAVEPOINT active_record_1
3955
+ SQL (1.9ms) 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]]
3956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3957
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3958
+  (0.0ms) SAVEPOINT active_record_1
3959
+ SQL (1.0ms) 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]]
3960
+ SQL (0.2ms) 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]]
3961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3962
+  (0.0ms) SAVEPOINT active_record_1
3963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3964
+  (0.0ms) SAVEPOINT active_record_1
3965
+ SQL (0.2ms) 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]]
3966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3967
+  (0.0ms) SAVEPOINT active_record_1
3968
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3969
+ SQL (0.1ms) 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]]
3970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3971
+  (0.0ms) SAVEPOINT active_record_1
3972
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
3973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3974
+  (6.5ms) rollback transaction
3975
+  (0.0ms) begin transaction
3976
+ ---------------------------------------------------------------------------------------
3977
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
3978
+ ---------------------------------------------------------------------------------------
3979
+  (0.0ms) SAVEPOINT active_record_1
3980
+ SQL (0.3ms) 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]]
3981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3982
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
3983
+  (0.0ms) SAVEPOINT active_record_1
3984
+ SQL (0.3ms) 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]]
3985
+ SQL (0.1ms) 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]]
3986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3987
+  (0.0ms) SAVEPOINT active_record_1
3988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3989
+  (0.0ms) SAVEPOINT active_record_1
3990
+ SQL (0.1ms) 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]]
3991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3992
+  (0.0ms) SAVEPOINT active_record_1
3993
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
3994
+ SQL (0.1ms) 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]]
3995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3996
+  (0.0ms) SAVEPOINT active_record_1
3997
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
3998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3999
+  (0.0ms) SAVEPOINT active_record_1
4000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4001
+  (0.4ms) rollback transaction
4002
+  (0.0ms) begin transaction
4003
+ ----------------------------------------------------------------------------------------------
4004
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4005
+ ----------------------------------------------------------------------------------------------
4006
+  (0.0ms) SAVEPOINT active_record_1
4007
+ SQL (0.2ms) 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]]
4008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4009
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4010
+  (0.0ms) SAVEPOINT active_record_1
4011
+ SQL (0.3ms) 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]]
4012
+ SQL (0.1ms) 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]]
4013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4014
+  (0.0ms) SAVEPOINT active_record_1
4015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4016
+  (0.3ms) rollback transaction
4017
+  (0.0ms) begin transaction
4018
+ -------------------------------------------------------------------------------
4019
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4020
+ -------------------------------------------------------------------------------
4021
+  (0.0ms) SAVEPOINT active_record_1
4022
+ SQL (0.2ms) 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]]
4023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4024
+  (0.0ms) SAVEPOINT active_record_1
4025
+ SQL (0.3ms) 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]]
4026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4027
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4028
+  (0.0ms) SAVEPOINT active_record_1
4029
+ SQL (0.1ms) 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]]
4030
+ SQL (0.1ms) 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]]
4031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4032
+  (0.0ms) SAVEPOINT active_record_1
4033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4034
+  (0.0ms) SAVEPOINT active_record_1
4035
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4036
+ SQL (0.1ms) 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]]
4037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4038
+  (0.3ms) rollback transaction
4039
+  (0.0ms) begin transaction
4040
+ ----------------------------------------------------------------------------------------
4041
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4042
+ ----------------------------------------------------------------------------------------
4043
+  (0.0ms) SAVEPOINT active_record_1
4044
+ SQL (0.2ms) 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]]
4045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4046
+  (0.0ms) SAVEPOINT active_record_1
4047
+ SQL (0.3ms) 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]]
4048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4049
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4050
+  (0.0ms) SAVEPOINT active_record_1
4051
+ SQL (0.1ms) 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]]
4052
+ SQL (0.1ms) 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]]
4053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4054
+  (0.0ms) SAVEPOINT active_record_1
4055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4056
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4057
+  (0.0ms) SAVEPOINT active_record_1
4058
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4059
+ SQL (0.1ms) 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]]
4060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4061
+  (0.4ms) rollback transaction
4062
+  (0.0ms) begin transaction
4063
+ -----------------------------------------------------------------------------------------------------
4064
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
4065
+ -----------------------------------------------------------------------------------------------------
4066
+  (0.0ms) SAVEPOINT active_record_1
4067
+ SQL (0.2ms) 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]]
4068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4069
+  (0.0ms) SAVEPOINT active_record_1
4070
+ SQL (0.3ms) 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]]
4071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4072
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4073
+  (0.1ms) SAVEPOINT active_record_1
4074
+ SQL (0.1ms) 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]]
4075
+ SQL (0.1ms) 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]]
4076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4077
+  (0.0ms) SAVEPOINT active_record_1
4078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4079
+  (0.0ms) SAVEPOINT active_record_1
4080
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4081
+ SQL (0.1ms) 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]]
4082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4083
+  (0.0ms) SAVEPOINT active_record_1
4084
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:27 UTC +00:00]]
4085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4086
+  (0.0ms) SAVEPOINT active_record_1
4087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4088
+  (0.5ms) rollback transaction
4089
+  (0.3ms) begin transaction
4090
+ -------------------------------------------------
4091
+ DirtyAssociationsTest: test_changes_reset_by_save
4092
+ -------------------------------------------------
4093
+  (0.0ms) SAVEPOINT active_record_1
4094
+ SQL (2.2ms) 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]]
4095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4096
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4097
+  (0.1ms) SAVEPOINT active_record_1
4098
+ SQL (1.0ms) 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]]
4099
+ SQL (0.3ms) 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]]
4100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4101
+  (0.0ms) SAVEPOINT active_record_1
4102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4103
+  (0.1ms) SAVEPOINT active_record_1
4104
+ SQL (0.2ms) 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]]
4105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4106
+  (0.1ms) SAVEPOINT active_record_1
4107
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4108
+ SQL (0.1ms) 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]]
4109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4110
+  (0.0ms) SAVEPOINT active_record_1
4111
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
4112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4113
+  (6.5ms) rollback transaction
4114
+  (0.1ms) begin transaction
4115
+ ---------------------------------------------------------------------------------------
4116
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4117
+ ---------------------------------------------------------------------------------------
4118
+  (0.1ms) SAVEPOINT active_record_1
4119
+ SQL (0.5ms) 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]]
4120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4121
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4122
+  (0.1ms) SAVEPOINT active_record_1
4123
+ SQL (0.4ms) 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]]
4124
+ SQL (0.1ms) 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]]
4125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4126
+  (0.0ms) SAVEPOINT active_record_1
4127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4128
+  (0.0ms) SAVEPOINT active_record_1
4129
+ SQL (0.1ms) 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]]
4130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4131
+  (0.0ms) SAVEPOINT active_record_1
4132
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4133
+ SQL (0.1ms) 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]]
4134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4135
+  (0.0ms) SAVEPOINT active_record_1
4136
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
4137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4138
+  (0.0ms) SAVEPOINT active_record_1
4139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4140
+  (0.4ms) rollback transaction
4141
+  (0.0ms) begin transaction
4142
+ ----------------------------------------------------------------------------------------------
4143
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4144
+ ----------------------------------------------------------------------------------------------
4145
+  (0.0ms) SAVEPOINT active_record_1
4146
+ SQL (0.2ms) 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]]
4147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4148
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4149
+  (0.0ms) SAVEPOINT active_record_1
4150
+ SQL (0.4ms) 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]]
4151
+ SQL (0.1ms) 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]]
4152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4153
+  (0.0ms) SAVEPOINT active_record_1
4154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4155
+  (0.4ms) rollback transaction
4156
+  (0.0ms) begin transaction
4157
+ -------------------------------------------------------------------------------
4158
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4159
+ -------------------------------------------------------------------------------
4160
+  (0.0ms) SAVEPOINT active_record_1
4161
+ SQL (0.3ms) 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]]
4162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4163
+  (0.0ms) SAVEPOINT active_record_1
4164
+ SQL (0.3ms) 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]]
4165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4166
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4167
+  (0.0ms) SAVEPOINT active_record_1
4168
+ SQL (0.1ms) 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]]
4169
+ SQL (0.1ms) 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]]
4170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4171
+  (0.0ms) SAVEPOINT active_record_1
4172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4173
+  (0.0ms) SAVEPOINT active_record_1
4174
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4175
+ SQL (0.1ms) 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]]
4176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4177
+  (0.4ms) rollback transaction
4178
+  (0.0ms) begin transaction
4179
+ ----------------------------------------------------------------------------------------
4180
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4181
+ ----------------------------------------------------------------------------------------
4182
+  (0.0ms) SAVEPOINT active_record_1
4183
+ SQL (0.2ms) 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]]
4184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4185
+  (0.0ms) SAVEPOINT active_record_1
4186
+ SQL (0.3ms) 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]]
4187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4188
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4189
+  (0.0ms) SAVEPOINT active_record_1
4190
+ SQL (0.1ms) 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]]
4191
+ SQL (0.1ms) 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]]
4192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4193
+  (0.0ms) SAVEPOINT active_record_1
4194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4195
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4196
+  (0.0ms) SAVEPOINT active_record_1
4197
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4198
+ SQL (0.1ms) 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]]
4199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4200
+  (0.4ms) rollback transaction
4201
+  (0.0ms) begin transaction
4202
+ -----------------------------------------------------------------------------------------------------
4203
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
4204
+ -----------------------------------------------------------------------------------------------------
4205
+  (0.0ms) SAVEPOINT active_record_1
4206
+ SQL (0.3ms) 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]]
4207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4208
+  (0.0ms) SAVEPOINT active_record_1
4209
+ SQL (0.4ms) 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]]
4210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4211
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4212
+  (0.0ms) SAVEPOINT active_record_1
4213
+ SQL (0.1ms) 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]]
4214
+ SQL (0.1ms) 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]]
4215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4216
+  (0.0ms) SAVEPOINT active_record_1
4217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4218
+  (0.0ms) SAVEPOINT active_record_1
4219
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4220
+ SQL (0.1ms) 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]]
4221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4222
+  (0.0ms) SAVEPOINT active_record_1
4223
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:42:36 UTC +00:00]]
4224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4225
+  (0.0ms) SAVEPOINT active_record_1
4226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4227
+  (0.4ms) rollback transaction
4228
+  (0.3ms) begin transaction
4229
+ -------------------------------------------------
4230
+ DirtyAssociationsTest: test_changes_reset_by_save
4231
+ -------------------------------------------------
4232
+  (0.1ms) SAVEPOINT active_record_1
4233
+ SQL (2.3ms) 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]]
4234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4235
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4236
+  (0.0ms) SAVEPOINT active_record_1
4237
+ SQL (0.8ms) 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]]
4238
+ SQL (0.2ms) 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]]
4239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4240
+  (0.0ms) SAVEPOINT active_record_1
4241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4242
+  (0.0ms) SAVEPOINT active_record_1
4243
+ SQL (0.2ms) 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]]
4244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4245
+  (0.1ms) SAVEPOINT active_record_1
4246
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4247
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
4248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4249
+  (0.0ms) SAVEPOINT active_record_1
4250
+ SQL (0.2ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
4251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4252
+  (0.6ms) rollback transaction
4253
+  (0.1ms) begin transaction
4254
+ ---------------------------------------------------------------------------------------
4255
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4256
+ ---------------------------------------------------------------------------------------
4257
+  (0.0ms) SAVEPOINT active_record_1
4258
+ SQL (0.3ms) 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]]
4259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4260
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4261
+  (0.0ms) SAVEPOINT active_record_1
4262
+ SQL (0.5ms) 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]]
4263
+ SQL (0.2ms) 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]]
4264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4265
+  (0.0ms) SAVEPOINT active_record_1
4266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4267
+  (0.0ms) SAVEPOINT active_record_1
4268
+ SQL (0.1ms) 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]]
4269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4270
+  (0.0ms) SAVEPOINT active_record_1
4271
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4272
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
4273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4274
+  (0.0ms) SAVEPOINT active_record_1
4275
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
4276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4277
+  (0.0ms) SAVEPOINT active_record_1
4278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4279
+  (0.4ms) rollback transaction
4280
+  (0.1ms) begin transaction
4281
+ ----------------------------------------------------------------------------------------------
4282
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4283
+ ----------------------------------------------------------------------------------------------
4284
+  (0.0ms) SAVEPOINT active_record_1
4285
+ SQL (0.4ms) 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]]
4286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4287
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4288
+  (0.0ms) SAVEPOINT active_record_1
4289
+ SQL (0.4ms) 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]]
4290
+ SQL (0.1ms) 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]]
4291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4292
+  (0.0ms) SAVEPOINT active_record_1
4293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4294
+  (0.4ms) rollback transaction
4295
+  (0.0ms) begin transaction
4296
+ -------------------------------------------------------------------------------
4297
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4298
+ -------------------------------------------------------------------------------
4299
+  (0.0ms) SAVEPOINT active_record_1
4300
+ SQL (0.3ms) 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]]
4301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4302
+  (0.0ms) SAVEPOINT active_record_1
4303
+ SQL (0.3ms) 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]]
4304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4305
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4306
+  (0.0ms) SAVEPOINT active_record_1
4307
+ SQL (0.1ms) 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]]
4308
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 12:43:19 UTC +00:00]]
4309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4310
+  (0.0ms) SAVEPOINT active_record_1
4311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4312
+  (0.0ms) SAVEPOINT active_record_1
4313
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4314
+ SQL (0.1ms) 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]]
4315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4316
+  (0.3ms) begin transaction
4317
+ -------------------------------------------------
4318
+ DirtyAssociationsTest: test_changes_reset_by_save
4319
+ -------------------------------------------------
4320
+  (0.0ms) SAVEPOINT active_record_1
4321
+ SQL (1.9ms) 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]]
4322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4323
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4324
+  (0.0ms) SAVEPOINT active_record_1
4325
+ SQL (0.8ms) 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]]
4326
+ SQL (0.2ms) 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]]
4327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4328
+  (0.0ms) SAVEPOINT active_record_1
4329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4330
+  (0.0ms) SAVEPOINT active_record_1
4331
+ SQL (0.1ms) 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]]
4332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4333
+  (0.0ms) SAVEPOINT active_record_1
4334
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4335
+ SQL (0.1ms) 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]]
4336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4337
+  (0.0ms) SAVEPOINT active_record_1
4338
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
4339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4340
+  (0.4ms) rollback transaction
4341
+  (0.0ms) begin transaction
4342
+ ---------------------------------------------------------------------------------------
4343
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4344
+ ---------------------------------------------------------------------------------------
4345
+  (0.0ms) SAVEPOINT active_record_1
4346
+ SQL (0.3ms) 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]]
4347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4348
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4349
+  (0.0ms) SAVEPOINT active_record_1
4350
+ SQL (0.3ms) 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]]
4351
+ SQL (0.1ms) 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]]
4352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4353
+  (0.0ms) SAVEPOINT active_record_1
4354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4355
+  (0.0ms) SAVEPOINT active_record_1
4356
+ SQL (0.1ms) 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]]
4357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4358
+  (0.0ms) SAVEPOINT active_record_1
4359
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4360
+ SQL (0.1ms) 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]]
4361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4362
+  (0.0ms) SAVEPOINT active_record_1
4363
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
4364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4365
+  (0.0ms) SAVEPOINT active_record_1
4366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4367
+  (0.4ms) rollback transaction
4368
+  (0.1ms) begin transaction
4369
+ ----------------------------------------------------------------------------------------------
4370
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4371
+ ----------------------------------------------------------------------------------------------
4372
+  (0.0ms) SAVEPOINT active_record_1
4373
+ SQL (0.4ms) 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]]
4374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4375
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4376
+  (0.0ms) SAVEPOINT active_record_1
4377
+ SQL (0.3ms) 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]]
4378
+ SQL (0.1ms) 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]]
4379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4380
+  (0.0ms) SAVEPOINT active_record_1
4381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4382
+  (0.4ms) rollback transaction
4383
+  (0.1ms) begin transaction
4384
+ -------------------------------------------------------------------------------
4385
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4386
+ -------------------------------------------------------------------------------
4387
+  (0.0ms) SAVEPOINT active_record_1
4388
+ SQL (0.2ms) 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]]
4389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4390
+  (0.0ms) SAVEPOINT active_record_1
4391
+ SQL (0.2ms) 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]]
4392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4393
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4394
+  (0.0ms) SAVEPOINT active_record_1
4395
+ SQL (0.1ms) 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]]
4396
+ SQL (0.1ms) 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]]
4397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4398
+  (0.0ms) SAVEPOINT active_record_1
4399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4400
+  (0.0ms) SAVEPOINT active_record_1
4401
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4402
+ SQL (0.1ms) 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]]
4403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4404
+  (0.5ms) rollback transaction
4405
+  (0.0ms) begin transaction
4406
+ ----------------------------------------------------------------------------------------
4407
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4408
+ ----------------------------------------------------------------------------------------
4409
+  (0.0ms) SAVEPOINT active_record_1
4410
+ SQL (0.3ms) 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]]
4411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4412
+  (0.0ms) SAVEPOINT active_record_1
4413
+ SQL (0.3ms) 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]]
4414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4415
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4416
+  (0.0ms) SAVEPOINT active_record_1
4417
+ SQL (0.2ms) 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]]
4418
+ SQL (0.1ms) 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]]
4419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4420
+  (0.0ms) SAVEPOINT active_record_1
4421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4422
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4423
+  (0.0ms) SAVEPOINT active_record_1
4424
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4425
+ SQL (0.1ms) 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]]
4426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4427
+  (0.4ms) rollback transaction
4428
+  (0.0ms) begin transaction
4429
+ -----------------------------------------------------------------------------------------------------
4430
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
4431
+ -----------------------------------------------------------------------------------------------------
4432
+  (0.0ms) SAVEPOINT active_record_1
4433
+ SQL (0.2ms) 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]]
4434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4435
+  (0.0ms) SAVEPOINT active_record_1
4436
+ SQL (0.3ms) 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]]
4437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4438
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4439
+  (0.0ms) SAVEPOINT active_record_1
4440
+ SQL (0.1ms) 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]]
4441
+ SQL (0.1ms) 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]]
4442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4443
+  (0.0ms) SAVEPOINT active_record_1
4444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4445
+  (0.0ms) SAVEPOINT active_record_1
4446
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4447
+ SQL (0.1ms) 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]]
4448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4449
+  (0.0ms) SAVEPOINT active_record_1
4450
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 12:47:59 UTC +00:00]]
4451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4452
+  (0.1ms) SAVEPOINT active_record_1
4453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4454
+  (0.4ms) rollback transaction
4455
+  (0.3ms) begin transaction
4456
+ -------------------------------------------------
4457
+ DirtyAssociationsTest: test_changes_reset_by_save
4458
+ -------------------------------------------------
4459
+  (0.0ms) SAVEPOINT active_record_1
4460
+ SQL (4.2ms) 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]]
4461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4462
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4463
+  (0.0ms) SAVEPOINT active_record_1
4464
+ SQL (1.0ms) 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]]
4465
+ SQL (0.2ms) 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]]
4466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4467
+  (0.0ms) SAVEPOINT active_record_1
4468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4469
+  (0.0ms) SAVEPOINT active_record_1
4470
+ SQL (0.1ms) 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]]
4471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4472
+  (0.0ms) SAVEPOINT active_record_1
4473
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4474
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
4475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4476
+  (0.0ms) SAVEPOINT active_record_1
4477
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
4478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4479
+  (0.4ms) rollback transaction
4480
+  (0.0ms) begin transaction
4481
+ ---------------------------------------------------------------------------------------
4482
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4483
+ ---------------------------------------------------------------------------------------
4484
+  (0.0ms) SAVEPOINT active_record_1
4485
+ SQL (0.3ms) 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]]
4486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4487
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4488
+  (0.0ms) SAVEPOINT active_record_1
4489
+ SQL (0.3ms) 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]]
4490
+ SQL (0.1ms) 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]]
4491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4492
+  (0.0ms) SAVEPOINT active_record_1
4493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4494
+  (0.0ms) SAVEPOINT active_record_1
4495
+ SQL (0.1ms) 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]]
4496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4497
+  (0.0ms) SAVEPOINT active_record_1
4498
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4499
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
4500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4501
+  (0.0ms) SAVEPOINT active_record_1
4502
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
4503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4504
+  (0.0ms) SAVEPOINT active_record_1
4505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4506
+  (0.5ms) rollback transaction
4507
+  (0.0ms) begin transaction
4508
+ ----------------------------------------------------------------------------------------------
4509
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4510
+ ----------------------------------------------------------------------------------------------
4511
+  (0.0ms) SAVEPOINT active_record_1
4512
+ SQL (0.2ms) 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]]
4513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4514
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4515
+  (0.1ms) SAVEPOINT active_record_1
4516
+ SQL (0.3ms) 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]]
4517
+ SQL (0.1ms) 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]]
4518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4519
+  (0.0ms) SAVEPOINT active_record_1
4520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4521
+  (0.3ms) rollback transaction
4522
+  (0.0ms) begin transaction
4523
+ -------------------------------------------------------------------------------
4524
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4525
+ -------------------------------------------------------------------------------
4526
+  (0.0ms) SAVEPOINT active_record_1
4527
+ SQL (0.2ms) 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]]
4528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4529
+  (0.0ms) SAVEPOINT active_record_1
4530
+ SQL (0.4ms) 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]]
4531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4532
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4533
+  (0.0ms) SAVEPOINT active_record_1
4534
+ SQL (0.1ms) 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]]
4535
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:02:09 UTC +00:00]]
4536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4537
+  (0.0ms) SAVEPOINT active_record_1
4538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4539
+  (0.0ms) SAVEPOINT active_record_1
4540
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4541
+ SQL (0.1ms) 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]]
4542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4543
+  (0.3ms) begin transaction
4544
+ -------------------------------------------------
4545
+ DirtyAssociationsTest: test_changes_reset_by_save
4546
+ -------------------------------------------------
4547
+  (0.0ms) SAVEPOINT active_record_1
4548
+ SQL (6.0ms) 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]]
4549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4550
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4551
+  (0.0ms) SAVEPOINT active_record_1
4552
+ SQL (0.7ms) 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]]
4553
+ SQL (0.2ms) 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]]
4554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4555
+  (0.0ms) SAVEPOINT active_record_1
4556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4557
+  (0.0ms) SAVEPOINT active_record_1
4558
+ SQL (0.1ms) 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]]
4559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4560
+  (0.0ms) SAVEPOINT active_record_1
4561
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4562
+ SQL (0.1ms) 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]]
4563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4564
+  (0.0ms) SAVEPOINT active_record_1
4565
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
4566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4567
+  (0.4ms) rollback transaction
4568
+  (0.0ms) begin transaction
4569
+ ---------------------------------------------------------------------------------------
4570
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4571
+ ---------------------------------------------------------------------------------------
4572
+  (0.0ms) SAVEPOINT active_record_1
4573
+ SQL (0.3ms) 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]]
4574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4575
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4576
+  (0.0ms) SAVEPOINT active_record_1
4577
+ SQL (0.4ms) 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]]
4578
+ SQL (0.1ms) 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]]
4579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4580
+  (0.0ms) SAVEPOINT active_record_1
4581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4582
+  (0.0ms) SAVEPOINT active_record_1
4583
+ SQL (0.1ms) 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]]
4584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4585
+  (0.0ms) SAVEPOINT active_record_1
4586
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4587
+ SQL (0.1ms) 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]]
4588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4589
+  (0.0ms) SAVEPOINT active_record_1
4590
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
4591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4592
+  (0.0ms) SAVEPOINT active_record_1
4593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4594
+  (0.3ms) rollback transaction
4595
+  (0.0ms) begin transaction
4596
+ ----------------------------------------------------------------------------------------------
4597
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4598
+ ----------------------------------------------------------------------------------------------
4599
+  (0.0ms) SAVEPOINT active_record_1
4600
+ SQL (0.2ms) 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]]
4601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4602
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4603
+  (0.0ms) SAVEPOINT active_record_1
4604
+ SQL (0.3ms) 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]]
4605
+ SQL (0.1ms) 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]]
4606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4607
+  (0.0ms) SAVEPOINT active_record_1
4608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4609
+  (0.3ms) rollback transaction
4610
+  (0.0ms) begin transaction
4611
+ -------------------------------------------------------------------------------
4612
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4613
+ -------------------------------------------------------------------------------
4614
+  (0.0ms) SAVEPOINT active_record_1
4615
+ SQL (0.2ms) 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]]
4616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4617
+  (0.0ms) SAVEPOINT active_record_1
4618
+ SQL (0.4ms) 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]]
4619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4620
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4621
+  (0.1ms) SAVEPOINT active_record_1
4622
+ SQL (0.2ms) 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]]
4623
+ SQL (0.1ms) 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]]
4624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4625
+  (0.0ms) SAVEPOINT active_record_1
4626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4627
+  (0.0ms) SAVEPOINT active_record_1
4628
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4629
+ SQL (0.1ms) 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]]
4630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4631
+  (0.5ms) rollback transaction
4632
+  (0.1ms) begin transaction
4633
+ ----------------------------------------------------------------------------------------
4634
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4635
+ ----------------------------------------------------------------------------------------
4636
+  (0.0ms) SAVEPOINT active_record_1
4637
+ SQL (0.4ms) 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]]
4638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4639
+  (0.0ms) SAVEPOINT active_record_1
4640
+ SQL (0.4ms) 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]]
4641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4642
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4643
+  (0.1ms) SAVEPOINT active_record_1
4644
+ SQL (0.2ms) 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]]
4645
+ SQL (0.1ms) 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]]
4646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4647
+  (0.0ms) SAVEPOINT active_record_1
4648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4649
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4650
+  (0.0ms) SAVEPOINT active_record_1
4651
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4652
+ SQL (0.1ms) 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]]
4653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4654
+  (0.4ms) rollback transaction
4655
+  (0.1ms) begin transaction
4656
+ -----------------------------------------------------------------------------------------------------
4657
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
4658
+ -----------------------------------------------------------------------------------------------------
4659
+  (0.0ms) SAVEPOINT active_record_1
4660
+ SQL (0.3ms) 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]]
4661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4662
+  (0.0ms) SAVEPOINT active_record_1
4663
+ SQL (0.3ms) 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]]
4664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4665
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4666
+  (0.1ms) SAVEPOINT active_record_1
4667
+ SQL (0.2ms) 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]]
4668
+ SQL (0.1ms) 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]]
4669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4670
+  (0.0ms) SAVEPOINT active_record_1
4671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4672
+  (0.1ms) SAVEPOINT active_record_1
4673
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4674
+ SQL (0.1ms) 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]]
4675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4676
+  (0.0ms) SAVEPOINT active_record_1
4677
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:49:08 UTC +00:00]]
4678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4679
+  (0.1ms) SAVEPOINT active_record_1
4680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4681
+  (0.5ms) rollback transaction
4682
+  (0.2ms) begin transaction
4683
+ -------------------------------------------------
4684
+ DirtyAssociationsTest: test_changes_reset_by_save
4685
+ -------------------------------------------------
4686
+  (0.0ms) SAVEPOINT active_record_1
4687
+ SQL (2.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:50:08 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:08 UTC +00:00]]
4688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4689
+ Foo Load (0.3ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4690
+  (0.1ms) SAVEPOINT active_record_1
4691
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00]]
4692
+ SQL (0.4ms) 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]]
4693
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4694
+  (0.1ms) SAVEPOINT active_record_1
4695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4696
+  (0.1ms) SAVEPOINT active_record_1
4697
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:13 UTC +00:00]]
4698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4699
+  (0.2ms) SAVEPOINT active_record_1
4700
+ SQL (0.3ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4701
+ SQL (0.4ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00]]
4702
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4703
+  (0.1ms) SAVEPOINT active_record_1
4704
+ SQL (0.2ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00]]
4705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4706
+  (0.3ms) rollback transaction
4707
+  (0.1ms) begin transaction
4708
+ ---------------------------------------------------------------------------------------
4709
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4710
+ ---------------------------------------------------------------------------------------
4711
+  (0.1ms) SAVEPOINT active_record_1
4712
+ SQL (0.6ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:21 UTC +00:00]]
4713
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4714
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4715
+  (0.1ms) SAVEPOINT active_record_1
4716
+ SQL (0.7ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00]]
4717
+ SQL (0.3ms) 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]]
4718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4719
+  (0.1ms) SAVEPOINT active_record_1
4720
+  (0.4ms) RELEASE SAVEPOINT active_record_1
4721
+  (0.1ms) SAVEPOINT active_record_1
4722
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 14:50:24 UTC +00:00]]
4723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4724
+  (0.3ms) begin transaction
4725
+ -------------------------------------------------
4726
+ DirtyAssociationsTest: test_changes_reset_by_save
4727
+ -------------------------------------------------
4728
+  (0.0ms) SAVEPOINT active_record_1
4729
+ SQL (1.9ms) 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]]
4730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4731
+  (0.5ms) rollback transaction
4732
+  (0.1ms) begin transaction
4733
+ ---------------------------------------------------------------------------------------
4734
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4735
+ ---------------------------------------------------------------------------------------
4736
+  (0.0ms) SAVEPOINT active_record_1
4737
+ SQL (0.3ms) 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]]
4738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4739
+  (0.4ms) rollback transaction
4740
+  (0.0ms) begin transaction
4741
+ ----------------------------------------------------------------------------------------------
4742
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4743
+ ----------------------------------------------------------------------------------------------
4744
+  (0.0ms) SAVEPOINT active_record_1
4745
+ SQL (0.2ms) 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]]
4746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4747
+  (0.3ms) rollback transaction
4748
+  (0.0ms) begin transaction
4749
+ -------------------------------------------------------------------------------
4750
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4751
+ -------------------------------------------------------------------------------
4752
+  (0.0ms) SAVEPOINT active_record_1
4753
+ SQL (0.2ms) 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]]
4754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4755
+  (0.0ms) SAVEPOINT active_record_1
4756
+ SQL (0.6ms) 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]]
4757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4758
+  (0.4ms) rollback transaction
4759
+  (0.0ms) begin transaction
4760
+ ----------------------------------------------------------------------------------------
4761
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4762
+ ----------------------------------------------------------------------------------------
4763
+  (0.0ms) SAVEPOINT active_record_1
4764
+ SQL (0.3ms) 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]]
4765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4766
+  (0.0ms) SAVEPOINT active_record_1
4767
+ SQL (0.3ms) 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]]
4768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4769
+  (0.3ms) rollback transaction
4770
+  (0.0ms) begin transaction
4771
+ -----------------------------------------------------------------------------------------------------
4772
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
4773
+ -----------------------------------------------------------------------------------------------------
4774
+  (0.0ms) SAVEPOINT active_record_1
4775
+ SQL (0.2ms) 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]]
4776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4777
+  (0.0ms) SAVEPOINT active_record_1
4778
+ SQL (0.3ms) 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]]
4779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4780
+  (0.3ms) rollback transaction
4781
+  (0.3ms) begin transaction
4782
+ -------------------------------------------------
4783
+ DirtyAssociationsTest: test_changes_reset_by_save
4784
+ -------------------------------------------------
4785
+  (0.0ms) SAVEPOINT active_record_1
4786
+ SQL (2.0ms) 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]]
4787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4788
+  (0.4ms) rollback transaction
4789
+  (0.1ms) begin transaction
4790
+ ---------------------------------------------------------------------------------------
4791
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4792
+ ---------------------------------------------------------------------------------------
4793
+  (0.0ms) SAVEPOINT active_record_1
4794
+ SQL (0.4ms) 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]]
4795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4796
+  (0.4ms) rollback transaction
4797
+  (0.0ms) begin transaction
4798
+ ----------------------------------------------------------------------------------------------
4799
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4800
+ ----------------------------------------------------------------------------------------------
4801
+  (0.0ms) SAVEPOINT active_record_1
4802
+ SQL (0.2ms) 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]]
4803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4804
+  (0.3ms) rollback transaction
4805
+  (0.0ms) begin transaction
4806
+ -------------------------------------------------------------------------------
4807
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4808
+ -------------------------------------------------------------------------------
4809
+  (0.0ms) SAVEPOINT active_record_1
4810
+ SQL (0.2ms) 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]]
4811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4812
+  (0.0ms) SAVEPOINT active_record_1
4813
+ SQL (0.7ms) 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]]
4814
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4815
+  (0.5ms) rollback transaction
4816
+  (0.1ms) begin transaction
4817
+ ----------------------------------------------------------------------------------------
4818
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4819
+ ----------------------------------------------------------------------------------------
4820
+  (0.0ms) SAVEPOINT active_record_1
4821
+ SQL (0.2ms) 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]]
4822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4823
+  (0.0ms) SAVEPOINT active_record_1
4824
+ SQL (0.2ms) 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]]
4825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4826
+  (0.3ms) rollback transaction
4827
+  (0.0ms) begin transaction
4828
+ -----------------------------------------------------------------------------------------------------
4829
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
4830
+ -----------------------------------------------------------------------------------------------------
4831
+  (0.0ms) SAVEPOINT active_record_1
4832
+ SQL (0.2ms) 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]]
4833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4834
+  (0.0ms) SAVEPOINT active_record_1
4835
+ SQL (0.3ms) 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]]
4836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4837
+  (0.5ms) rollback transaction
4838
+  (0.2ms) begin transaction
4839
+ -------------------------------------------------
4840
+ DirtyAssociationsTest: test_changes_reset_by_save
4841
+ -------------------------------------------------
4842
+  (0.0ms) SAVEPOINT active_record_1
4843
+ SQL (2.1ms) 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]]
4844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4845
+  (6.4ms) rollback transaction
4846
+  (0.0ms) begin transaction
4847
+ ---------------------------------------------------------------------------------------
4848
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4849
+ ---------------------------------------------------------------------------------------
4850
+  (0.1ms) SAVEPOINT active_record_1
4851
+ SQL (0.4ms) 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]]
4852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4853
+  (0.4ms) rollback transaction
4854
+  (0.0ms) begin transaction
4855
+ ----------------------------------------------------------------------------------------------
4856
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4857
+ ----------------------------------------------------------------------------------------------
4858
+  (0.0ms) SAVEPOINT active_record_1
4859
+ SQL (0.3ms) 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]]
4860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4861
+  (0.3ms) rollback transaction
4862
+  (0.1ms) begin transaction
4863
+ -------------------------------------------------------------------------------
4864
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4865
+ -------------------------------------------------------------------------------
4866
+  (0.0ms) SAVEPOINT active_record_1
4867
+ SQL (0.2ms) 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]]
4868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4869
+  (0.0ms) SAVEPOINT active_record_1
4870
+ SQL (0.6ms) 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]]
4871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4872
+  (0.5ms) rollback transaction
4873
+  (0.0ms) begin transaction
4874
+ ----------------------------------------------------------------------------------------
4875
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4876
+ ----------------------------------------------------------------------------------------
4877
+  (0.0ms) SAVEPOINT active_record_1
4878
+ SQL (0.3ms) 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]]
4879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4880
+  (0.0ms) SAVEPOINT active_record_1
4881
+ SQL (0.3ms) 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]]
4882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4883
+  (0.3ms) rollback transaction
4884
+  (0.0ms) begin transaction
4885
+ -----------------------------------------------------------------------------------------------------
4886
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
4887
+ -----------------------------------------------------------------------------------------------------
4888
+  (0.0ms) SAVEPOINT active_record_1
4889
+ SQL (0.3ms) 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]]
4890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4891
+  (0.0ms) SAVEPOINT active_record_1
4892
+ SQL (0.3ms) 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]]
4893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4894
+  (0.4ms) rollback transaction
4895
+  (0.2ms) begin transaction
4896
+ -------------------------------------------------
4897
+ DirtyAssociationsTest: test_changes_reset_by_save
4898
+ -------------------------------------------------
4899
+  (0.0ms) SAVEPOINT active_record_1
4900
+ SQL (1.9ms) 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]]
4901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4902
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4903
+  (0.0ms) SAVEPOINT active_record_1
4904
+ SQL (1.0ms) 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]]
4905
+ SQL (0.2ms) 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]]
4906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4907
+  (0.0ms) SAVEPOINT active_record_1
4908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4909
+  (0.0ms) SAVEPOINT active_record_1
4910
+ SQL (0.2ms) 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]]
4911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4912
+  (0.0ms) SAVEPOINT active_record_1
4913
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4914
+ SQL (0.2ms) 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]]
4915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4916
+  (0.0ms) SAVEPOINT active_record_1
4917
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
4918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4919
+  (6.4ms) rollback transaction
4920
+  (0.1ms) begin transaction
4921
+ ---------------------------------------------------------------------------------------
4922
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
4923
+ ---------------------------------------------------------------------------------------
4924
+  (0.0ms) SAVEPOINT active_record_1
4925
+ SQL (0.3ms) 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]]
4926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4927
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4928
+  (0.0ms) SAVEPOINT active_record_1
4929
+ SQL (0.3ms) 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]]
4930
+ SQL (0.1ms) 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]]
4931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4932
+  (0.1ms) SAVEPOINT active_record_1
4933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4934
+  (0.0ms) SAVEPOINT active_record_1
4935
+ SQL (0.1ms) 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]]
4936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4937
+  (0.0ms) SAVEPOINT active_record_1
4938
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
4939
+ SQL (0.1ms) 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]]
4940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4941
+  (0.0ms) SAVEPOINT active_record_1
4942
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
4943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4944
+  (0.0ms) SAVEPOINT active_record_1
4945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4946
+  (0.3ms) rollback transaction
4947
+  (0.0ms) begin transaction
4948
+ ----------------------------------------------------------------------------------------------
4949
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
4950
+ ----------------------------------------------------------------------------------------------
4951
+  (0.0ms) SAVEPOINT active_record_1
4952
+ SQL (0.2ms) 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]]
4953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4954
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
4955
+  (0.0ms) SAVEPOINT active_record_1
4956
+ SQL (0.4ms) 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]]
4957
+ SQL (0.1ms) 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]]
4958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4959
+  (0.0ms) SAVEPOINT active_record_1
4960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4961
+  (0.3ms) rollback transaction
4962
+  (0.0ms) begin transaction
4963
+ -------------------------------------------------------------------------------
4964
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
4965
+ -------------------------------------------------------------------------------
4966
+  (0.0ms) SAVEPOINT active_record_1
4967
+ SQL (0.2ms) 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]]
4968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4969
+  (0.0ms) SAVEPOINT active_record_1
4970
+ SQL (0.3ms) 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]]
4971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4972
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4973
+  (0.0ms) SAVEPOINT active_record_1
4974
+ SQL (0.1ms) 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]]
4975
+ SQL (0.1ms) 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]]
4976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4977
+  (0.0ms) SAVEPOINT active_record_1
4978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4979
+  (0.0ms) SAVEPOINT active_record_1
4980
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
4981
+ SQL (0.1ms) 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]]
4982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4983
+  (0.5ms) rollback transaction
4984
+  (0.1ms) begin transaction
4985
+ ----------------------------------------------------------------------------------------
4986
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
4987
+ ----------------------------------------------------------------------------------------
4988
+  (0.1ms) SAVEPOINT active_record_1
4989
+ SQL (0.3ms) 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]]
4990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4991
+  (0.0ms) SAVEPOINT active_record_1
4992
+ SQL (0.3ms) 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]]
4993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4994
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
4995
+  (0.0ms) SAVEPOINT active_record_1
4996
+ SQL (0.1ms) 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]]
4997
+ SQL (0.1ms) 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]]
4998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4999
+  (0.0ms) SAVEPOINT active_record_1
5000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5001
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5002
+  (0.0ms) SAVEPOINT active_record_1
5003
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5004
+ SQL (0.1ms) 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]]
5005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5006
+  (0.4ms) rollback transaction
5007
+  (0.0ms) begin transaction
5008
+ -----------------------------------------------------------------------------------------------------
5009
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
5010
+ -----------------------------------------------------------------------------------------------------
5011
+  (0.0ms) SAVEPOINT active_record_1
5012
+ SQL (0.2ms) 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]]
5013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5014
+  (0.0ms) SAVEPOINT active_record_1
5015
+ SQL (0.3ms) 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]]
5016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5017
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5018
+  (0.0ms) SAVEPOINT active_record_1
5019
+ SQL (0.1ms) 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]]
5020
+ SQL (0.1ms) 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]]
5021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5022
+  (0.0ms) SAVEPOINT active_record_1
5023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5024
+  (0.0ms) SAVEPOINT active_record_1
5025
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5026
+ SQL (0.1ms) 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]]
5027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5028
+  (0.0ms) SAVEPOINT active_record_1
5029
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 14:54:10 UTC +00:00]]
5030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5031
+  (0.0ms) SAVEPOINT active_record_1
5032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5033
+  (0.3ms) rollback transaction
5034
+  (0.2ms) begin transaction
5035
+ -------------------------------------------------------------------------------
5036
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5037
+ -------------------------------------------------------------------------------
5038
+  (0.0ms) SAVEPOINT active_record_1
5039
+ SQL (2.1ms) 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]]
5040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5041
+  (0.0ms) SAVEPOINT active_record_1
5042
+ SQL (0.7ms) 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]]
5043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5044
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5045
+  (0.0ms) SAVEPOINT active_record_1
5046
+ SQL (0.2ms) 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]]
5047
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00]]
5048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5049
+  (0.0ms) SAVEPOINT active_record_1
5050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5051
+  (0.0ms) SAVEPOINT active_record_1
5052
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5053
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:54:36 UTC +00:00]]
5054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5055
+  (5.7ms) rollback transaction
5056
+  (0.3ms) begin transaction
5057
+ -------------------------------------------------------------------------------
5058
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5059
+ -------------------------------------------------------------------------------
5060
+  (0.0ms) SAVEPOINT active_record_1
5061
+ SQL (2.1ms) 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]]
5062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5063
+  (0.0ms) SAVEPOINT active_record_1
5064
+ SQL (0.7ms) 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]]
5065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5066
+  (0.3ms) begin transaction
5067
+ -------------------------------------------------------------------------------
5068
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5069
+ -------------------------------------------------------------------------------
5070
+  (0.0ms) SAVEPOINT active_record_1
5071
+ SQL (2.2ms) 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]]
5072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5073
+  (0.0ms) SAVEPOINT active_record_1
5074
+ SQL (0.6ms) 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]]
5075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5076
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5077
+  (0.1ms) SAVEPOINT active_record_1
5078
+ SQL (0.2ms) 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]]
5079
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00]]
5080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5081
+  (0.0ms) SAVEPOINT active_record_1
5082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5083
+  (0.0ms) SAVEPOINT active_record_1
5084
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5085
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:56:32 UTC +00:00]]
5086
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5087
+  (0.5ms) rollback transaction
5088
+  (0.2ms) begin transaction
5089
+ -------------------------------------------------------------------------------
5090
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5091
+ -------------------------------------------------------------------------------
5092
+  (0.0ms) SAVEPOINT active_record_1
5093
+ SQL (1.9ms) 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]]
5094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5095
+  (0.0ms) SAVEPOINT active_record_1
5096
+ SQL (0.8ms) 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]]
5097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5098
+ Foo Load (0.3ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5099
+  (0.2ms) SAVEPOINT active_record_1
5100
+ SQL (0.5ms) 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]]
5101
+ SQL (0.4ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 14:59:09 UTC +00:00]]
5102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5103
+  (0.1ms) SAVEPOINT active_record_1
5104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5105
+  (0.2ms) begin transaction
5106
+ -------------------------------------------------------------------------------
5107
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5108
+ -------------------------------------------------------------------------------
5109
+  (0.1ms) SAVEPOINT active_record_1
5110
+ SQL (1.9ms) 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]]
5111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5112
+  (0.0ms) SAVEPOINT active_record_1
5113
+ SQL (0.8ms) 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]]
5114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5115
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5116
+  (0.1ms) SAVEPOINT active_record_1
5117
+ SQL (0.2ms) 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]]
5118
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00]]
5119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5120
+  (0.0ms) SAVEPOINT active_record_1
5121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5122
+  (0.0ms) SAVEPOINT active_record_1
5123
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5124
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:12 UTC +00:00]]
5125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5126
+  (5.7ms) rollback transaction
5127
+  (0.2ms) begin transaction
5128
+ -------------------------------------------------------------------------------
5129
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5130
+ -------------------------------------------------------------------------------
5131
+  (0.0ms) SAVEPOINT active_record_1
5132
+ SQL (2.1ms) 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]]
5133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5134
+  (0.0ms) SAVEPOINT active_record_1
5135
+ SQL (0.6ms) 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]]
5136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5137
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5138
+  (0.0ms) SAVEPOINT active_record_1
5139
+ SQL (0.3ms) 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]]
5140
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00]]
5141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5142
+  (0.0ms) SAVEPOINT active_record_1
5143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5144
+  (0.0ms) SAVEPOINT active_record_1
5145
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5146
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:00:43 UTC +00:00]]
5147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5148
+  (0.7ms) rollback transaction
5149
+  (0.3ms) begin transaction
5150
+ -------------------------------------------------------------------------------
5151
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5152
+ -------------------------------------------------------------------------------
5153
+  (0.0ms) SAVEPOINT active_record_1
5154
+ SQL (2.1ms) 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]]
5155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5156
+  (0.0ms) SAVEPOINT active_record_1
5157
+ SQL (0.8ms) 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]]
5158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5159
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5160
+  (0.0ms) SAVEPOINT active_record_1
5161
+ SQL (0.2ms) 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]]
5162
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00]]
5163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5164
+  (0.0ms) SAVEPOINT active_record_1
5165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5166
+  (0.1ms) SAVEPOINT active_record_1
5167
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5168
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:01:43 UTC +00:00]]
5169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5170
+  (5.6ms) rollback transaction
5171
+  (0.3ms) begin transaction
5172
+ -------------------------------------------------------------------------------
5173
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5174
+ -------------------------------------------------------------------------------
5175
+  (0.0ms) SAVEPOINT active_record_1
5176
+ SQL (2.1ms) 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]]
5177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5178
+  (0.0ms) SAVEPOINT active_record_1
5179
+ SQL (0.7ms) 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]]
5180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5181
+ Foo Load (0.4ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5182
+  (0.2ms) SAVEPOINT active_record_1
5183
+ SQL (0.5ms) 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]]
5184
+ SQL (0.4ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:02:17 UTC +00:00]]
5185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5186
+  (0.1ms) SAVEPOINT active_record_1
5187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5188
+  (0.3ms) begin transaction
5189
+ -------------------------------------------------------------------------------
5190
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5191
+ -------------------------------------------------------------------------------
5192
+  (0.0ms) SAVEPOINT active_record_1
5193
+ SQL (2.0ms) 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]]
5194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5195
+  (0.0ms) SAVEPOINT active_record_1
5196
+ SQL (0.7ms) 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]]
5197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5198
+ Foo Load (0.3ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5199
+  (0.1ms) SAVEPOINT active_record_1
5200
+ SQL (0.5ms) 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]]
5201
+ SQL (0.3ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:04:02 UTC +00:00]]
5202
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5203
+  (0.1ms) SAVEPOINT active_record_1
5204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5205
+  (0.2ms) begin transaction
5206
+ -------------------------------------------------------------------------------
5207
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5208
+ -------------------------------------------------------------------------------
5209
+  (0.0ms) SAVEPOINT active_record_1
5210
+ SQL (1.8ms) 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]]
5211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5212
+  (0.0ms) SAVEPOINT active_record_1
5213
+ SQL (0.9ms) 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]]
5214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5215
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5216
+  (0.0ms) SAVEPOINT active_record_1
5217
+ SQL (0.3ms) 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]]
5218
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00]]
5219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5220
+  (0.0ms) SAVEPOINT active_record_1
5221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5222
+  (0.0ms) SAVEPOINT active_record_1
5223
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5224
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:05:20 UTC +00:00]]
5225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5226
+  (0.4ms) rollback transaction
5227
+  (0.2ms) begin transaction
5228
+ -------------------------------------------------
5229
+ DirtyAssociationsTest: test_changes_reset_by_save
5230
+ -------------------------------------------------
5231
+  (0.0ms) SAVEPOINT active_record_1
5232
+ SQL (1.9ms) 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]]
5233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5234
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5235
+  (0.0ms) SAVEPOINT active_record_1
5236
+ SQL (0.9ms) 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]]
5237
+ SQL (0.2ms) 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]]
5238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5239
+  (0.0ms) SAVEPOINT active_record_1
5240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5241
+  (0.0ms) SAVEPOINT active_record_1
5242
+ SQL (0.1ms) 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]]
5243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5244
+  (0.0ms) SAVEPOINT active_record_1
5245
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5246
+ SQL (0.1ms) 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]]
5247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5248
+  (0.0ms) SAVEPOINT active_record_1
5249
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
5250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5251
+  (6.3ms) rollback transaction
5252
+  (0.1ms) begin transaction
5253
+ ---------------------------------------------------------------------------------------
5254
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
5255
+ ---------------------------------------------------------------------------------------
5256
+  (0.0ms) SAVEPOINT active_record_1
5257
+ SQL (0.3ms) 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]]
5258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5259
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5260
+  (0.0ms) SAVEPOINT active_record_1
5261
+ SQL (0.3ms) 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]]
5262
+ SQL (0.1ms) 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]]
5263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5264
+  (0.0ms) SAVEPOINT active_record_1
5265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5266
+  (0.0ms) SAVEPOINT active_record_1
5267
+ SQL (0.1ms) 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]]
5268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5269
+  (0.0ms) SAVEPOINT active_record_1
5270
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5271
+ SQL (0.1ms) 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]]
5272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5273
+  (0.0ms) SAVEPOINT active_record_1
5274
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
5275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5276
+  (0.0ms) SAVEPOINT active_record_1
5277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5278
+  (0.3ms) rollback transaction
5279
+  (0.0ms) begin transaction
5280
+ ----------------------------------------------------------------------------------------------
5281
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
5282
+ ----------------------------------------------------------------------------------------------
5283
+  (0.0ms) SAVEPOINT active_record_1
5284
+ SQL (0.2ms) 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]]
5285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5286
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5287
+  (0.0ms) SAVEPOINT active_record_1
5288
+ SQL (0.3ms) 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]]
5289
+ SQL (0.1ms) 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]]
5290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5291
+  (0.0ms) SAVEPOINT active_record_1
5292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5293
+  (0.4ms) rollback transaction
5294
+  (0.0ms) begin transaction
5295
+ -------------------------------------------------------------------------------
5296
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5297
+ -------------------------------------------------------------------------------
5298
+  (0.0ms) SAVEPOINT active_record_1
5299
+ SQL (0.2ms) 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]]
5300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5301
+  (0.0ms) SAVEPOINT active_record_1
5302
+ SQL (0.2ms) 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]]
5303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5304
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5305
+  (0.0ms) SAVEPOINT active_record_1
5306
+ SQL (0.1ms) 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]]
5307
+ SQL (0.1ms) 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]]
5308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5309
+  (0.0ms) SAVEPOINT active_record_1
5310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5311
+  (0.0ms) SAVEPOINT active_record_1
5312
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5313
+ SQL (0.1ms) 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]]
5314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5315
+  (0.3ms) rollback transaction
5316
+  (0.0ms) begin transaction
5317
+ ----------------------------------------------------------------------------------------
5318
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
5319
+ ----------------------------------------------------------------------------------------
5320
+  (0.0ms) SAVEPOINT active_record_1
5321
+ SQL (0.2ms) 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]]
5322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5323
+  (0.0ms) SAVEPOINT active_record_1
5324
+ SQL (0.3ms) 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]]
5325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5326
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5327
+  (0.0ms) SAVEPOINT active_record_1
5328
+ SQL (0.1ms) 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]]
5329
+ SQL (0.1ms) 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]]
5330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5331
+  (0.0ms) SAVEPOINT active_record_1
5332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5333
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5334
+  (0.0ms) SAVEPOINT active_record_1
5335
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5336
+ SQL (0.1ms) 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]]
5337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5338
+  (0.3ms) rollback transaction
5339
+  (0.0ms) begin transaction
5340
+ -----------------------------------------------------------------------------------------------------
5341
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
5342
+ -----------------------------------------------------------------------------------------------------
5343
+  (0.0ms) SAVEPOINT active_record_1
5344
+ SQL (0.2ms) 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]]
5345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5346
+  (0.0ms) SAVEPOINT active_record_1
5347
+ SQL (0.2ms) 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]]
5348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5349
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5350
+  (0.0ms) SAVEPOINT active_record_1
5351
+ SQL (0.1ms) 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]]
5352
+ SQL (0.1ms) 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]]
5353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5354
+  (0.0ms) SAVEPOINT active_record_1
5355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5356
+  (0.0ms) SAVEPOINT active_record_1
5357
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5358
+ SQL (0.1ms) 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]]
5359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5360
+  (0.0ms) SAVEPOINT active_record_1
5361
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:05:30 UTC +00:00]]
5362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5363
+  (0.0ms) SAVEPOINT active_record_1
5364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5365
+  (0.4ms) rollback transaction
5366
+  (0.2ms) begin transaction
5367
+ -------------------------------------------------
5368
+ DirtyAssociationsTest: test_changes_reset_by_save
5369
+ -------------------------------------------------
5370
+  (0.0ms) SAVEPOINT active_record_1
5371
+ SQL (2.2ms) 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]]
5372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5373
+ Foo Load (0.5ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5374
+  (0.0ms) SAVEPOINT active_record_1
5375
+ SQL (0.8ms) 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]]
5376
+ SQL (0.2ms) 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]]
5377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5378
+  (0.0ms) SAVEPOINT active_record_1
5379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5380
+  (0.0ms) SAVEPOINT active_record_1
5381
+ SQL (0.1ms) 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]]
5382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5383
+  (0.0ms) SAVEPOINT active_record_1
5384
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5385
+ SQL (0.1ms) 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]]
5386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5387
+  (0.0ms) SAVEPOINT active_record_1
5388
+ SQL (0.2ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
5389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5390
+  (6.5ms) rollback transaction
5391
+  (0.1ms) begin transaction
5392
+ ---------------------------------------------------------------------------------------
5393
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
5394
+ ---------------------------------------------------------------------------------------
5395
+  (0.0ms) SAVEPOINT active_record_1
5396
+ SQL (0.3ms) 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]]
5397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5398
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5399
+  (0.0ms) SAVEPOINT active_record_1
5400
+ SQL (0.3ms) 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]]
5401
+ SQL (0.1ms) 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]]
5402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5403
+  (0.0ms) SAVEPOINT active_record_1
5404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5405
+  (0.0ms) SAVEPOINT active_record_1
5406
+ SQL (0.1ms) 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]]
5407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5408
+  (0.0ms) SAVEPOINT active_record_1
5409
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5410
+ SQL (0.1ms) 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]]
5411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5412
+  (0.0ms) SAVEPOINT active_record_1
5413
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
5414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5415
+  (0.0ms) SAVEPOINT active_record_1
5416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5417
+  (0.3ms) rollback transaction
5418
+  (0.0ms) begin transaction
5419
+ ----------------------------------------------------------------------------------------------
5420
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
5421
+ ----------------------------------------------------------------------------------------------
5422
+  (0.0ms) SAVEPOINT active_record_1
5423
+ SQL (0.2ms) 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]]
5424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5425
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5426
+  (0.0ms) SAVEPOINT active_record_1
5427
+ SQL (0.3ms) 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]]
5428
+ SQL (0.1ms) 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]]
5429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5430
+  (0.0ms) SAVEPOINT active_record_1
5431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5432
+  (0.6ms) rollback transaction
5433
+  (0.1ms) begin transaction
5434
+ -------------------------------------------------------------------------------
5435
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5436
+ -------------------------------------------------------------------------------
5437
+  (0.0ms) SAVEPOINT active_record_1
5438
+ SQL (0.3ms) 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]]
5439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5440
+  (0.1ms) SAVEPOINT active_record_1
5441
+ SQL (0.3ms) 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]]
5442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5443
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5444
+  (0.0ms) SAVEPOINT active_record_1
5445
+ SQL (0.1ms) 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]]
5446
+ SQL (0.1ms) 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]]
5447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5448
+  (0.0ms) SAVEPOINT active_record_1
5449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5450
+  (0.0ms) SAVEPOINT active_record_1
5451
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5452
+ SQL (0.1ms) 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]]
5453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5454
+  (0.4ms) rollback transaction
5455
+  (0.0ms) begin transaction
5456
+ ----------------------------------------------------------------------------------------
5457
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
5458
+ ----------------------------------------------------------------------------------------
5459
+  (0.0ms) SAVEPOINT active_record_1
5460
+ SQL (0.2ms) 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]]
5461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5462
+  (0.0ms) SAVEPOINT active_record_1
5463
+ SQL (0.3ms) 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]]
5464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5465
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5466
+  (0.1ms) SAVEPOINT active_record_1
5467
+ SQL (0.2ms) 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]]
5468
+ SQL (0.1ms) 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]]
5469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5470
+  (0.0ms) SAVEPOINT active_record_1
5471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5472
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5473
+  (0.0ms) SAVEPOINT active_record_1
5474
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5475
+ SQL (0.1ms) 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]]
5476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5477
+  (0.5ms) rollback transaction
5478
+  (0.1ms) begin transaction
5479
+ -----------------------------------------------------------------------------------------------------
5480
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
5481
+ -----------------------------------------------------------------------------------------------------
5482
+  (0.0ms) SAVEPOINT active_record_1
5483
+ SQL (0.3ms) 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]]
5484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5485
+  (0.0ms) SAVEPOINT active_record_1
5486
+ SQL (0.3ms) 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]]
5487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5488
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5489
+  (0.0ms) SAVEPOINT active_record_1
5490
+ SQL (0.1ms) 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]]
5491
+ SQL (0.1ms) 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]]
5492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5493
+  (0.0ms) SAVEPOINT active_record_1
5494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5495
+  (0.0ms) SAVEPOINT active_record_1
5496
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5497
+ SQL (0.1ms) 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]]
5498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5499
+  (0.0ms) SAVEPOINT active_record_1
5500
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:08:15 UTC +00:00]]
5501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5502
+  (0.0ms) SAVEPOINT active_record_1
5503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5504
+  (0.4ms) rollback transaction
5505
+  (0.2ms) begin transaction
5506
+ -------------------------------------------------
5507
+ DirtyAssociationsTest: test_changes_reset_by_save
5508
+ -------------------------------------------------
5509
+  (0.0ms) SAVEPOINT active_record_1
5510
+ SQL (22.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00]]
5511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5512
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5513
+  (0.0ms) SAVEPOINT active_record_1
5514
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:36 UTC +00:00]]
5515
+ SQL (0.2ms) 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]]
5516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5517
+  (0.0ms) SAVEPOINT active_record_1
5518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5519
+  (0.0ms) SAVEPOINT active_record_1
5520
+ SQL (0.1ms) 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]]
5521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5522
+  (0.0ms) SAVEPOINT active_record_1
5523
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5524
+ SQL (0.1ms) 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]]
5525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5526
+  (0.0ms) SAVEPOINT active_record_1
5527
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
5528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5529
+  (1.5ms) rollback transaction
5530
+  (0.0ms) begin transaction
5531
+ ---------------------------------------------------------------------------------------
5532
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
5533
+ ---------------------------------------------------------------------------------------
5534
+  (0.0ms) SAVEPOINT active_record_1
5535
+ SQL (0.3ms) 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]]
5536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5537
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5538
+  (0.0ms) SAVEPOINT active_record_1
5539
+ SQL (0.3ms) 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]]
5540
+ SQL (0.1ms) 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]]
5541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5542
+  (0.0ms) SAVEPOINT active_record_1
5543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5544
+  (0.0ms) SAVEPOINT active_record_1
5545
+ SQL (0.1ms) 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]]
5546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5547
+  (0.0ms) SAVEPOINT active_record_1
5548
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5549
+ SQL (0.1ms) 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]]
5550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5551
+  (0.0ms) SAVEPOINT active_record_1
5552
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
5553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5554
+  (0.0ms) SAVEPOINT active_record_1
5555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5556
+  (0.6ms) rollback transaction
5557
+  (0.1ms) begin transaction
5558
+ ----------------------------------------------------------------------------------------------
5559
+ DirtyAssociationsTest: test_setting_has_many_assocation_attributes_adds_association_to_changes
5560
+ ----------------------------------------------------------------------------------------------
5561
+  (0.0ms) SAVEPOINT active_record_1
5562
+ SQL (0.3ms) 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]]
5563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5564
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5565
+  (0.0ms) SAVEPOINT active_record_1
5566
+ SQL (0.3ms) 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]]
5567
+ SQL (0.1ms) 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]]
5568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5569
+  (0.0ms) SAVEPOINT active_record_1
5570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5571
+  (0.3ms) rollback transaction
5572
+  (0.0ms) begin transaction
5573
+ -------------------------------------------------------------------------------
5574
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5575
+ -------------------------------------------------------------------------------
5576
+  (0.0ms) SAVEPOINT active_record_1
5577
+ SQL (0.2ms) 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]]
5578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5579
+  (0.0ms) SAVEPOINT active_record_1
5580
+ SQL (0.2ms) 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]]
5581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5582
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5583
+  (0.0ms) SAVEPOINT active_record_1
5584
+ SQL (0.1ms) 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]]
5585
+ SQL (0.1ms) 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]]
5586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5587
+  (0.0ms) SAVEPOINT active_record_1
5588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5589
+  (0.0ms) SAVEPOINT active_record_1
5590
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5591
+ SQL (0.1ms) 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]]
5592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5593
+  (0.3ms) rollback transaction
5594
+  (0.0ms) begin transaction
5595
+ ----------------------------------------------------------------------------------------
5596
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
5597
+ ----------------------------------------------------------------------------------------
5598
+  (0.0ms) SAVEPOINT active_record_1
5599
+ SQL (0.2ms) 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]]
5600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5601
+  (0.0ms) SAVEPOINT active_record_1
5602
+ SQL (0.2ms) 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]]
5603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5604
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5605
+  (0.0ms) SAVEPOINT active_record_1
5606
+ SQL (0.1ms) 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]]
5607
+ SQL (0.1ms) 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]]
5608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5609
+  (0.0ms) SAVEPOINT active_record_1
5610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5611
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5612
+  (0.0ms) SAVEPOINT active_record_1
5613
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5614
+ SQL (0.1ms) 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]]
5615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5616
+  (0.4ms) rollback transaction
5617
+  (0.0ms) begin transaction
5618
+ -----------------------------------------------------------------------------------------------------
5619
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
5620
+ -----------------------------------------------------------------------------------------------------
5621
+  (0.0ms) SAVEPOINT active_record_1
5622
+ SQL (0.2ms) 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]]
5623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5624
+  (0.0ms) SAVEPOINT active_record_1
5625
+ SQL (0.2ms) 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]]
5626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5627
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5628
+  (0.0ms) SAVEPOINT active_record_1
5629
+ SQL (0.1ms) 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]]
5630
+ SQL (0.1ms) 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]]
5631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5632
+  (0.0ms) SAVEPOINT active_record_1
5633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5634
+  (0.0ms) SAVEPOINT active_record_1
5635
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5636
+ SQL (0.1ms) 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]]
5637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5638
+  (0.0ms) SAVEPOINT active_record_1
5639
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:37 UTC +00:00]]
5640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5641
+  (0.0ms) SAVEPOINT active_record_1
5642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5643
+  (0.3ms) rollback transaction
5644
+  (0.2ms) begin transaction
5645
+ -------------------------------------------------
5646
+ DirtyAssociationsTest: test_changes_reset_by_save
5647
+ -------------------------------------------------
5648
+  (0.0ms) SAVEPOINT active_record_1
5649
+ SQL (2.0ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
5650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5651
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5652
+  (0.0ms) SAVEPOINT active_record_1
5653
+ SQL (0.9ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
5654
+ SQL (0.2ms) 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]]
5655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5656
+  (0.0ms) SAVEPOINT active_record_1
5657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5658
+  (0.0ms) SAVEPOINT active_record_1
5659
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
5660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5661
+  (0.0ms) SAVEPOINT active_record_1
5662
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5663
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
5664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5665
+  (0.0ms) SAVEPOINT active_record_1
5666
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:44 UTC +00:00]]
5667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5668
+  (6.4ms) rollback transaction
5669
+  (0.1ms) begin transaction
5670
+ ---------------------------------------------------------------------------------------
5671
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
5672
+ ---------------------------------------------------------------------------------------
5673
+  (0.0ms) SAVEPOINT active_record_1
5674
+ SQL (0.4ms) 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]]
5675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5676
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5677
+  (0.0ms) SAVEPOINT active_record_1
5678
+ SQL (0.3ms) 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]]
5679
+ SQL (0.1ms) 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]]
5680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5681
+  (0.0ms) SAVEPOINT active_record_1
5682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5683
+  (0.0ms) SAVEPOINT active_record_1
5684
+ SQL (0.1ms) 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]]
5685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5686
+  (0.0ms) SAVEPOINT active_record_1
5687
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
5688
+ SQL (0.1ms) 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]]
5689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5690
+  (0.0ms) SAVEPOINT active_record_1
5691
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
5692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5693
+  (0.0ms) SAVEPOINT active_record_1
5694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5695
+  (0.4ms) rollback transaction
5696
+  (0.1ms) begin transaction
5697
+ -------------------------------------------------------------------------------
5698
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
5699
+ -------------------------------------------------------------------------------
5700
+  (0.1ms) SAVEPOINT active_record_1
5701
+ SQL (0.3ms) 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]]
5702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5703
+  (0.0ms) SAVEPOINT active_record_1
5704
+ SQL (0.3ms) 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]]
5705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5706
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5707
+  (0.0ms) SAVEPOINT active_record_1
5708
+ SQL (0.1ms) 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]]
5709
+ SQL (0.1ms) 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]]
5710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5711
+  (0.0ms) SAVEPOINT active_record_1
5712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5713
+  (0.0ms) SAVEPOINT active_record_1
5714
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5715
+ SQL (0.1ms) 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]]
5716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5717
+  (0.5ms) rollback transaction
5718
+  (0.0ms) begin transaction
5719
+ ----------------------------------------------------------------------------------------
5720
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
5721
+ ----------------------------------------------------------------------------------------
5722
+  (0.0ms) SAVEPOINT active_record_1
5723
+ SQL (0.2ms) 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]]
5724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5725
+  (0.0ms) SAVEPOINT active_record_1
5726
+ SQL (0.2ms) 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]]
5727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5728
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5729
+  (0.0ms) SAVEPOINT active_record_1
5730
+ SQL (0.1ms) 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]]
5731
+ SQL (0.1ms) 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]]
5732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5733
+  (0.0ms) SAVEPOINT active_record_1
5734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5735
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
5736
+  (0.0ms) SAVEPOINT active_record_1
5737
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5738
+ SQL (0.1ms) 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]]
5739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5740
+  (0.5ms) rollback transaction
5741
+  (0.0ms) begin transaction
5742
+ -----------------------------------------------------------------------------------------------------
5743
+ DirtyAssociationsTest: test_setting_has_many_association_to_the_same_thing_is_not_counted_as_a_change
5744
+ -----------------------------------------------------------------------------------------------------
5745
+  (0.0ms) SAVEPOINT active_record_1
5746
+ SQL (0.2ms) 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]]
5747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5748
+  (0.0ms) SAVEPOINT active_record_1
5749
+ SQL (0.2ms) 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]]
5750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5751
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
5752
+  (0.0ms) SAVEPOINT active_record_1
5753
+ SQL (0.1ms) 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]]
5754
+ SQL (0.1ms) 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]]
5755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5756
+  (0.0ms) SAVEPOINT active_record_1
5757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5758
+  (0.0ms) SAVEPOINT active_record_1
5759
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
5760
+ SQL (0.1ms) 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]]
5761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5762
+  (0.0ms) SAVEPOINT active_record_1
5763
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Fri, 03 Oct 2014 15:10:45 UTC +00:00]]
5764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5765
+  (0.0ms) SAVEPOINT active_record_1
5766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5767
+  (0.5ms) rollback transaction