dirty_associations 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +27 -0
  4. data/Rakefile +32 -0
  5. data/lib/dirty_associations.rb +33 -0
  6. data/lib/dirty_associations/version.rb +3 -0
  7. data/lib/tasks/dirty_associations.rake +4 -0
  8. data/test/dirty_associations_test.rb +54 -0
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/helpers/application_helper.rb +2 -0
  15. data/test/dummy/app/models/bar.rb +6 -0
  16. data/test/dummy/app/models/foo.rb +3 -0
  17. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/test/dummy/bin/bundle +3 -0
  19. data/test/dummy/bin/rails +4 -0
  20. data/test/dummy/bin/rake +4 -0
  21. data/test/dummy/config.ru +4 -0
  22. data/test/dummy/config/application.rb +22 -0
  23. data/test/dummy/config/boot.rb +5 -0
  24. data/test/dummy/config/database.yml +25 -0
  25. data/test/dummy/config/environment.rb +5 -0
  26. data/test/dummy/config/environments/development.rb +29 -0
  27. data/test/dummy/config/environments/production.rb +80 -0
  28. data/test/dummy/config/environments/test.rb +36 -0
  29. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  30. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  31. data/test/dummy/config/initializers/inflections.rb +16 -0
  32. data/test/dummy/config/initializers/mime_types.rb +5 -0
  33. data/test/dummy/config/initializers/secret_token.rb +12 -0
  34. data/test/dummy/config/initializers/session_store.rb +3 -0
  35. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  36. data/test/dummy/config/locales/en.yml +23 -0
  37. data/test/dummy/config/routes.rb +56 -0
  38. data/test/dummy/db/development.sqlite3 +0 -0
  39. data/test/dummy/db/migrate/20131113012248_create_bars.rb +8 -0
  40. data/test/dummy/db/migrate/20131113012331_create_foos.rb +9 -0
  41. data/test/dummy/db/schema.rb +29 -0
  42. data/test/dummy/db/test.sqlite3 +0 -0
  43. data/test/dummy/log/development.log +15 -0
  44. data/test/dummy/log/test.log +2486 -0
  45. data/test/dummy/public/404.html +58 -0
  46. data/test/dummy/public/422.html +58 -0
  47. data/test/dummy/public/500.html +57 -0
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/test/models/bar_test.rb +7 -0
  50. data/test/dummy/test/models/foo_test.rb +7 -0
  51. data/test/factories/bar.rb +4 -0
  52. data/test/factories/foo.rb +4 -0
  53. data/test/test_helper.rb +13 -0
  54. metadata +184 -0
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = 'c731a8e3f0c9ed53f6d0186ffc8d27d65f296027c845dedaa0e7109db6810672253814021449f84e18efc7a4efe217f1724a0ba62fc7e3c35e0cfc4615e4004b'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
Binary file
@@ -0,0 +1,8 @@
1
+ class CreateBars < ActiveRecord::Migration
2
+ def change
3
+ create_table :bars do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ class CreateFoos < ActiveRecord::Migration
2
+ def change
3
+ create_table :foos do |t|
4
+ t.references :bar, index: true
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,29 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20131113012331) do
15
+
16
+ create_table "bars", force: true do |t|
17
+ t.datetime "created_at"
18
+ t.datetime "updated_at"
19
+ end
20
+
21
+ create_table "foos", force: true do |t|
22
+ t.integer "bar_id"
23
+ t.datetime "created_at"
24
+ t.datetime "updated_at"
25
+ end
26
+
27
+ add_index "foos", ["bar_id"], name: "index_foos_on_bar_id"
28
+
29
+ end
Binary file
@@ -0,0 +1,15 @@
1
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateBars (20131113012248)
5
+  (0.1ms) begin transaction
6
+  (0.3ms) CREATE TABLE "bars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131113012248"]]
8
+  (0.6ms) commit transaction
9
+ Migrating to CreateFoos (20131113012331)
10
+  (0.1ms) begin transaction
11
+  (0.2ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar_id" integer, "created_at" datetime, "updated_at" datetime) 
12
+  (0.1ms) CREATE INDEX "index_foos_on_bar_id" ON "foos" ("bar_id")
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131113012331"]]
14
+  (0.7ms) commit transaction
15
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,2486 @@
1
+  (0.2ms) begin transaction
2
+ ---------------------------------------------------
3
+ DirtyRelationsTest: test_changed_flag_reset_by_save
4
+ ---------------------------------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+ --------------------------------------------------------------------------
8
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
9
+ --------------------------------------------------------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+ -----------------------------------------------------------------------------------
13
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
14
+ -----------------------------------------------------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.0ms) begin transaction
17
+ --------------------------------------------------------------------------------
18
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
19
+ --------------------------------------------------------------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.2ms) begin transaction
22
+ ---------------------------------------------------
23
+ DirtyRelationsTest: test_changed_flag_reset_by_save
24
+ ---------------------------------------------------
25
+  (0.0ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ --------------------------------------------------------------------------
28
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
29
+ --------------------------------------------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+ -----------------------------------------------------------------------------------
33
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
34
+ -----------------------------------------------------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.0ms) begin transaction
37
+ --------------------------------------------------------------------------------
38
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
39
+ --------------------------------------------------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (7.3ms) CREATE TABLE "bars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
42
+  (0.8ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bar_id" integer, "created_at" datetime, "updated_at" datetime)
43
+  (0.7ms) CREATE INDEX "index_foos_on_bar_id" ON "foos" ("bar_id")
44
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
45
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
46
+  (0.1ms) SELECT version FROM "schema_migrations"
47
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131113012331')
48
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20131113012248')
49
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+  (0.2ms) begin transaction
51
+ ---------------------------------------------------
52
+ DirtyRelationsTest: test_changed_flag_reset_by_save
53
+ ---------------------------------------------------
54
+  (0.0ms) rollback transaction
55
+  (0.0ms) begin transaction
56
+ --------------------------------------------------------------------------
57
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
58
+ --------------------------------------------------------------------------
59
+  (0.0ms) rollback transaction
60
+  (0.0ms) begin transaction
61
+ -----------------------------------------------------------------------------------
62
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
63
+ -----------------------------------------------------------------------------------
64
+  (0.0ms) rollback transaction
65
+  (0.0ms) begin transaction
66
+ --------------------------------------------------------------------------------
67
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
68
+ --------------------------------------------------------------------------------
69
+  (0.0ms) rollback transaction
70
+  (0.2ms) begin transaction
71
+ ---------------------------------------------------
72
+ DirtyRelationsTest: test_changed_flag_reset_by_save
73
+ ---------------------------------------------------
74
+  (0.0ms) rollback transaction
75
+  (0.0ms) begin transaction
76
+ --------------------------------------------------------------------------
77
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
78
+ --------------------------------------------------------------------------
79
+  (0.0ms) rollback transaction
80
+  (0.0ms) begin transaction
81
+ -----------------------------------------------------------------------------------
82
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
83
+ -----------------------------------------------------------------------------------
84
+  (0.0ms) rollback transaction
85
+  (0.0ms) begin transaction
86
+ --------------------------------------------------------------------------------
87
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
88
+ --------------------------------------------------------------------------------
89
+  (0.1ms) SAVEPOINT active_record_1
90
+ SQL (4.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:55:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:55:52 UTC +00:00]]
91
+  (0.1ms) RELEASE SAVEPOINT active_record_1
92
+  (0.0ms) SAVEPOINT active_record_1
93
+ SQL (0.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:55:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:55:52 UTC +00:00]]
94
+  (0.0ms) RELEASE SAVEPOINT active_record_1
95
+  (0.3ms) rollback transaction
96
+  (0.2ms) begin transaction
97
+ ---------------------------------------------------
98
+ DirtyRelationsTest: test_changed_flag_reset_by_save
99
+ ---------------------------------------------------
100
+  (0.0ms) rollback transaction
101
+  (0.0ms) begin transaction
102
+ --------------------------------------------------------------------------
103
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
104
+ --------------------------------------------------------------------------
105
+  (0.0ms) rollback transaction
106
+  (0.0ms) begin transaction
107
+ -----------------------------------------------------------------------------------
108
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
109
+ -----------------------------------------------------------------------------------
110
+  (0.0ms) rollback transaction
111
+  (0.0ms) begin transaction
112
+ --------------------------------------------------------------------------------
113
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
114
+ --------------------------------------------------------------------------------
115
+  (0.0ms) SAVEPOINT active_record_1
116
+ SQL (2.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:56:27 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:56:27 UTC +00:00]]
117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
118
+  (0.0ms) SAVEPOINT active_record_1
119
+ SQL (0.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:56:27 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:56:27 UTC +00:00]]
120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
121
+  (6.7ms) rollback transaction
122
+  (0.3ms) begin transaction
123
+ ---------------------------------------------------
124
+ DirtyRelationsTest: test_changed_flag_reset_by_save
125
+ ---------------------------------------------------
126
+  (0.0ms) rollback transaction
127
+  (0.0ms) begin transaction
128
+ --------------------------------------------------------------------------
129
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
130
+ --------------------------------------------------------------------------
131
+  (0.0ms) rollback transaction
132
+  (0.0ms) begin transaction
133
+ -----------------------------------------------------------------------------------
134
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
135
+ -----------------------------------------------------------------------------------
136
+  (0.0ms) rollback transaction
137
+  (0.0ms) begin transaction
138
+ --------------------------------------------------------------------------------
139
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
140
+ --------------------------------------------------------------------------------
141
+  (0.0ms) SAVEPOINT active_record_1
142
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:58:16 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:58:16 UTC +00:00]]
143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
144
+  (0.0ms) SAVEPOINT active_record_1
145
+ SQL (0.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:58:16 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:58:16 UTC +00:00]]
146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
147
+  (0.5ms) rollback transaction
148
+  (0.2ms) begin transaction
149
+ ---------------------------------------------------
150
+ DirtyRelationsTest: test_changed_flag_reset_by_save
151
+ ---------------------------------------------------
152
+  (0.0ms) rollback transaction
153
+  (0.0ms) begin transaction
154
+ --------------------------------------------------------------------------
155
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
156
+ --------------------------------------------------------------------------
157
+  (0.0ms) rollback transaction
158
+  (0.0ms) begin transaction
159
+ -----------------------------------------------------------------------------------
160
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
161
+ -----------------------------------------------------------------------------------
162
+  (0.0ms) rollback transaction
163
+  (0.0ms) begin transaction
164
+ --------------------------------------------------------------------------------
165
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
166
+ --------------------------------------------------------------------------------
167
+  (0.0ms) SAVEPOINT active_record_1
168
+ SQL (2.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00]]
169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
170
+  (0.0ms) SAVEPOINT active_record_1
171
+ SQL (1.5ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00]]
172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
173
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
174
+  (0.0ms) SAVEPOINT active_record_1
175
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00]]
176
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00]]
177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
178
+  (0.0ms) SAVEPOINT active_record_1
179
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
180
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 01:59:00 UTC +00:00]]
181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
182
+  (0.3ms) rollback transaction
183
+  (0.2ms) begin transaction
184
+ ---------------------------------------------------
185
+ DirtyRelationsTest: test_changed_flag_reset_by_save
186
+ ---------------------------------------------------
187
+  (0.0ms) rollback transaction
188
+  (0.0ms) begin transaction
189
+ --------------------------------------------------------------------------
190
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
191
+ --------------------------------------------------------------------------
192
+  (0.0ms) rollback transaction
193
+  (0.0ms) begin transaction
194
+ -----------------------------------------------------------------------------------
195
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
196
+ -----------------------------------------------------------------------------------
197
+  (0.0ms) SAVEPOINT active_record_1
198
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
200
+  (0.0ms) SAVEPOINT active_record_1
201
+ SQL (0.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
202
+  (0.1ms) RELEASE SAVEPOINT active_record_1
203
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
204
+  (0.0ms) SAVEPOINT active_record_1
205
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
206
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
209
+  (0.0ms) SAVEPOINT active_record_1
210
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
211
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
213
+  (6.7ms) rollback transaction
214
+  (0.1ms) begin transaction
215
+ --------------------------------------------------------------------------------
216
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
217
+ --------------------------------------------------------------------------------
218
+  (0.1ms) SAVEPOINT active_record_1
219
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
221
+  (0.0ms) SAVEPOINT active_record_1
222
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
224
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
225
+  (0.0ms) SAVEPOINT active_record_1
226
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
227
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229
+  (0.0ms) SAVEPOINT active_record_1
230
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
231
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:02:39 UTC +00:00]]
232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
233
+  (0.4ms) rollback transaction
234
+  (0.2ms) begin transaction
235
+ ---------------------------------------------------
236
+ DirtyRelationsTest: test_changed_flag_reset_by_save
237
+ ---------------------------------------------------
238
+  (0.0ms) rollback transaction
239
+  (0.1ms) begin transaction
240
+ --------------------------------------------------------------------------
241
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
242
+ --------------------------------------------------------------------------
243
+  (0.0ms) rollback transaction
244
+  (0.0ms) begin transaction
245
+ -----------------------------------------------------------------------------------
246
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
247
+ -----------------------------------------------------------------------------------
248
+  (0.0ms) SAVEPOINT active_record_1
249
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00]]
250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251
+  (0.0ms) SAVEPOINT active_record_1
252
+ SQL (0.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00]]
253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
255
+  (0.0ms) SAVEPOINT active_record_1
256
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00]]
257
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00]]
258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
259
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
260
+  (0.0ms) SAVEPOINT active_record_1
261
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
262
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00]]
263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
264
+  (6.5ms) rollback transaction
265
+  (0.1ms) begin transaction
266
+ --------------------------------------------------------------------------------
267
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
268
+ --------------------------------------------------------------------------------
269
+  (0.0ms) SAVEPOINT active_record_1
270
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00]]
271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
272
+  (0.0ms) SAVEPOINT active_record_1
273
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:04:51 UTC +00:00]]
274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
275
+  (0.4ms) rollback transaction
276
+  (0.2ms) begin transaction
277
+ ---------------------------------------------------
278
+ DirtyRelationsTest: test_changed_flag_reset_by_save
279
+ ---------------------------------------------------
280
+  (0.0ms) rollback transaction
281
+  (0.0ms) begin transaction
282
+ --------------------------------------------------------------------------
283
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
284
+ --------------------------------------------------------------------------
285
+  (0.0ms) rollback transaction
286
+  (0.0ms) begin transaction
287
+ -----------------------------------------------------------------------------------
288
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
289
+ -----------------------------------------------------------------------------------
290
+  (0.0ms) SAVEPOINT active_record_1
291
+ SQL (2.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
293
+  (0.0ms) SAVEPOINT active_record_1
294
+ SQL (0.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
296
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
297
+  (0.1ms) SAVEPOINT active_record_1
298
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
299
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
301
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
302
+  (0.0ms) SAVEPOINT active_record_1
303
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
304
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
306
+  (6.6ms) rollback transaction
307
+  (0.1ms) begin transaction
308
+ --------------------------------------------------------------------------------
309
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
310
+ --------------------------------------------------------------------------------
311
+  (0.0ms) SAVEPOINT active_record_1
312
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
314
+  (0.1ms) SAVEPOINT active_record_1
315
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
317
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
318
+  (0.1ms) SAVEPOINT active_record_1
319
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
320
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322
+  (0.0ms) SAVEPOINT active_record_1
323
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
325
+  (0.0ms) SAVEPOINT active_record_1
326
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
327
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
329
+  (0.0ms) SAVEPOINT active_record_1
330
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
332
+  (0.0ms) SAVEPOINT active_record_1
333
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:05:08 UTC +00:00]]
334
+  (0.0ms) RELEASE SAVEPOINT active_record_1
335
+  (0.5ms) rollback transaction
336
+  (0.2ms) begin transaction
337
+ ---------------------------------------------------
338
+ DirtyRelationsTest: test_changed_flag_reset_by_save
339
+ ---------------------------------------------------
340
+  (0.0ms) SAVEPOINT active_record_1
341
+ SQL (2.0ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
343
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
344
+  (0.0ms) SAVEPOINT active_record_1
345
+ SQL (0.9ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
346
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
348
+  (0.0ms) SAVEPOINT active_record_1
349
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
351
+  (0.0ms) SAVEPOINT active_record_1
352
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
353
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
355
+  (0.0ms) SAVEPOINT active_record_1
356
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
358
+  (0.0ms) SAVEPOINT active_record_1
359
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
361
+  (0.0ms) SAVEPOINT active_record_1
362
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
364
+  (0.0ms) SAVEPOINT active_record_1
365
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
367
+  (6.4ms) rollback transaction
368
+  (0.1ms) begin transaction
369
+ --------------------------------------------------------------------------
370
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
371
+ --------------------------------------------------------------------------
372
+  (0.0ms) rollback transaction
373
+  (0.0ms) begin transaction
374
+ -----------------------------------------------------------------------------------
375
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
376
+ -----------------------------------------------------------------------------------
377
+  (0.0ms) SAVEPOINT active_record_1
378
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
380
+  (0.0ms) SAVEPOINT active_record_1
381
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
383
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
384
+  (0.0ms) SAVEPOINT active_record_1
385
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
386
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
388
+  (0.0ms) SAVEPOINT active_record_1
389
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
391
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
392
+  (0.0ms) SAVEPOINT active_record_1
393
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
394
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
396
+  (0.0ms) SAVEPOINT active_record_1
397
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
399
+  (0.0ms) SAVEPOINT active_record_1
400
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
402
+  (0.7ms) rollback transaction
403
+  (0.0ms) begin transaction
404
+ --------------------------------------------------------------------------------
405
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
406
+ --------------------------------------------------------------------------------
407
+  (0.0ms) SAVEPOINT active_record_1
408
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
410
+  (0.0ms) SAVEPOINT active_record_1
411
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
413
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
414
+  (0.0ms) SAVEPOINT active_record_1
415
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
416
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
418
+  (0.0ms) SAVEPOINT active_record_1
419
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
421
+  (0.0ms) SAVEPOINT active_record_1
422
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
423
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
425
+  (0.0ms) SAVEPOINT active_record_1
426
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
428
+  (0.0ms) SAVEPOINT active_record_1
429
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:02 UTC +00:00]]
430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
431
+  (0.5ms) rollback transaction
432
+  (0.2ms) begin transaction
433
+ ---------------------------------------------------
434
+ DirtyRelationsTest: test_changed_flag_reset_by_save
435
+ ---------------------------------------------------
436
+  (0.0ms) SAVEPOINT active_record_1
437
+ SQL (2.5ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
439
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
440
+  (0.0ms) SAVEPOINT active_record_1
441
+ SQL (1.0ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
442
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
444
+  (0.1ms) SAVEPOINT active_record_1
445
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
447
+  (0.0ms) SAVEPOINT active_record_1
448
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
449
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
451
+  (0.0ms) SAVEPOINT active_record_1
452
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
454
+  (0.0ms) SAVEPOINT active_record_1
455
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
457
+  (0.0ms) SAVEPOINT active_record_1
458
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
460
+  (0.1ms) SAVEPOINT active_record_1
461
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
463
+  (0.4ms) rollback transaction
464
+  (0.0ms) begin transaction
465
+ --------------------------------------------------------------------------
466
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
467
+ --------------------------------------------------------------------------
468
+  (0.0ms) rollback transaction
469
+  (0.0ms) begin transaction
470
+ -----------------------------------------------------------------------------------
471
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
472
+ -----------------------------------------------------------------------------------
473
+  (0.0ms) SAVEPOINT active_record_1
474
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
476
+  (0.0ms) SAVEPOINT active_record_1
477
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
479
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
480
+  (0.0ms) SAVEPOINT active_record_1
481
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
482
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
484
+  (0.0ms) SAVEPOINT active_record_1
485
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
487
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
488
+  (0.0ms) SAVEPOINT active_record_1
489
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
490
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
492
+  (0.0ms) SAVEPOINT active_record_1
493
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
495
+  (0.0ms) SAVEPOINT active_record_1
496
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
498
+  (0.3ms) rollback transaction
499
+  (0.0ms) begin transaction
500
+ --------------------------------------------------------------------------------
501
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
502
+ --------------------------------------------------------------------------------
503
+  (0.0ms) SAVEPOINT active_record_1
504
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
506
+  (0.0ms) SAVEPOINT active_record_1
507
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
509
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
510
+  (0.0ms) SAVEPOINT active_record_1
511
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
512
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
514
+  (0.0ms) SAVEPOINT active_record_1
515
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
517
+  (0.0ms) SAVEPOINT active_record_1
518
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
519
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
521
+  (0.0ms) SAVEPOINT active_record_1
522
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
524
+  (0.0ms) SAVEPOINT active_record_1
525
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:11:08 UTC +00:00]]
526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
527
+  (0.4ms) rollback transaction
528
+  (0.2ms) begin transaction
529
+ ---------------------------------------------------
530
+ DirtyRelationsTest: test_changed_flag_reset_by_save
531
+ ---------------------------------------------------
532
+  (0.0ms) SAVEPOINT active_record_1
533
+ SQL (2.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
535
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
536
+  (0.0ms) SAVEPOINT active_record_1
537
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
538
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
540
+  (0.0ms) SAVEPOINT active_record_1
541
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
543
+  (0.0ms) SAVEPOINT active_record_1
544
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
545
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
547
+  (0.0ms) SAVEPOINT active_record_1
548
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
550
+  (0.0ms) SAVEPOINT active_record_1
551
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
553
+  (0.0ms) SAVEPOINT active_record_1
554
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
556
+  (0.0ms) SAVEPOINT active_record_1
557
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
559
+  (6.6ms) rollback transaction
560
+  (0.1ms) begin transaction
561
+ --------------------------------------------------------------------------
562
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
563
+ --------------------------------------------------------------------------
564
+  (0.0ms) SAVEPOINT active_record_1
565
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
567
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
568
+  (0.0ms) SAVEPOINT active_record_1
569
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
570
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
572
+  (0.4ms) rollback transaction
573
+  (0.0ms) begin transaction
574
+ -----------------------------------------------------------------------------------
575
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
576
+ -----------------------------------------------------------------------------------
577
+  (0.0ms) SAVEPOINT active_record_1
578
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
580
+  (0.0ms) SAVEPOINT active_record_1
581
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
583
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
584
+  (0.0ms) SAVEPOINT active_record_1
585
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
586
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
588
+  (0.0ms) SAVEPOINT active_record_1
589
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
591
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
592
+  (0.0ms) SAVEPOINT active_record_1
593
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
594
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
596
+  (0.0ms) SAVEPOINT active_record_1
597
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
599
+  (0.0ms) SAVEPOINT active_record_1
600
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
602
+  (0.3ms) rollback transaction
603
+  (0.1ms) begin transaction
604
+ --------------------------------------------------------------------------------
605
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
606
+ --------------------------------------------------------------------------------
607
+  (0.1ms) SAVEPOINT active_record_1
608
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
610
+  (0.1ms) SAVEPOINT active_record_1
611
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
613
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
614
+  (0.0ms) SAVEPOINT active_record_1
615
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
616
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
618
+  (0.2ms) SAVEPOINT active_record_1
619
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
621
+  (0.0ms) SAVEPOINT active_record_1
622
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
623
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
625
+  (0.0ms) SAVEPOINT active_record_1
626
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
628
+  (0.0ms) SAVEPOINT active_record_1
629
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:13:28 UTC +00:00]]
630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
631
+  (0.3ms) rollback transaction
632
+  (0.2ms) begin transaction
633
+ ---------------------------------------------------
634
+ DirtyRelationsTest: test_changed_flag_reset_by_save
635
+ ---------------------------------------------------
636
+  (0.0ms) SAVEPOINT active_record_1
637
+ SQL (1.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
639
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
640
+  (0.1ms) SAVEPOINT active_record_1
641
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
642
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
644
+  (0.0ms) SAVEPOINT active_record_1
645
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+  (0.0ms) SAVEPOINT active_record_1
648
+ SQL (0.3ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
649
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
651
+  (0.0ms) SAVEPOINT active_record_1
652
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
654
+  (0.0ms) SAVEPOINT active_record_1
655
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
657
+  (0.0ms) SAVEPOINT active_record_1
658
+ SQL (0.2ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
660
+  (0.0ms) SAVEPOINT active_record_1
661
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
663
+  (6.5ms) rollback transaction
664
+  (0.1ms) begin transaction
665
+ --------------------------------------------------------------------------
666
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
667
+ --------------------------------------------------------------------------
668
+  (0.0ms) SAVEPOINT active_record_1
669
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
671
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
672
+  (0.0ms) SAVEPOINT active_record_1
673
+ SQL (0.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
674
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
676
+  (0.4ms) rollback transaction
677
+  (0.0ms) begin transaction
678
+ -----------------------------------------------------------------------------------
679
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
680
+ -----------------------------------------------------------------------------------
681
+  (0.0ms) SAVEPOINT active_record_1
682
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
684
+  (0.0ms) SAVEPOINT active_record_1
685
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
687
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
688
+  (0.0ms) SAVEPOINT active_record_1
689
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
690
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
692
+  (0.0ms) SAVEPOINT active_record_1
693
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
695
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
696
+  (0.0ms) SAVEPOINT active_record_1
697
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
698
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
700
+  (0.0ms) SAVEPOINT active_record_1
701
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
703
+  (0.0ms) SAVEPOINT active_record_1
704
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
706
+  (0.3ms) rollback transaction
707
+  (0.0ms) begin transaction
708
+ --------------------------------------------------------------------------------
709
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
710
+ --------------------------------------------------------------------------------
711
+  (0.0ms) SAVEPOINT active_record_1
712
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
714
+  (0.0ms) SAVEPOINT active_record_1
715
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
717
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
718
+  (0.0ms) SAVEPOINT active_record_1
719
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
720
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
722
+  (0.0ms) SAVEPOINT active_record_1
723
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
725
+  (0.0ms) SAVEPOINT active_record_1
726
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
727
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
729
+  (0.0ms) SAVEPOINT active_record_1
730
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
732
+  (0.0ms) SAVEPOINT active_record_1
733
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:16:44 UTC +00:00]]
734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
735
+  (0.3ms) rollback transaction
736
+  (0.2ms) begin transaction
737
+ --------------------------------------------------------------------------
738
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
739
+ --------------------------------------------------------------------------
740
+  (0.0ms) SAVEPOINT active_record_1
741
+ SQL (1.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:17:43 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:17:43 UTC +00:00]]
742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
743
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
744
+  (0.0ms) SAVEPOINT active_record_1
745
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:17:43 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:17:43 UTC +00:00]]
746
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:17:43 UTC +00:00]]
747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
748
+  (6.7ms) rollback transaction
749
+  (0.2ms) begin transaction
750
+ --------------------------------------------------------------------------
751
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
752
+ --------------------------------------------------------------------------
753
+  (0.0ms) SAVEPOINT active_record_1
754
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:18:53 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:18:53 UTC +00:00]]
755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
756
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
757
+  (0.0ms) SAVEPOINT active_record_1
758
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:18:53 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:18:53 UTC +00:00]]
759
+ SQL (0.3ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:18:53 UTC +00:00]]
760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
761
+  (6.6ms) rollback transaction
762
+  (0.2ms) begin transaction
763
+ --------------------------------------------------------------------------
764
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
765
+ --------------------------------------------------------------------------
766
+  (0.0ms) SAVEPOINT active_record_1
767
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:19:21 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:19:21 UTC +00:00]]
768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
769
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
770
+  (0.1ms) SAVEPOINT active_record_1
771
+ SQL (1.0ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:19:21 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:19:21 UTC +00:00]]
772
+ SQL (0.3ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:19:21 UTC +00:00]]
773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
774
+  (6.8ms) rollback transaction
775
+  (0.2ms) begin transaction
776
+ --------------------------------------------------------------------------
777
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
778
+ --------------------------------------------------------------------------
779
+  (0.0ms) SAVEPOINT active_record_1
780
+ SQL (1.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:20:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:20:44 UTC +00:00]]
781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
782
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
783
+  (0.0ms) SAVEPOINT active_record_1
784
+ SQL (1.0ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:20:44 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:20:44 UTC +00:00]]
785
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:20:44 UTC +00:00]]
786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
787
+  (0.4ms) rollback transaction
788
+  (0.2ms) begin transaction
789
+ --------------------------------------------------------------------------
790
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
791
+ --------------------------------------------------------------------------
792
+  (0.0ms) SAVEPOINT active_record_1
793
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:21:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:21:37 UTC +00:00]]
794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
795
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
796
+  (0.0ms) SAVEPOINT active_record_1
797
+ SQL (1.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:21:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:21:37 UTC +00:00]]
798
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:21:37 UTC +00:00]]
799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
800
+  (6.8ms) rollback transaction
801
+  (0.3ms) begin transaction
802
+ --------------------------------------------------------------------------
803
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
804
+ --------------------------------------------------------------------------
805
+  (0.0ms) SAVEPOINT active_record_1
806
+ SQL (1.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:22:42 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:22:42 UTC +00:00]]
807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
808
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
809
+  (0.0ms) SAVEPOINT active_record_1
810
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:22:42 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:22:42 UTC +00:00]]
811
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:22:42 UTC +00:00]]
812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
813
+  (6.6ms) rollback transaction
814
+  (0.3ms) begin transaction
815
+ --------------------------------------------------------------------------
816
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
817
+ --------------------------------------------------------------------------
818
+  (0.0ms) SAVEPOINT active_record_1
819
+ SQL (2.0ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00]]
820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
821
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
822
+  (0.0ms) SAVEPOINT active_record_1
823
+ SQL (0.9ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00]]
824
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00]]
825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
826
+  (0.0ms) SAVEPOINT active_record_1
827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
828
+  (0.0ms) SAVEPOINT active_record_1
829
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00]]
830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
831
+  (0.0ms) SAVEPOINT active_record_1
832
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
833
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00]]
834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
835
+  (0.0ms) SAVEPOINT active_record_1
836
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:23:06 UTC +00:00]]
837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
838
+  (0.0ms) SAVEPOINT active_record_1
839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
840
+  (6.4ms) rollback transaction
841
+  (0.2ms) begin transaction
842
+ --------------------------------------------------------------------------
843
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
844
+ --------------------------------------------------------------------------
845
+  (0.0ms) SAVEPOINT active_record_1
846
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00]]
847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
848
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
849
+  (0.0ms) SAVEPOINT active_record_1
850
+ SQL (1.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00]]
851
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00]]
852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
853
+  (0.1ms) SAVEPOINT active_record_1
854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
855
+  (0.0ms) SAVEPOINT active_record_1
856
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00]]
857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
858
+  (0.0ms) SAVEPOINT active_record_1
859
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
860
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00]]
861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
862
+  (0.0ms) SAVEPOINT active_record_1
863
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:24:07 UTC +00:00]]
864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
865
+  (0.0ms) SAVEPOINT active_record_1
866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
867
+  (6.8ms) rollback transaction
868
+  (0.2ms) begin transaction
869
+ ---------------------------------------------------
870
+ DirtyRelationsTest: test_changed_flag_reset_by_save
871
+ ---------------------------------------------------
872
+  (0.1ms) SAVEPOINT active_record_1
873
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
875
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
876
+  (0.0ms) SAVEPOINT active_record_1
877
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
878
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
880
+  (0.0ms) SAVEPOINT active_record_1
881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
882
+  (0.0ms) SAVEPOINT active_record_1
883
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
885
+  (0.0ms) SAVEPOINT active_record_1
886
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
887
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
889
+  (0.0ms) SAVEPOINT active_record_1
890
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
892
+  (6.6ms) rollback transaction
893
+  (0.1ms) begin transaction
894
+ --------------------------------------------------------------------------
895
+ DirtyRelationsTest: test_previous_changes_set_to_last_changed_flag_by_save
896
+ --------------------------------------------------------------------------
897
+  (0.0ms) SAVEPOINT active_record_1
898
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
900
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
901
+  (0.0ms) SAVEPOINT active_record_1
902
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
903
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
905
+  (0.0ms) SAVEPOINT active_record_1
906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
907
+  (0.0ms) SAVEPOINT active_record_1
908
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
910
+  (0.0ms) SAVEPOINT active_record_1
911
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
912
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
914
+  (0.0ms) SAVEPOINT active_record_1
915
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
917
+  (0.0ms) SAVEPOINT active_record_1
918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
919
+  (0.4ms) rollback transaction
920
+  (0.0ms) begin transaction
921
+ -----------------------------------------------------------------------------------
922
+ DirtyRelationsTest: test_setting_the_monitored_relation_ids_flags_object_as_changed
923
+ -----------------------------------------------------------------------------------
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
927
+  (0.0ms) SAVEPOINT active_record_1
928
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
930
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
931
+  (0.0ms) SAVEPOINT active_record_1
932
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
933
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
935
+  (0.0ms) SAVEPOINT active_record_1
936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
937
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
938
+  (0.0ms) SAVEPOINT active_record_1
939
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
940
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
942
+  (0.4ms) rollback transaction
943
+  (0.0ms) begin transaction
944
+ --------------------------------------------------------------------------------
945
+ DirtyRelationsTest: test_setting_the_monitored_relations_flags_object_as_changed
946
+ --------------------------------------------------------------------------------
947
+  (0.0ms) SAVEPOINT active_record_1
948
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
950
+  (0.0ms) SAVEPOINT active_record_1
951
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
953
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
954
+  (0.0ms) SAVEPOINT active_record_1
955
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
956
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
958
+  (0.0ms) SAVEPOINT active_record_1
959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
960
+  (0.0ms) SAVEPOINT active_record_1
961
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
962
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:24:10 UTC +00:00]]
963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
964
+  (0.3ms) rollback transaction
965
+  (0.2ms) begin transaction
966
+ ---------------------------------------------------------------------------
967
+ DirtyRelationsTest: test_association_appears_in_previous_changes_after_save
968
+ ---------------------------------------------------------------------------
969
+  (0.0ms) SAVEPOINT active_record_1
970
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
972
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
973
+  (0.1ms) SAVEPOINT active_record_1
974
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
975
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
977
+  (0.0ms) SAVEPOINT active_record_1
978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
979
+  (0.0ms) SAVEPOINT active_record_1
980
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
982
+  (0.0ms) SAVEPOINT active_record_1
983
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
984
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
986
+  (0.0ms) SAVEPOINT active_record_1
987
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
989
+  (0.0ms) SAVEPOINT active_record_1
990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
991
+  (6.6ms) rollback transaction
992
+  (0.1ms) begin transaction
993
+ ----------------------------------------------
994
+ DirtyRelationsTest: test_changes_reset_by_save
995
+ ----------------------------------------------
996
+  (0.1ms) SAVEPOINT active_record_1
997
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
999
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1000
+  (0.1ms) SAVEPOINT active_record_1
1001
+ SQL (0.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1002
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1004
+  (0.0ms) SAVEPOINT active_record_1
1005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1006
+  (0.0ms) SAVEPOINT active_record_1
1007
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1009
+  (0.0ms) SAVEPOINT active_record_1
1010
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1011
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1013
+  (0.0ms) SAVEPOINT active_record_1
1014
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1016
+  (0.3ms) rollback transaction
1017
+  (0.0ms) begin transaction
1018
+ ----------------------------------------------------------------------------
1019
+ DirtyRelationsTest: test_setting_has_many_association_adds_object_to_changes
1020
+ ----------------------------------------------------------------------------
1021
+  (0.0ms) SAVEPOINT active_record_1
1022
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1024
+  (0.0ms) SAVEPOINT active_record_1
1025
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1027
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1028
+  (0.0ms) SAVEPOINT active_record_1
1029
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1030
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1032
+  (0.0ms) SAVEPOINT active_record_1
1033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1034
+  (0.0ms) SAVEPOINT active_record_1
1035
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1036
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.3ms) rollback transaction
1039
+  (0.0ms) begin transaction
1040
+ -------------------------------------------------------------------------------------
1041
+ DirtyRelationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1042
+ -------------------------------------------------------------------------------------
1043
+  (0.0ms) SAVEPOINT active_record_1
1044
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1046
+  (0.0ms) SAVEPOINT active_record_1
1047
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1049
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1050
+  (0.0ms) SAVEPOINT active_record_1
1051
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1052
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1054
+  (0.0ms) SAVEPOINT active_record_1
1055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1056
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1057
+  (0.0ms) SAVEPOINT active_record_1
1058
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1059
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:28:52 UTC +00:00]]
1060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1061
+  (0.3ms) rollback transaction
1062
+  (0.2ms) begin transaction
1063
+ ----------------------------------------------
1064
+ DirtyRelationsTest: test_changes_reset_by_save
1065
+ ----------------------------------------------
1066
+  (0.0ms) SAVEPOINT active_record_1
1067
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1069
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1070
+  (0.0ms) SAVEPOINT active_record_1
1071
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1072
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1074
+  (0.0ms) SAVEPOINT active_record_1
1075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1076
+  (0.0ms) SAVEPOINT active_record_1
1077
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1079
+  (0.0ms) SAVEPOINT active_record_1
1080
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1081
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1083
+  (0.0ms) SAVEPOINT active_record_1
1084
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1086
+  (6.5ms) rollback transaction
1087
+  (0.1ms) begin transaction
1088
+ ------------------------------------------------------------------------------------
1089
+ DirtyRelationsTest: test_has_many_association_appears_in_previous_changes_after_save
1090
+ ------------------------------------------------------------------------------------
1091
+  (0.0ms) SAVEPOINT active_record_1
1092
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1094
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1095
+  (0.0ms) SAVEPOINT active_record_1
1096
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1097
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1099
+  (0.0ms) SAVEPOINT active_record_1
1100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
+  (0.0ms) SAVEPOINT active_record_1
1102
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1104
+  (0.0ms) SAVEPOINT active_record_1
1105
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1106
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1108
+  (0.0ms) SAVEPOINT active_record_1
1109
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1111
+  (0.0ms) SAVEPOINT active_record_1
1112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1113
+  (0.5ms) rollback transaction
1114
+  (0.0ms) begin transaction
1115
+ ----------------------------------------------------------------------------
1116
+ DirtyRelationsTest: test_setting_has_many_association_adds_object_to_changes
1117
+ ----------------------------------------------------------------------------
1118
+  (0.1ms) SAVEPOINT active_record_1
1119
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1121
+  (0.0ms) SAVEPOINT active_record_1
1122
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1124
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1125
+  (0.0ms) SAVEPOINT active_record_1
1126
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1127
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1129
+  (0.0ms) SAVEPOINT active_record_1
1130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1131
+  (0.0ms) SAVEPOINT active_record_1
1132
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1133
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1135
+  (0.4ms) rollback transaction
1136
+  (0.0ms) begin transaction
1137
+ -------------------------------------------------------------------------------------
1138
+ DirtyRelationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1139
+ -------------------------------------------------------------------------------------
1140
+  (0.0ms) SAVEPOINT active_record_1
1141
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1143
+  (0.0ms) SAVEPOINT active_record_1
1144
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1146
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1147
+  (0.0ms) SAVEPOINT active_record_1
1148
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1149
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1151
+  (0.0ms) SAVEPOINT active_record_1
1152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1153
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1154
+  (0.0ms) SAVEPOINT active_record_1
1155
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1156
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:36:19 UTC +00:00]]
1157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1158
+  (0.4ms) rollback transaction
1159
+  (0.2ms) begin transaction
1160
+ ----------------------------------------------
1161
+ DirtyRelationsTest: test_changes_reset_by_save
1162
+ ----------------------------------------------
1163
+  (0.1ms) rollback transaction
1164
+  (0.1ms) begin transaction
1165
+ ------------------------------------------------------------------------------------
1166
+ DirtyRelationsTest: test_has_many_association_appears_in_previous_changes_after_save
1167
+ ------------------------------------------------------------------------------------
1168
+  (0.0ms) rollback transaction
1169
+  (0.1ms) begin transaction
1170
+ ----------------------------------------------------------------------------
1171
+ DirtyRelationsTest: test_setting_has_many_association_adds_object_to_changes
1172
+ ----------------------------------------------------------------------------
1173
+  (0.0ms) rollback transaction
1174
+  (0.0ms) begin transaction
1175
+ -------------------------------------------------------------------------------------
1176
+ DirtyRelationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1177
+ -------------------------------------------------------------------------------------
1178
+  (0.0ms) rollback transaction
1179
+  (0.2ms) begin transaction
1180
+ ----------------------------------------------
1181
+ DirtyRelationsTest: test_changes_reset_by_save
1182
+ ----------------------------------------------
1183
+  (0.0ms) rollback transaction
1184
+  (0.0ms) begin transaction
1185
+ ------------------------------------------------------------------------------------
1186
+ DirtyRelationsTest: test_has_many_association_appears_in_previous_changes_after_save
1187
+ ------------------------------------------------------------------------------------
1188
+  (0.0ms) rollback transaction
1189
+  (0.0ms) begin transaction
1190
+ ----------------------------------------------------------------------------
1191
+ DirtyRelationsTest: test_setting_has_many_association_adds_object_to_changes
1192
+ ----------------------------------------------------------------------------
1193
+  (0.0ms) rollback transaction
1194
+  (0.0ms) begin transaction
1195
+ -------------------------------------------------------------------------------------
1196
+ DirtyRelationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1197
+ -------------------------------------------------------------------------------------
1198
+  (0.0ms) rollback transaction
1199
+  (0.2ms) begin transaction
1200
+ ----------------------------------------------
1201
+ DirtyRelationsTest: test_changes_reset_by_save
1202
+ ----------------------------------------------
1203
+  (0.1ms) SAVEPOINT active_record_1
1204
+ SQL (2.5ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1206
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1207
+  (0.0ms) SAVEPOINT active_record_1
1208
+ SQL (1.0ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1209
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1211
+  (0.0ms) SAVEPOINT active_record_1
1212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1213
+  (0.0ms) SAVEPOINT active_record_1
1214
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1216
+  (0.0ms) SAVEPOINT active_record_1
1217
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1218
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1220
+  (0.0ms) SAVEPOINT active_record_1
1221
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1223
+  (0.5ms) rollback transaction
1224
+  (0.1ms) begin transaction
1225
+ ------------------------------------------------------------------------------------
1226
+ DirtyRelationsTest: test_has_many_association_appears_in_previous_changes_after_save
1227
+ ------------------------------------------------------------------------------------
1228
+  (0.1ms) SAVEPOINT active_record_1
1229
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1231
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1232
+  (0.1ms) SAVEPOINT active_record_1
1233
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1234
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1236
+  (0.0ms) SAVEPOINT active_record_1
1237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1238
+  (0.0ms) SAVEPOINT active_record_1
1239
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1241
+  (0.0ms) SAVEPOINT active_record_1
1242
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1243
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1245
+  (0.0ms) SAVEPOINT active_record_1
1246
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1248
+  (0.0ms) SAVEPOINT active_record_1
1249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1250
+  (0.4ms) rollback transaction
1251
+  (0.0ms) begin transaction
1252
+ ----------------------------------------------------------------------------
1253
+ DirtyRelationsTest: test_setting_has_many_association_adds_object_to_changes
1254
+ ----------------------------------------------------------------------------
1255
+  (0.0ms) SAVEPOINT active_record_1
1256
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1258
+  (0.0ms) SAVEPOINT active_record_1
1259
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1261
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1262
+  (0.0ms) SAVEPOINT active_record_1
1263
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1264
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1266
+  (0.0ms) SAVEPOINT active_record_1
1267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1268
+  (0.0ms) SAVEPOINT active_record_1
1269
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1270
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
+  (0.3ms) rollback transaction
1273
+  (0.0ms) begin transaction
1274
+ -------------------------------------------------------------------------------------
1275
+ DirtyRelationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1276
+ -------------------------------------------------------------------------------------
1277
+  (0.0ms) SAVEPOINT active_record_1
1278
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1280
+  (0.0ms) SAVEPOINT active_record_1
1281
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1283
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1284
+  (0.0ms) SAVEPOINT active_record_1
1285
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1286
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1288
+  (0.0ms) SAVEPOINT active_record_1
1289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1290
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1291
+  (0.0ms) SAVEPOINT active_record_1
1292
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1293
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 02:52:08 UTC +00:00]]
1294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1295
+  (0.4ms) rollback transaction
1296
+  (0.2ms) begin transaction
1297
+ ----------------------------------------------
1298
+ DirtyRelationsTest: test_changes_reset_by_save
1299
+ ----------------------------------------------
1300
+  (0.0ms) SAVEPOINT active_record_1
1301
+ SQL (2.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1303
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1304
+  (0.1ms) SAVEPOINT active_record_1
1305
+ SQL (0.9ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1306
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.0ms) SAVEPOINT active_record_1
1309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1310
+  (0.0ms) SAVEPOINT active_record_1
1311
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1313
+  (0.0ms) SAVEPOINT active_record_1
1314
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1315
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1317
+  (0.0ms) SAVEPOINT active_record_1
1318
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1320
+  (6.6ms) rollback transaction
1321
+  (0.1ms) begin transaction
1322
+ ------------------------------------------------------------------------------------
1323
+ DirtyRelationsTest: test_has_many_association_appears_in_previous_changes_after_save
1324
+ ------------------------------------------------------------------------------------
1325
+  (0.0ms) SAVEPOINT active_record_1
1326
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1328
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1329
+  (0.0ms) SAVEPOINT active_record_1
1330
+ SQL (0.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1331
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1333
+  (0.0ms) SAVEPOINT active_record_1
1334
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1335
+  (0.0ms) SAVEPOINT active_record_1
1336
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1338
+  (0.0ms) SAVEPOINT active_record_1
1339
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1340
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1342
+  (0.0ms) SAVEPOINT active_record_1
1343
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1345
+  (0.0ms) SAVEPOINT active_record_1
1346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.4ms) rollback transaction
1348
+  (0.0ms) begin transaction
1349
+ ----------------------------------------------------------------------------
1350
+ DirtyRelationsTest: test_setting_has_many_association_adds_object_to_changes
1351
+ ----------------------------------------------------------------------------
1352
+  (0.0ms) SAVEPOINT active_record_1
1353
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1355
+  (0.0ms) SAVEPOINT active_record_1
1356
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1358
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1359
+  (0.0ms) SAVEPOINT active_record_1
1360
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1361
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1363
+  (0.0ms) SAVEPOINT active_record_1
1364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1365
+  (0.0ms) SAVEPOINT active_record_1
1366
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1367
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1369
+  (0.7ms) rollback transaction
1370
+  (0.0ms) begin transaction
1371
+ -------------------------------------------------------------------------------------
1372
+ DirtyRelationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1373
+ -------------------------------------------------------------------------------------
1374
+  (0.0ms) SAVEPOINT active_record_1
1375
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1377
+  (0.0ms) SAVEPOINT active_record_1
1378
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1380
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1381
+  (0.0ms) SAVEPOINT active_record_1
1382
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1383
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1385
+  (0.0ms) SAVEPOINT active_record_1
1386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1387
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1388
+  (0.0ms) SAVEPOINT active_record_1
1389
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1390
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:00:17 UTC +00:00]]
1391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1392
+  (1.7ms) rollback transaction
1393
+  (0.2ms) begin transaction
1394
+ -------------------------------------------------
1395
+ DirtyAssociationsTest: test_changes_reset_by_save
1396
+ -------------------------------------------------
1397
+  (0.0ms) SAVEPOINT active_record_1
1398
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1400
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1401
+  (0.0ms) SAVEPOINT active_record_1
1402
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1403
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1405
+  (0.0ms) SAVEPOINT active_record_1
1406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1407
+  (0.0ms) SAVEPOINT active_record_1
1408
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1410
+  (0.0ms) SAVEPOINT active_record_1
1411
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1412
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1414
+  (0.0ms) SAVEPOINT active_record_1
1415
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1417
+  (6.5ms) rollback transaction
1418
+  (0.1ms) begin transaction
1419
+ ---------------------------------------------------------------------------------------
1420
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
1421
+ ---------------------------------------------------------------------------------------
1422
+  (0.1ms) SAVEPOINT active_record_1
1423
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1425
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1426
+  (0.0ms) SAVEPOINT active_record_1
1427
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1428
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1430
+  (0.0ms) SAVEPOINT active_record_1
1431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1432
+  (0.0ms) SAVEPOINT active_record_1
1433
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1435
+  (0.0ms) SAVEPOINT active_record_1
1436
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1437
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1439
+  (0.0ms) SAVEPOINT active_record_1
1440
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1442
+  (0.0ms) SAVEPOINT active_record_1
1443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1444
+  (0.3ms) rollback transaction
1445
+  (0.0ms) begin transaction
1446
+ -------------------------------------------------------------------------------
1447
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
1448
+ -------------------------------------------------------------------------------
1449
+  (0.0ms) SAVEPOINT active_record_1
1450
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1452
+  (0.0ms) SAVEPOINT active_record_1
1453
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1455
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1456
+  (0.0ms) SAVEPOINT active_record_1
1457
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1458
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1460
+  (0.0ms) SAVEPOINT active_record_1
1461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1462
+  (0.0ms) SAVEPOINT active_record_1
1463
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1464
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1466
+  (0.4ms) rollback transaction
1467
+  (0.0ms) begin transaction
1468
+ ----------------------------------------------------------------------------------------
1469
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1470
+ ----------------------------------------------------------------------------------------
1471
+  (0.0ms) SAVEPOINT active_record_1
1472
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1474
+  (0.0ms) SAVEPOINT active_record_1
1475
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1477
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1478
+  (0.0ms) SAVEPOINT active_record_1
1479
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1480
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1482
+  (0.0ms) SAVEPOINT active_record_1
1483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1484
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1485
+  (0.0ms) SAVEPOINT active_record_1
1486
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1487
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:09:09 UTC +00:00]]
1488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1489
+  (0.3ms) rollback transaction
1490
+  (0.5ms) begin transaction
1491
+ --------------------------------
1492
+ DirtyAssociationsTest: test_blah
1493
+ --------------------------------
1494
+  (0.0ms) SAVEPOINT active_record_1
1495
+ SQL (2.0ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:26:53 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:26:53 UTC +00:00]]
1496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1497
+  (0.0ms) SAVEPOINT active_record_1
1498
+ SQL (0.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:26:53 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:26:53 UTC +00:00]]
1499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1500
+  (6.7ms) rollback transaction
1501
+  (0.2ms) begin transaction
1502
+ --------------------------------
1503
+ DirtyAssociationsTest: test_blah
1504
+ --------------------------------
1505
+  (0.0ms) SAVEPOINT active_record_1
1506
+ SQL (2.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1508
+  (0.0ms) SAVEPOINT active_record_1
1509
+ SQL (0.9ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1511
+  (0.5ms) rollback transaction
1512
+  (0.0ms) begin transaction
1513
+ -------------------------------------------------
1514
+ DirtyAssociationsTest: test_changes_reset_by_save
1515
+ -------------------------------------------------
1516
+  (0.0ms) SAVEPOINT active_record_1
1517
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1519
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1520
+  (0.0ms) SAVEPOINT active_record_1
1521
+ SQL (0.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1522
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1524
+  (0.0ms) SAVEPOINT active_record_1
1525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1526
+  (0.0ms) SAVEPOINT active_record_1
1527
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1529
+  (0.0ms) SAVEPOINT active_record_1
1530
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1531
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1533
+  (0.0ms) SAVEPOINT active_record_1
1534
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1536
+  (0.4ms) rollback transaction
1537
+  (0.0ms) begin transaction
1538
+ ---------------------------------------------------------------------------------------
1539
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
1540
+ ---------------------------------------------------------------------------------------
1541
+  (0.0ms) SAVEPOINT active_record_1
1542
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1544
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1545
+  (0.0ms) SAVEPOINT active_record_1
1546
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1547
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1549
+  (0.0ms) SAVEPOINT active_record_1
1550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1551
+  (0.0ms) SAVEPOINT active_record_1
1552
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1554
+  (0.0ms) SAVEPOINT active_record_1
1555
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1556
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1558
+  (0.0ms) SAVEPOINT active_record_1
1559
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1561
+  (0.0ms) SAVEPOINT active_record_1
1562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1563
+  (0.3ms) rollback transaction
1564
+  (0.0ms) begin transaction
1565
+ -------------------------------------------------------------------------------
1566
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
1567
+ -------------------------------------------------------------------------------
1568
+  (0.0ms) SAVEPOINT active_record_1
1569
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1571
+  (0.0ms) SAVEPOINT active_record_1
1572
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1574
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1575
+  (0.0ms) SAVEPOINT active_record_1
1576
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1577
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1579
+  (0.0ms) SAVEPOINT active_record_1
1580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1581
+  (0.0ms) SAVEPOINT active_record_1
1582
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1583
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1585
+  (0.3ms) rollback transaction
1586
+  (0.0ms) begin transaction
1587
+ ----------------------------------------------------------------------------------------
1588
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1589
+ ----------------------------------------------------------------------------------------
1590
+  (0.0ms) SAVEPOINT active_record_1
1591
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1593
+  (0.0ms) SAVEPOINT active_record_1
1594
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1596
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1597
+  (0.0ms) SAVEPOINT active_record_1
1598
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1599
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1601
+  (0.0ms) SAVEPOINT active_record_1
1602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1603
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1604
+  (0.0ms) SAVEPOINT active_record_1
1605
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1606
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:32:31 UTC +00:00]]
1607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1608
+  (0.8ms) rollback transaction
1609
+  (0.2ms) begin transaction
1610
+ -------------------------------------------------
1611
+ DirtyAssociationsTest: test_changes_reset_by_save
1612
+ -------------------------------------------------
1613
+  (0.1ms) SAVEPOINT active_record_1
1614
+ SQL (2.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:36 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:36 UTC +00:00]]
1615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1616
+  (0.4ms) rollback transaction
1617
+  (0.0ms) begin transaction
1618
+ ---------------------------------------------------------------------------------------
1619
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
1620
+ ---------------------------------------------------------------------------------------
1621
+  (0.0ms) SAVEPOINT active_record_1
1622
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:36 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:36 UTC +00:00]]
1623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1624
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1625
+  (0.1ms) SAVEPOINT active_record_1
1626
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1627
+ SQL (0.3ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1629
+  (0.1ms) SAVEPOINT active_record_1
1630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1631
+  (0.5ms) rollback transaction
1632
+  (0.0ms) begin transaction
1633
+ -------------------------------------------------------------------------------
1634
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
1635
+ -------------------------------------------------------------------------------
1636
+  (0.0ms) SAVEPOINT active_record_1
1637
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1639
+  (0.0ms) SAVEPOINT active_record_1
1640
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1642
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1643
+  (0.0ms) SAVEPOINT active_record_1
1644
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1645
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1647
+  (0.0ms) SAVEPOINT active_record_1
1648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1649
+  (0.4ms) rollback transaction
1650
+  (0.1ms) begin transaction
1651
+ ----------------------------------------------------------------------------------------
1652
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1653
+ ----------------------------------------------------------------------------------------
1654
+  (0.1ms) SAVEPOINT active_record_1
1655
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1657
+  (0.0ms) SAVEPOINT active_record_1
1658
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1660
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1661
+  (0.0ms) SAVEPOINT active_record_1
1662
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1663
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:53:37 UTC +00:00]]
1664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1665
+  (0.0ms) SAVEPOINT active_record_1
1666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1667
+  (0.4ms) rollback transaction
1668
+  (0.2ms) begin transaction
1669
+ -------------------------------------------------
1670
+ DirtyAssociationsTest: test_changes_reset_by_save
1671
+ -------------------------------------------------
1672
+  (0.0ms) SAVEPOINT active_record_1
1673
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1675
+  (6.7ms) rollback transaction
1676
+  (0.1ms) begin transaction
1677
+ ---------------------------------------------------------------------------------------
1678
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
1679
+ ---------------------------------------------------------------------------------------
1680
+  (0.1ms) SAVEPOINT active_record_1
1681
+ SQL (0.5ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1683
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1684
+  (0.1ms) SAVEPOINT active_record_1
1685
+ SQL (0.9ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1686
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1688
+  (0.0ms) SAVEPOINT active_record_1
1689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1690
+  (0.4ms) rollback transaction
1691
+  (0.0ms) begin transaction
1692
+ -------------------------------------------------------------------------------
1693
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
1694
+ -------------------------------------------------------------------------------
1695
+  (0.0ms) SAVEPOINT active_record_1
1696
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1698
+  (0.0ms) SAVEPOINT active_record_1
1699
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1701
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1702
+  (0.0ms) SAVEPOINT active_record_1
1703
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1704
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1706
+  (0.0ms) SAVEPOINT active_record_1
1707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1708
+  (0.3ms) rollback transaction
1709
+  (0.0ms) begin transaction
1710
+ ----------------------------------------------------------------------------------------
1711
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1712
+ ----------------------------------------------------------------------------------------
1713
+  (0.0ms) SAVEPOINT active_record_1
1714
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1716
+  (0.0ms) SAVEPOINT active_record_1
1717
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1719
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1720
+  (0.0ms) SAVEPOINT active_record_1
1721
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1722
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:55:58 UTC +00:00]]
1723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1724
+  (0.0ms) SAVEPOINT active_record_1
1725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1726
+  (0.4ms) rollback transaction
1727
+  (0.2ms) begin transaction
1728
+ -------------------------------------------------
1729
+ DirtyAssociationsTest: test_changes_reset_by_save
1730
+ -------------------------------------------------
1731
+  (0.0ms) SAVEPOINT active_record_1
1732
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1734
+  (6.5ms) rollback transaction
1735
+  (0.1ms) begin transaction
1736
+ ---------------------------------------------------------------------------------------
1737
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
1738
+ ---------------------------------------------------------------------------------------
1739
+  (0.1ms) SAVEPOINT active_record_1
1740
+ SQL (0.5ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1742
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1743
+  (0.1ms) SAVEPOINT active_record_1
1744
+ SQL (1.0ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1745
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1747
+  (0.0ms) SAVEPOINT active_record_1
1748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1749
+  (0.4ms) rollback transaction
1750
+  (0.0ms) begin transaction
1751
+ -------------------------------------------------------------------------------
1752
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
1753
+ -------------------------------------------------------------------------------
1754
+  (0.0ms) SAVEPOINT active_record_1
1755
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1757
+  (0.0ms) SAVEPOINT active_record_1
1758
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1760
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1761
+  (0.0ms) SAVEPOINT active_record_1
1762
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1763
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1765
+  (0.0ms) SAVEPOINT active_record_1
1766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1767
+  (0.3ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+ ----------------------------------------------------------------------------------------
1770
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1771
+ ----------------------------------------------------------------------------------------
1772
+  (0.1ms) SAVEPOINT active_record_1
1773
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1775
+  (0.0ms) SAVEPOINT active_record_1
1776
+ SQL (0.5ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1778
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1779
+  (0.1ms) SAVEPOINT active_record_1
1780
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1781
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:14 UTC +00:00]]
1782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1783
+  (0.0ms) SAVEPOINT active_record_1
1784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1785
+  (0.5ms) rollback transaction
1786
+  (0.2ms) begin transaction
1787
+ -------------------------------------------------
1788
+ DirtyAssociationsTest: test_changes_reset_by_save
1789
+ -------------------------------------------------
1790
+  (0.0ms) SAVEPOINT active_record_1
1791
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1793
+ Foo Load (0.3ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1794
+  (0.1ms) SAVEPOINT active_record_1
1795
+ SQL (1.0ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1796
+ SQL (0.3ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1798
+  (0.1ms) SAVEPOINT active_record_1
1799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1800
+  (0.1ms) SAVEPOINT active_record_1
1801
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1803
+  (0.0ms) SAVEPOINT active_record_1
1804
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1805
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1807
+  (0.0ms) SAVEPOINT active_record_1
1808
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1810
+  (0.4ms) rollback transaction
1811
+  (0.1ms) begin transaction
1812
+ ---------------------------------------------------------------------------------------
1813
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
1814
+ ---------------------------------------------------------------------------------------
1815
+  (0.0ms) SAVEPOINT active_record_1
1816
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1818
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1819
+  (0.1ms) SAVEPOINT active_record_1
1820
+ SQL (0.5ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1821
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1823
+  (0.0ms) SAVEPOINT active_record_1
1824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1825
+  (0.0ms) SAVEPOINT active_record_1
1826
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1828
+  (0.0ms) SAVEPOINT active_record_1
1829
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1830
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1832
+  (0.0ms) SAVEPOINT active_record_1
1833
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1835
+  (0.0ms) SAVEPOINT active_record_1
1836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1837
+  (0.5ms) rollback transaction
1838
+  (0.0ms) begin transaction
1839
+ -------------------------------------------------------------------------------
1840
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
1841
+ -------------------------------------------------------------------------------
1842
+  (0.0ms) SAVEPOINT active_record_1
1843
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1845
+  (0.0ms) SAVEPOINT active_record_1
1846
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1848
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1849
+  (0.0ms) SAVEPOINT active_record_1
1850
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1851
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1853
+  (0.0ms) SAVEPOINT active_record_1
1854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1855
+  (0.0ms) SAVEPOINT active_record_1
1856
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1857
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1859
+  (0.4ms) rollback transaction
1860
+  (0.1ms) begin transaction
1861
+ ----------------------------------------------------------------------------------------
1862
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1863
+ ----------------------------------------------------------------------------------------
1864
+  (0.0ms) SAVEPOINT active_record_1
1865
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1867
+  (0.0ms) SAVEPOINT active_record_1
1868
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1870
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1871
+  (0.0ms) SAVEPOINT active_record_1
1872
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1873
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1875
+  (0.0ms) SAVEPOINT active_record_1
1876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1877
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1878
+  (0.0ms) SAVEPOINT active_record_1
1879
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1880
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:56:57 UTC +00:00]]
1881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1882
+  (0.4ms) rollback transaction
1883
+  (0.2ms) begin transaction
1884
+ -------------------------------------------------
1885
+ DirtyAssociationsTest: test_changes_reset_by_save
1886
+ -------------------------------------------------
1887
+  (0.0ms) SAVEPOINT active_record_1
1888
+ SQL (1.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1890
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1891
+  (0.0ms) SAVEPOINT active_record_1
1892
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1893
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1895
+  (0.0ms) SAVEPOINT active_record_1
1896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1897
+  (0.0ms) SAVEPOINT active_record_1
1898
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1900
+  (0.0ms) SAVEPOINT active_record_1
1901
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1902
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1903
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1904
+  (0.0ms) SAVEPOINT active_record_1
1905
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1907
+  (6.6ms) rollback transaction
1908
+  (0.1ms) begin transaction
1909
+ ---------------------------------------------------------------------------------------
1910
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
1911
+ ---------------------------------------------------------------------------------------
1912
+  (0.1ms) SAVEPOINT active_record_1
1913
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1915
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1916
+  (0.0ms) SAVEPOINT active_record_1
1917
+ SQL (0.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1918
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1920
+  (0.0ms) SAVEPOINT active_record_1
1921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1922
+  (0.0ms) SAVEPOINT active_record_1
1923
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1925
+  (0.0ms) SAVEPOINT active_record_1
1926
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
1927
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1929
+  (0.0ms) SAVEPOINT active_record_1
1930
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1932
+  (0.0ms) SAVEPOINT active_record_1
1933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1934
+  (0.4ms) rollback transaction
1935
+  (0.0ms) begin transaction
1936
+ -------------------------------------------------------------------------------
1937
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
1938
+ -------------------------------------------------------------------------------
1939
+  (0.0ms) SAVEPOINT active_record_1
1940
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1942
+  (0.0ms) SAVEPOINT active_record_1
1943
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1945
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1946
+  (0.0ms) SAVEPOINT active_record_1
1947
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1948
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1950
+  (0.0ms) SAVEPOINT active_record_1
1951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1952
+  (0.0ms) SAVEPOINT active_record_1
1953
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1954
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1956
+  (0.3ms) rollback transaction
1957
+  (0.0ms) begin transaction
1958
+ ----------------------------------------------------------------------------------------
1959
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
1960
+ ----------------------------------------------------------------------------------------
1961
+  (0.0ms) SAVEPOINT active_record_1
1962
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1964
+  (0.0ms) SAVEPOINT active_record_1
1965
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1967
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
1968
+  (0.0ms) SAVEPOINT active_record_1
1969
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1970
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1972
+  (0.0ms) SAVEPOINT active_record_1
1973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1974
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1975
+  (0.0ms) SAVEPOINT active_record_1
1976
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
1977
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 03:57:08 UTC +00:00]]
1978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1979
+  (0.3ms) rollback transaction
1980
+  (0.2ms) begin transaction
1981
+ --------------------------------
1982
+ DirtyAssociationsTest: test_blah
1983
+ --------------------------------
1984
+  (0.0ms) SAVEPOINT active_record_1
1985
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
1986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1987
+  (0.0ms) SAVEPOINT active_record_1
1988
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
1989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1990
+  (0.5ms) rollback transaction
1991
+  (0.1ms) begin transaction
1992
+ -------------------------------------------------
1993
+ DirtyAssociationsTest: test_changes_reset_by_save
1994
+ -------------------------------------------------
1995
+  (0.0ms) SAVEPOINT active_record_1
1996
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
1997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1998
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
1999
+  (0.0ms) SAVEPOINT active_record_1
2000
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2001
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2003
+  (0.0ms) SAVEPOINT active_record_1
2004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2005
+  (0.0ms) SAVEPOINT active_record_1
2006
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2008
+  (0.0ms) SAVEPOINT active_record_1
2009
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2010
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2012
+  (0.0ms) SAVEPOINT active_record_1
2013
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2015
+  (0.4ms) rollback transaction
2016
+  (0.0ms) begin transaction
2017
+ ---------------------------------------------------------------------------------------
2018
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2019
+ ---------------------------------------------------------------------------------------
2020
+  (0.0ms) SAVEPOINT active_record_1
2021
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2023
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2024
+  (0.0ms) SAVEPOINT active_record_1
2025
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2026
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2028
+  (0.0ms) SAVEPOINT active_record_1
2029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2030
+  (0.0ms) SAVEPOINT active_record_1
2031
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2033
+  (0.0ms) SAVEPOINT active_record_1
2034
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2035
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2037
+  (0.0ms) SAVEPOINT active_record_1
2038
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2040
+  (0.0ms) SAVEPOINT active_record_1
2041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2042
+  (0.4ms) rollback transaction
2043
+  (0.1ms) begin transaction
2044
+ -------------------------------------------------------------------------------
2045
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2046
+ -------------------------------------------------------------------------------
2047
+  (0.1ms) SAVEPOINT active_record_1
2048
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2050
+  (0.1ms) SAVEPOINT active_record_1
2051
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2053
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2054
+  (0.0ms) SAVEPOINT active_record_1
2055
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2056
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2058
+  (0.0ms) SAVEPOINT active_record_1
2059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2060
+  (0.0ms) SAVEPOINT active_record_1
2061
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2062
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2064
+  (0.4ms) rollback transaction
2065
+  (0.1ms) begin transaction
2066
+ ----------------------------------------------------------------------------------------
2067
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2068
+ ----------------------------------------------------------------------------------------
2069
+  (0.0ms) SAVEPOINT active_record_1
2070
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2072
+  (0.0ms) SAVEPOINT active_record_1
2073
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2075
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2076
+  (0.0ms) SAVEPOINT active_record_1
2077
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2078
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2080
+  (0.0ms) SAVEPOINT active_record_1
2081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2082
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2083
+  (0.0ms) SAVEPOINT active_record_1
2084
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2085
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:04:59 UTC +00:00]]
2086
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2087
+  (0.5ms) rollback transaction
2088
+  (0.2ms) begin transaction
2089
+ --------------------------------
2090
+ DirtyAssociationsTest: test_blah
2091
+ --------------------------------
2092
+  (0.0ms) SAVEPOINT active_record_1
2093
+ SQL (1.8ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2095
+  (0.0ms) SAVEPOINT active_record_1
2096
+ SQL (0.8ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2098
+  (6.4ms) rollback transaction
2099
+  (0.1ms) begin transaction
2100
+ -------------------------------------------------
2101
+ DirtyAssociationsTest: test_changes_reset_by_save
2102
+ -------------------------------------------------
2103
+  (0.0ms) SAVEPOINT active_record_1
2104
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2106
+ Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2107
+  (0.0ms) SAVEPOINT active_record_1
2108
+ SQL (0.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2109
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2111
+  (0.0ms) SAVEPOINT active_record_1
2112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2113
+  (0.0ms) SAVEPOINT active_record_1
2114
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2116
+  (0.0ms) SAVEPOINT active_record_1
2117
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2118
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2120
+  (0.0ms) SAVEPOINT active_record_1
2121
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2123
+  (0.4ms) rollback transaction
2124
+  (0.0ms) begin transaction
2125
+ ---------------------------------------------------------------------------------------
2126
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2127
+ ---------------------------------------------------------------------------------------
2128
+  (0.0ms) SAVEPOINT active_record_1
2129
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2131
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2132
+  (0.0ms) SAVEPOINT active_record_1
2133
+ SQL (0.4ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2134
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2136
+  (0.0ms) SAVEPOINT active_record_1
2137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2138
+  (0.0ms) SAVEPOINT active_record_1
2139
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2141
+  (0.0ms) SAVEPOINT active_record_1
2142
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2143
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2145
+  (0.0ms) SAVEPOINT active_record_1
2146
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2148
+  (0.0ms) SAVEPOINT active_record_1
2149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2150
+  (0.4ms) rollback transaction
2151
+  (0.0ms) begin transaction
2152
+ -------------------------------------------------------------------------------
2153
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2154
+ -------------------------------------------------------------------------------
2155
+  (0.0ms) SAVEPOINT active_record_1
2156
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2158
+  (0.0ms) SAVEPOINT active_record_1
2159
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2161
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2162
+  (0.0ms) SAVEPOINT active_record_1
2163
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2164
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2166
+  (0.0ms) SAVEPOINT active_record_1
2167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2168
+  (0.0ms) SAVEPOINT active_record_1
2169
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2170
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2172
+  (0.5ms) rollback transaction
2173
+  (0.0ms) begin transaction
2174
+ ----------------------------------------------------------------------------------------
2175
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2176
+ ----------------------------------------------------------------------------------------
2177
+  (0.0ms) SAVEPOINT active_record_1
2178
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2180
+  (0.0ms) SAVEPOINT active_record_1
2181
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2183
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2184
+  (0.0ms) SAVEPOINT active_record_1
2185
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2186
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2188
+  (0.0ms) SAVEPOINT active_record_1
2189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2190
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2191
+  (0.0ms) SAVEPOINT active_record_1
2192
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2193
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:05:10 UTC +00:00]]
2194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2195
+  (0.3ms) rollback transaction
2196
+  (0.2ms) begin transaction
2197
+ -------------------------------------------------
2198
+ DirtyAssociationsTest: test_changes_reset_by_save
2199
+ -------------------------------------------------
2200
+  (0.0ms) SAVEPOINT active_record_1
2201
+ SQL (2.0ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2203
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2204
+  (0.0ms) SAVEPOINT active_record_1
2205
+ SQL (1.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2206
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2208
+  (0.0ms) SAVEPOINT active_record_1
2209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2210
+  (0.0ms) SAVEPOINT active_record_1
2211
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2213
+  (0.0ms) SAVEPOINT active_record_1
2214
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2215
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2217
+  (0.0ms) SAVEPOINT active_record_1
2218
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2220
+  (6.5ms) rollback transaction
2221
+  (0.1ms) begin transaction
2222
+ ---------------------------------------------------------------------------------------
2223
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2224
+ ---------------------------------------------------------------------------------------
2225
+  (0.1ms) SAVEPOINT active_record_1
2226
+ SQL (0.4ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2228
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2229
+  (0.0ms) SAVEPOINT active_record_1
2230
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2231
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2233
+  (0.0ms) SAVEPOINT active_record_1
2234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2235
+  (0.0ms) SAVEPOINT active_record_1
2236
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2238
+  (0.0ms) SAVEPOINT active_record_1
2239
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2240
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2242
+  (0.0ms) SAVEPOINT active_record_1
2243
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2245
+  (0.0ms) SAVEPOINT active_record_1
2246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2247
+  (0.3ms) rollback transaction
2248
+  (0.1ms) begin transaction
2249
+ -------------------------------------------------------------------------------
2250
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2251
+ -------------------------------------------------------------------------------
2252
+  (0.0ms) SAVEPOINT active_record_1
2253
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2255
+  (0.0ms) SAVEPOINT active_record_1
2256
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2258
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2259
+  (0.0ms) SAVEPOINT active_record_1
2260
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2261
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2263
+  (0.0ms) SAVEPOINT active_record_1
2264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2265
+  (0.0ms) SAVEPOINT active_record_1
2266
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2267
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2269
+  (0.3ms) rollback transaction
2270
+  (0.0ms) begin transaction
2271
+ ----------------------------------------------------------------------------------------
2272
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2273
+ ----------------------------------------------------------------------------------------
2274
+  (0.0ms) SAVEPOINT active_record_1
2275
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2277
+  (0.0ms) SAVEPOINT active_record_1
2278
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2280
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2281
+  (0.0ms) SAVEPOINT active_record_1
2282
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2283
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2285
+  (0.0ms) SAVEPOINT active_record_1
2286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2287
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2288
+  (0.0ms) SAVEPOINT active_record_1
2289
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2290
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:07:29 UTC +00:00]]
2291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2292
+  (0.3ms) rollback transaction
2293
+  (0.2ms) begin transaction
2294
+ -------------------------------------------------
2295
+ DirtyAssociationsTest: test_changes_reset_by_save
2296
+ -------------------------------------------------
2297
+  (0.0ms) SAVEPOINT active_record_1
2298
+ SQL (2.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2300
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2301
+  (0.0ms) SAVEPOINT active_record_1
2302
+ SQL (0.9ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2303
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2305
+  (0.0ms) SAVEPOINT active_record_1
2306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2307
+  (0.0ms) SAVEPOINT active_record_1
2308
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2310
+  (0.0ms) SAVEPOINT active_record_1
2311
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2312
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2314
+  (0.0ms) SAVEPOINT active_record_1
2315
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2317
+  (0.5ms) rollback transaction
2318
+  (0.0ms) begin transaction
2319
+ ---------------------------------------------------------------------------------------
2320
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2321
+ ---------------------------------------------------------------------------------------
2322
+  (0.0ms) SAVEPOINT active_record_1
2323
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2325
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2326
+  (0.0ms) SAVEPOINT active_record_1
2327
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2328
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2330
+  (0.0ms) SAVEPOINT active_record_1
2331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2332
+  (0.0ms) SAVEPOINT active_record_1
2333
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2334
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2335
+  (0.0ms) SAVEPOINT active_record_1
2336
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2337
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2339
+  (0.0ms) SAVEPOINT active_record_1
2340
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2342
+  (0.0ms) SAVEPOINT active_record_1
2343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2344
+  (0.4ms) rollback transaction
2345
+  (0.0ms) begin transaction
2346
+ -------------------------------------------------------------------------------
2347
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2348
+ -------------------------------------------------------------------------------
2349
+  (0.0ms) SAVEPOINT active_record_1
2350
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2352
+  (0.0ms) SAVEPOINT active_record_1
2353
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2355
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2356
+  (0.0ms) SAVEPOINT active_record_1
2357
+ SQL (0.2ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2358
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2360
+  (0.0ms) SAVEPOINT active_record_1
2361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2362
+  (0.0ms) SAVEPOINT active_record_1
2363
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2364
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2366
+  (0.4ms) rollback transaction
2367
+  (0.0ms) begin transaction
2368
+ ----------------------------------------------------------------------------------------
2369
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2370
+ ----------------------------------------------------------------------------------------
2371
+  (0.0ms) SAVEPOINT active_record_1
2372
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2374
+  (0.0ms) SAVEPOINT active_record_1
2375
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2377
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2378
+  (0.0ms) SAVEPOINT active_record_1
2379
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2380
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2382
+  (0.0ms) SAVEPOINT active_record_1
2383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2384
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2385
+  (0.0ms) SAVEPOINT active_record_1
2386
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2387
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:42:47 UTC +00:00]]
2388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2389
+  (0.3ms) rollback transaction
2390
+  (0.2ms) begin transaction
2391
+ -------------------------------------------------
2392
+ DirtyAssociationsTest: test_changes_reset_by_save
2393
+ -------------------------------------------------
2394
+  (0.0ms) SAVEPOINT active_record_1
2395
+ SQL (1.9ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2397
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2398
+  (0.0ms) SAVEPOINT active_record_1
2399
+ SQL (1.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2400
+ SQL (0.2ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2402
+  (0.0ms) SAVEPOINT active_record_1
2403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2404
+  (0.0ms) SAVEPOINT active_record_1
2405
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2407
+  (0.0ms) SAVEPOINT active_record_1
2408
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2409
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2411
+  (0.0ms) SAVEPOINT active_record_1
2412
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2414
+  (6.6ms) rollback transaction
2415
+  (0.1ms) begin transaction
2416
+ ---------------------------------------------------------------------------------------
2417
+ DirtyAssociationsTest: test_has_many_association_appears_in_previous_changes_after_save
2418
+ ---------------------------------------------------------------------------------------
2419
+  (0.1ms) SAVEPOINT active_record_1
2420
+ SQL (0.5ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2422
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2423
+  (0.0ms) SAVEPOINT active_record_1
2424
+ SQL (0.3ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2425
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2427
+  (0.0ms) SAVEPOINT active_record_1
2428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2429
+  (0.0ms) SAVEPOINT active_record_1
2430
+ SQL (0.1ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2432
+  (0.0ms) SAVEPOINT active_record_1
2433
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (1) [["bar_id", 1]]
2434
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2436
+  (0.0ms) SAVEPOINT active_record_1
2437
+ SQL (0.1ms) UPDATE "bars" SET "updated_at" = ? WHERE "bars"."id" = 1 [["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2439
+  (0.0ms) SAVEPOINT active_record_1
2440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2441
+  (0.4ms) rollback transaction
2442
+  (0.0ms) begin transaction
2443
+ -------------------------------------------------------------------------------
2444
+ DirtyAssociationsTest: test_setting_has_many_association_adds_object_to_changes
2445
+ -------------------------------------------------------------------------------
2446
+  (0.0ms) SAVEPOINT active_record_1
2447
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2449
+  (0.0ms) SAVEPOINT active_record_1
2450
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2452
+ Foo Load (0.1ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2453
+  (0.0ms) SAVEPOINT active_record_1
2454
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2455
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2457
+  (0.0ms) SAVEPOINT active_record_1
2458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2459
+  (0.0ms) SAVEPOINT active_record_1
2460
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2461
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2463
+  (1.4ms) rollback transaction
2464
+  (0.1ms) begin transaction
2465
+ ----------------------------------------------------------------------------------------
2466
+ DirtyAssociationsTest: test_setting_has_many_association_ids_adds_association_to_changes
2467
+ ----------------------------------------------------------------------------------------
2468
+  (0.0ms) SAVEPOINT active_record_1
2469
+ SQL (0.3ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2471
+  (0.0ms) SAVEPOINT active_record_1
2472
+ SQL (0.2ms) INSERT INTO "foos" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2474
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 2]]
2475
+  (0.0ms) SAVEPOINT active_record_1
2476
+ SQL (0.1ms) INSERT INTO "bars" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2477
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 2 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2479
+  (0.0ms) SAVEPOINT active_record_1
2480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2481
+ Foo Load (0.0ms) SELECT "foos".* FROM "foos" WHERE "foos"."id" = ? LIMIT 1 [["id", 1]]
2482
+  (0.0ms) SAVEPOINT active_record_1
2483
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = NULL WHERE "foos"."bar_id" = ? AND "foos"."id" IN (2) [["bar_id", 1]]
2484
+ SQL (0.1ms) UPDATE "foos" SET "bar_id" = ?, "updated_at" = ? WHERE "foos"."id" = 1 [["bar_id", 1], ["updated_at", Wed, 13 Nov 2013 04:43:39 UTC +00:00]]
2485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2486
+  (0.3ms) rollback transaction