ae_declarative_authorization 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0d0fea12722a781a9e4d05999ba3b78e41996de
4
- data.tar.gz: 9add1ce31d839fba9193feb0fee6641f1063203a
3
+ metadata.gz: 95fe50f96bc6be18a1683dcd1ca9d9df7546ee39
4
+ data.tar.gz: 1c33e2c4a4665742b9f90e26ad6b528e8e377790
5
5
  SHA512:
6
- metadata.gz: f5ad5bc0d8339262ba73f8118131cab2e351f8321acebee9ecd5ae32cd5f62cac83be8680ae7596f188de2b97972493bc7cbc8c35ad8c0c18eaba27b6a74ae8a
7
- data.tar.gz: 36255f7c1290a6b3a730a1b78d2890e592f71e8440f8a33ff6b7b7fdd0bde6ccba10ecb1b7546d54edb5444b452fb27bc4e2b3872c5615bfe0756aa26226ef71
6
+ metadata.gz: 62e4d04bcb1aa7c1a6f7b0c1012bd2979db60abe309af7a5649250c14f5bbeb5c26ae302b226f5eab856b60ef969d740e76537ae805bf9443a40d2fa16acc7fc
7
+ data.tar.gz: 5957ecbd6e9440bc0f5df1476839f29e6523130988d050bc44727179ddcd2d0437bf9e51a5fed95d05a09335f103ea64137b5af4ffb5eba0ee44c2cbb3f2e6cc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ae_declarative_authorization (0.9.1)
4
+ ae_declarative_authorization (0.9.2)
5
5
  blockenspiel (~> 0.5.0)
6
6
  rails (>= 4.2.5.2, < 6)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- ae_declarative_authorization (0.9.0)
4
+ ae_declarative_authorization (0.9.1)
5
5
  blockenspiel (~> 0.5.0)
6
6
  rails (>= 4.2.5.2, < 6)
7
7
 
@@ -353,8 +353,7 @@ module Authorization
353
353
  flattened_roles[role] = true
354
354
 
355
355
  children = (hierarchy[role] || []) - ignore
356
- ignore += flattened_roles.keys
357
- flattened_roles.merge!(flatten_roles(children, ignore: ignore)) if children.any?
356
+ flattened_roles.merge!(flatten_roles(children, ignore: ignore + [role])) if children.any?
358
357
  end
359
358
  flattened_roles
360
359
  end
@@ -1,3 +1,3 @@
1
1
  module DeclarativeAuthorization
2
- VERSION = '0.9.1'.freeze
2
+ VERSION = '0.9.2'.freeze
3
3
  end
data/log/test.log CHANGED
@@ -44193,3 +44193,977 @@ CREATE TABLE 'users' (
44193
44193
   (0.0ms) commit transaction
44194
44194
  TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2)))
44195
44195
  TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"
44196
+  (0.3ms) CREATE TABLE 'test_models' (
44197
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44198
+ 'test_attr_through_id' INTEGER,
44199
+ 'content' text,
44200
+ 'country_id' integer,
44201
+ 'created_at' datetime,
44202
+ 'updated_at' datetime
44203
+ )
44204
+  (0.1ms) 
44205
+
44206
+ CREATE TABLE 'test_attrs' (
44207
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44208
+ 'test_model_id' integer,
44209
+ 'test_another_model_id' integer,
44210
+ 'test_a_third_model_id' integer,
44211
+ 'branch_id' integer,
44212
+ 'company_id' integer,
44213
+ 'test_attr_through_id' INTEGER,
44214
+ 'n_way_join_item_id' INTEGER,
44215
+ 'test_model_security_model_id' integer,
44216
+ 'attr' integer default 1
44217
+ )
44218
+  (0.1ms) 
44219
+
44220
+ CREATE TABLE 'test_attr_throughs' (
44221
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44222
+ 'test_attr_id' integer
44223
+ )
44224
+  (0.1ms) 
44225
+
44226
+ CREATE TABLE 'test_model_security_models' (
44227
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44228
+ 'attr' integer default 1,
44229
+ 'attr_2' integer default 1,
44230
+ 'test_attr_id' integer
44231
+ )
44232
+  (0.1ms) 
44233
+
44234
+ CREATE TABLE 'n_way_join_items' (
44235
+ 'id' INTEGER PRIMARY KEY NOT NULL
44236
+ )
44237
+  (0.1ms) 
44238
+
44239
+ CREATE TABLE 'branches' (
44240
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44241
+ 'company_id' integer,
44242
+ 'test_model_id' integer,
44243
+ 'name' text
44244
+ )
44245
+  (0.1ms) 
44246
+
44247
+ CREATE TABLE 'companies' (
44248
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44249
+ 'country_id' integer,
44250
+ 'type' text,
44251
+ 'name' text
44252
+ )
44253
+  (0.1ms) 
44254
+
44255
+ CREATE TABLE 'countries' (
44256
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44257
+ 'name' text
44258
+ )
44259
+  (0.1ms) 
44260
+
44261
+ CREATE TABLE 'users' (
44262
+ 'id' INTEGER PRIMARY KEY NOT NULL
44263
+ )
44264
+  (0.1ms) begin transaction
44265
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES
44266
+  (0.0ms) commit transaction
44267
+  (0.0ms) begin transaction
44268
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]
44269
+  (0.1ms) commit transaction
44270
+  (0.0ms) begin transaction
44271
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]
44272
+  (0.0ms) commit transaction
44273
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2)))
44274
+ TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"
44275
+  (0.2ms) CREATE TABLE 'test_models' (
44276
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44277
+ 'test_attr_through_id' INTEGER,
44278
+ 'content' text,
44279
+ 'country_id' integer,
44280
+ 'created_at' datetime,
44281
+ 'updated_at' datetime
44282
+ )
44283
+  (0.1ms) 
44284
+
44285
+ CREATE TABLE 'test_attrs' (
44286
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44287
+ 'test_model_id' integer,
44288
+ 'test_another_model_id' integer,
44289
+ 'test_a_third_model_id' integer,
44290
+ 'branch_id' integer,
44291
+ 'company_id' integer,
44292
+ 'test_attr_through_id' INTEGER,
44293
+ 'n_way_join_item_id' INTEGER,
44294
+ 'test_model_security_model_id' integer,
44295
+ 'attr' integer default 1
44296
+ )
44297
+  (0.1ms) 
44298
+
44299
+ CREATE TABLE 'test_attr_throughs' (
44300
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44301
+ 'test_attr_id' integer
44302
+ )
44303
+  (0.1ms) 
44304
+
44305
+ CREATE TABLE 'test_model_security_models' (
44306
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44307
+ 'attr' integer default 1,
44308
+ 'attr_2' integer default 1,
44309
+ 'test_attr_id' integer
44310
+ )
44311
+  (0.1ms) 
44312
+
44313
+ CREATE TABLE 'n_way_join_items' (
44314
+ 'id' INTEGER PRIMARY KEY NOT NULL
44315
+ )
44316
+  (0.1ms) 
44317
+
44318
+ CREATE TABLE 'branches' (
44319
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44320
+ 'company_id' integer,
44321
+ 'test_model_id' integer,
44322
+ 'name' text
44323
+ )
44324
+  (0.1ms) 
44325
+
44326
+ CREATE TABLE 'companies' (
44327
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44328
+ 'country_id' integer,
44329
+ 'type' text,
44330
+ 'name' text
44331
+ )
44332
+  (0.1ms) 
44333
+
44334
+ CREATE TABLE 'countries' (
44335
+ 'id' INTEGER PRIMARY KEY NOT NULL,
44336
+ 'name' text
44337
+ )
44338
+  (0.1ms) 
44339
+
44340
+ CREATE TABLE 'users' (
44341
+ 'id' INTEGER PRIMARY KEY NOT NULL
44342
+ )
44343
+  (0.0ms) begin transaction
44344
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES
44345
+  (0.0ms) commit transaction
44346
+  (0.0ms) begin transaction
44347
+ TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES
44348
+ TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]
44349
+  (0.0ms) commit transaction
44350
+  (0.0ms) begin transaction
44351
+ TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]
44352
+  (0.1ms) commit transaction
44353
+ TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
44354
+  (0.0ms) begin transaction
44355
+ TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]]
44356
+ TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]
44357
+  (0.0ms) commit transaction
44358
+ TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
44359
+  (0.1ms) begin transaction
44360
+  (0.0ms) rollback transaction
44361
+  (0.0ms) begin transaction
44362
+ TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]
44363
+  (0.0ms) commit transaction
44364
+  (0.0ms) begin transaction
44365
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-12-20 20:31:14.823586"], ["updated_at", "2018-12-20 20:31:14.823586"]]
44366
+  (0.0ms) commit transaction
44367
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
44368
+  (0.0ms) begin transaction
44369
+ TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES
44370
+  (0.0ms) commit transaction
44371
+  (0.0ms) begin transaction
44372
+  (0.1ms) rollback transaction
44373
+  (0.0ms) begin transaction
44374
+ TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES
44375
+  (0.0ms) commit transaction
44376
+  (0.0ms) begin transaction
44377
+  (0.0ms) rollback transaction
44378
+  (0.0ms) begin transaction
44379
+ TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES
44380
+  (0.0ms) commit transaction
44381
+  (0.0ms) begin transaction
44382
+  (0.0ms) rollback transaction
44383
+ TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
44384
+  (0.0ms) begin transaction
44385
+  (0.1ms) commit transaction
44386
+  (0.0ms) begin transaction
44387
+  (0.0ms) rollback transaction
44388
+  (0.1ms) begin transaction
44389
+ Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES
44390
+  (0.0ms) commit transaction
44391
+  (0.0ms) begin transaction
44392
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]
44393
+  (0.0ms) commit transaction
44394
+  (0.0ms) begin transaction
44395
+ TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES
44396
+ TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]
44397
+  (0.0ms) commit transaction
44398
+  (0.0ms) begin transaction
44399
+ TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]
44400
+  (0.0ms) commit transaction
44401
+ TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
44402
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44403
+ TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models"
44404
+ Branch Destroy (0.0ms) DELETE FROM "branches"
44405
+  (0.0ms) begin transaction
44406
+ TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES
44407
+  (0.0ms) commit transaction
44408
+  (0.0ms) begin transaction
44409
+ TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]
44410
+  (0.0ms) commit transaction
44411
+ TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
44412
+  (0.0ms) begin transaction
44413
+ TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]
44414
+  (0.0ms) commit transaction
44415
+ TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
44416
+  (0.0ms) begin transaction
44417
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
44418
+  (0.0ms) commit transaction
44419
+  (0.0ms) begin transaction
44420
+ TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]
44421
+  (0.0ms) commit transaction
44422
+ TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
44423
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
44424
+ TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]
44425
+  (0.0ms) begin transaction
44426
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.867282"], ["updated_at", "2018-12-20 20:31:14.867282"]]
44427
+  (0.0ms) commit transaction
44428
+  (0.0ms) begin transaction
44429
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44430
+  (0.0ms) commit transaction
44431
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44432
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44433
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44434
+  (0.1ms) begin transaction
44435
+ TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]
44436
+  (0.0ms) commit transaction
44437
+  (0.0ms) begin transaction
44438
+ TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]
44439
+  (0.0ms) commit transaction
44440
+ TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
44441
+ TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
44442
+  (0.0ms) begin transaction
44443
+ TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]
44444
+  (0.0ms) commit transaction
44445
+  (0.0ms) begin transaction
44446
+  (0.0ms) rollback transaction
44447
+  (0.0ms) begin transaction
44448
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.879748"], ["updated_at", "2018-12-20 20:31:14.879748"]]
44449
+  (0.0ms) commit transaction
44450
+  (0.0ms) begin transaction
44451
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]
44452
+  (0.0ms) commit transaction
44453
+  (0.0ms) begin transaction
44454
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44455
+  (0.0ms) commit transaction
44456
+  (0.1ms) begin transaction
44457
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]
44458
+  (0.0ms) commit transaction
44459
+  (0.0ms) begin transaction
44460
+ Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44461
+  (0.0ms) commit transaction
44462
+  (0.0ms) begin transaction
44463
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.884565"], ["updated_at", "2018-12-20 20:31:14.884565"]]
44464
+  (0.0ms) commit transaction
44465
+  (0.0ms) begin transaction
44466
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]
44467
+  (0.0ms) commit transaction
44468
+  (0.0ms) begin transaction
44469
+ Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44470
+  (0.0ms) commit transaction
44471
+  (0.0ms) begin transaction
44472
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.887043"], ["updated_at", "2018-12-20 20:31:14.887043"]]
44473
+  (0.0ms) commit transaction
44474
+  (0.0ms) begin transaction
44475
+ Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]
44476
+  (0.0ms) commit transaction
44477
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]]
44478
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]]
44479
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]]
44480
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44481
+ Branch Destroy (0.0ms) DELETE FROM "branches"
44482
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44483
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44484
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44485
+ TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"
44486
+  (0.0ms) begin transaction
44487
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-12-20 20:31:14.893138"], ["updated_at", "2018-12-20 20:31:14.893138"]]
44488
+  (0.0ms) commit transaction
44489
+  (0.0ms) begin transaction
44490
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-12-20 20:31:14.894084"], ["updated_at", "2018-12-20 20:31:14.894084"]]
44491
+  (0.0ms) commit transaction
44492
+  (0.0ms) begin transaction
44493
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44494
+  (0.0ms) commit transaction
44495
+  (0.0ms) begin transaction
44496
+ TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]
44497
+  (0.0ms) commit transaction
44498
+  (0.0ms) begin transaction
44499
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44500
+  (0.0ms) commit transaction
44501
+  (0.0ms) begin transaction
44502
+ TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]
44503
+  (0.0ms) commit transaction
44504
+ TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44505
+ TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]
44506
+ SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2'))
44507
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
44508
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44509
+ TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"
44510
+  (0.0ms) begin transaction
44511
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.918034"], ["updated_at", "2018-12-20 20:31:14.918034"]]
44512
+  (0.0ms) commit transaction
44513
+  (0.0ms) begin transaction
44514
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.919022"], ["updated_at", "2018-12-20 20:31:14.919022"]]
44515
+  (0.0ms) commit transaction
44516
+  (0.0ms) begin transaction
44517
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44518
+  (0.0ms) commit transaction
44519
+  (0.0ms) begin transaction
44520
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44521
+  (0.0ms) commit transaction
44522
+  (0.1ms) begin transaction
44523
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44524
+  (0.0ms) commit transaction
44525
+  (0.0ms) begin transaction
44526
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44527
+  (0.0ms) commit transaction
44528
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44529
+  (0.0ms) begin transaction
44530
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
44531
+  (0.0ms) commit transaction
44532
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))
44533
+  (0.0ms) begin transaction
44534
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
44535
+  (0.0ms) commit transaction
44536
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6)))
44537
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44538
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44539
+  (0.0ms) begin transaction
44540
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.928163"], ["updated_at", "2018-12-20 20:31:14.928163"]]
44541
+  (0.0ms) commit transaction
44542
+  (0.0ms) begin transaction
44543
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.929017"], ["updated_at", "2018-12-20 20:31:14.929017"]]
44544
+  (0.0ms) commit transaction
44545
+  (0.0ms) begin transaction
44546
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.929742"], ["updated_at", "2018-12-20 20:31:14.929742"]]
44547
+  (0.0ms) commit transaction
44548
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))
44549
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))
44550
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
44551
+  (0.0ms) begin transaction
44552
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-20 20:31:14.932283"], ["updated_at", "2018-12-20 20:31:14.932283"]]
44553
+  (0.0ms) commit transaction
44554
+  (0.0ms) begin transaction
44555
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-20 20:31:14.933123"], ["updated_at", "2018-12-20 20:31:14.933123"]]
44556
+  (0.0ms) commit transaction
44557
+  (0.0ms) begin transaction
44558
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]
44559
+  (0.0ms) commit transaction
44560
+  (0.0ms) begin transaction
44561
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-20 20:31:14.934943"], ["updated_at", "2018-12-20 20:31:14.934943"]]
44562
+  (0.0ms) commit transaction
44563
+  (0.0ms) begin transaction
44564
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-20 20:31:14.935735"], ["updated_at", "2018-12-20 20:31:14.935735"]]
44565
+  (0.1ms) commit transaction
44566
+  (0.0ms) begin transaction
44567
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]
44568
+  (0.0ms) commit transaction
44569
+  (0.0ms) begin transaction
44570
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]
44571
+  (0.0ms) commit transaction
44572
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]
44573
+ SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3))
44574
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44575
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44576
+  (0.0ms) begin transaction
44577
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-20 20:31:14.943046"], ["updated_at", "2018-12-20 20:31:14.943046"]]
44578
+  (0.0ms) commit transaction
44579
+  (0.0ms) begin transaction
44580
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-20 20:31:14.943932"], ["updated_at", "2018-12-20 20:31:14.943932"]]
44581
+  (0.0ms) commit transaction
44582
+  (0.1ms) begin transaction
44583
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.944725"], ["updated_at", "2018-12-20 20:31:14.944725"]]
44584
+  (0.0ms) commit transaction
44585
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla'))
44586
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44587
+  (0.0ms) begin transaction
44588
+ SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]
44589
+  (0.0ms) commit transaction
44590
+ SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1))
44591
+ SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')
44592
+  (0.0ms) begin transaction
44593
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-12-20 20:31:14.949629"], ["updated_at", "2018-12-20 20:31:14.949629"]]
44594
+  (0.0ms) commit transaction
44595
+  (0.0ms) begin transaction
44596
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44597
+  (0.0ms) commit transaction
44598
+  (0.0ms) begin transaction
44599
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.952171"], ["updated_at", "2018-12-20 20:31:14.952171"]]
44600
+  (0.0ms) commit transaction
44601
+  (0.0ms) begin transaction
44602
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44603
+  (0.0ms) commit transaction
44604
+ SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog'))
44605
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44606
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44607
+  (0.0ms) begin transaction
44608
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.956056"], ["updated_at", "2018-12-20 20:31:14.956056"]]
44609
+  (0.0ms) commit transaction
44610
+  (0.0ms) begin transaction
44611
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44612
+  (0.0ms) commit transaction
44613
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))
44614
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44615
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44616
+  (0.0ms) begin transaction
44617
+ Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES
44618
+  (0.0ms) commit transaction
44619
+  (0.0ms) begin transaction
44620
+ Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]
44621
+  (0.0ms) commit transaction
44622
+  (0.0ms) begin transaction
44623
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]
44624
+  (0.0ms) commit transaction
44625
+  (0.0ms) begin transaction
44626
+ Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES
44627
+  (0.0ms) commit transaction
44628
+  (0.0ms) begin transaction
44629
+ Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]
44630
+  (0.0ms) commit transaction
44631
+  (0.0ms) begin transaction
44632
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]
44633
+  (0.0ms) commit transaction
44634
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch'))
44635
+ Company Destroy (0.0ms) DELETE FROM "companies"
44636
+ Branch Destroy (0.0ms) DELETE FROM "branches"
44637
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44638
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44639
+ TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"
44640
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44641
+  (0.0ms) begin transaction
44642
+ TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES
44643
+  (0.0ms) commit transaction
44644
+  (0.0ms) begin transaction
44645
+ NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES
44646
+  (0.0ms) commit transaction
44647
+  (0.0ms) begin transaction
44648
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-20 20:31:14.970220"], ["updated_at", "2018-12-20 20:31:14.970220"]]
44649
+  (0.0ms) commit transaction
44650
+  (0.0ms) begin transaction
44651
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]
44652
+  (0.0ms) commit transaction
44653
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1))
44654
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44655
+ TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"
44656
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44657
+  (0.0ms) begin transaction
44658
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.974001"], ["updated_at", "2018-12-20 20:31:14.974001"]]
44659
+  (0.0ms) commit transaction
44660
+  (0.0ms) begin transaction
44661
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44662
+  (0.0ms) commit transaction
44663
+  (0.0ms) begin transaction
44664
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.975869"], ["updated_at", "2018-12-20 20:31:14.975869"]]
44665
+  (0.0ms) commit transaction
44666
+  (0.0ms) begin transaction
44667
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44668
+  (0.0ms) commit transaction
44669
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1))
44670
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44671
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44672
+  (0.0ms) begin transaction
44673
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.978667"], ["updated_at", "2018-12-20 20:31:14.978667"]]
44674
+  (0.0ms) commit transaction
44675
+  (0.0ms) begin transaction
44676
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.979352"], ["updated_at", "2018-12-20 20:31:14.979352"]]
44677
+  (0.0ms) commit transaction
44678
+  (0.0ms) begin transaction
44679
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44680
+  (0.0ms) commit transaction
44681
+  (0.0ms) begin transaction
44682
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44683
+  (0.0ms) commit transaction
44684
+  (0.1ms) begin transaction
44685
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44686
+  (0.0ms) commit transaction
44687
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44688
+ TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))
44689
+ TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]]
44690
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44691
+ TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"
44692
+  (0.0ms) begin transaction
44693
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.986820"], ["updated_at", "2018-12-20 20:31:14.986820"]]
44694
+  (0.0ms) commit transaction
44695
+  (0.0ms) begin transaction
44696
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.987830"], ["updated_at", "2018-12-20 20:31:14.987830"]]
44697
+  (0.0ms) commit transaction
44698
+  (0.0ms) begin transaction
44699
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44700
+  (0.0ms) commit transaction
44701
+  (0.0ms) begin transaction
44702
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:14.990189"], ["updated_at", "2018-12-20 20:31:14.990189"]]
44703
+  (0.0ms) commit transaction
44704
+  (0.0ms) begin transaction
44705
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]
44706
+  (0.0ms) commit transaction
44707
+ TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2)))
44708
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44709
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44710
+  (0.0ms) begin transaction
44711
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-20 20:31:14.994207"], ["updated_at", "2018-12-20 20:31:14.994207"]]
44712
+  (0.0ms) commit transaction
44713
+  (0.0ms) begin transaction
44714
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-20 20:31:14.995170"], ["updated_at", "2018-12-20 20:31:14.995170"]]
44715
+  (0.0ms) commit transaction
44716
+  (0.0ms) begin transaction
44717
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]
44718
+  (0.0ms) commit transaction
44719
+  (0.0ms) begin transaction
44720
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-20 20:31:14.996932"], ["updated_at", "2018-12-20 20:31:14.996932"]]
44721
+  (0.0ms) commit transaction
44722
+  (0.0ms) begin transaction
44723
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-20 20:31:14.997691"], ["updated_at", "2018-12-20 20:31:14.997691"]]
44724
+  (0.0ms) commit transaction
44725
+  (0.0ms) begin transaction
44726
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]
44727
+  (0.0ms) commit transaction
44728
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1'))
44729
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44730
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44731
+  (0.0ms) begin transaction
44732
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.006091"], ["updated_at", "2018-12-20 20:31:15.006091"]]
44733
+  (0.0ms) commit transaction
44734
+  (0.0ms) begin transaction
44735
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.007314"], ["updated_at", "2018-12-20 20:31:15.007314"]]
44736
+  (0.0ms) commit transaction
44737
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1))
44738
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1))
44739
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44740
+  (0.0ms) begin transaction
44741
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.009968"], ["updated_at", "2018-12-20 20:31:15.009968"]]
44742
+  (0.0ms) commit transaction
44743
+  (0.0ms) begin transaction
44744
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44745
+  (0.0ms) commit transaction
44746
+  (0.0ms) begin transaction
44747
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.011845"], ["updated_at", "2018-12-20 20:31:15.011845"]]
44748
+  (0.1ms) commit transaction
44749
+  (0.0ms) begin transaction
44750
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44751
+  (0.0ms) commit transaction
44752
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1))
44753
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
44754
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44755
+  (0.0ms) begin transaction
44756
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.015153"], ["updated_at", "2018-12-20 20:31:15.015153"]]
44757
+  (0.0ms) commit transaction
44758
+  (0.0ms) begin transaction
44759
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44760
+  (0.0ms) commit transaction
44761
+  (0.0ms) begin transaction
44762
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.017089"], ["updated_at", "2018-12-20 20:31:15.017089"]]
44763
+  (0.0ms) commit transaction
44764
+  (0.0ms) begin transaction
44765
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44766
+  (0.0ms) commit transaction
44767
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))
44768
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44769
+ TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"
44770
+  (0.0ms) begin transaction
44771
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.020478"], ["updated_at", "2018-12-20 20:31:15.020478"]]
44772
+  (0.0ms) commit transaction
44773
+  (0.0ms) begin transaction
44774
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-12-20 20:31:15.021431"], ["updated_at", "2018-12-20 20:31:15.021431"]]
44775
+  (0.0ms) commit transaction
44776
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]]
44777
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]]
44778
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
44779
+  (0.0ms) begin transaction
44780
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.023981"], ["updated_at", "2018-12-20 20:31:15.023981"]]
44781
+  (0.0ms) commit transaction
44782
+  (0.1ms) begin transaction
44783
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.024771"], ["updated_at", "2018-12-20 20:31:15.024771"]]
44784
+  (0.0ms) commit transaction
44785
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2))
44786
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44787
+  (0.0ms) begin transaction
44788
+ Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]
44789
+  (0.0ms) commit transaction
44790
+  (0.0ms) begin transaction
44791
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-12-20 20:31:15.030710"], ["updated_at", "2018-12-20 20:31:15.030710"]]
44792
+  (0.0ms) commit transaction
44793
+  (0.0ms) begin transaction
44794
+ Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]
44795
+  (0.0ms) commit transaction
44796
+  (0.0ms) begin transaction
44797
+ Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]
44798
+  (0.0ms) commit transaction
44799
+  (0.0ms) begin transaction
44800
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]
44801
+  (0.0ms) commit transaction
44802
+  (0.0ms) begin transaction
44803
+ Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]
44804
+  (0.0ms) commit transaction
44805
+  (0.0ms) begin transaction
44806
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]
44807
+  (0.0ms) commit transaction
44808
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]
44809
+ SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1))
44810
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44811
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44812
+  (0.0ms) begin transaction
44813
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.041363"], ["updated_at", "2018-12-20 20:31:15.041363"]]
44814
+  (0.0ms) commit transaction
44815
+  (0.0ms) begin transaction
44816
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.042226"], ["updated_at", "2018-12-20 20:31:15.042226"]]
44817
+  (0.1ms) commit transaction
44818
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))
44819
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))
44820
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44821
+  (0.0ms) begin transaction
44822
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.044528"], ["updated_at", "2018-12-20 20:31:15.044528"]]
44823
+  (0.0ms) commit transaction
44824
+  (0.0ms) begin transaction
44825
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.045261"], ["updated_at", "2018-12-20 20:31:15.045261"]]
44826
+  (0.0ms) commit transaction
44827
+  (0.0ms) begin transaction
44828
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44829
+  (0.0ms) commit transaction
44830
+  (0.0ms) begin transaction
44831
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44832
+  (0.0ms) commit transaction
44833
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44834
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1))
44835
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44836
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44837
+  (0.0ms) begin transaction
44838
+ Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES
44839
+  (0.0ms) commit transaction
44840
+  (0.0ms) begin transaction
44841
+ Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]
44842
+  (0.0ms) commit transaction
44843
+  (0.0ms) begin transaction
44844
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]
44845
+  (0.0ms) commit transaction
44846
+  (0.0ms) begin transaction
44847
+ Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]
44848
+  (0.0ms) commit transaction
44849
+  (0.0ms) begin transaction
44850
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]
44851
+  (0.0ms) commit transaction
44852
+  (0.0ms) begin transaction
44853
+ Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES
44854
+  (0.1ms) commit transaction
44855
+  (0.0ms) begin transaction
44856
+ Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]
44857
+  (0.0ms) commit transaction
44858
+  (0.0ms) begin transaction
44859
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]
44860
+  (0.0ms) commit transaction
44861
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1))
44862
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4))
44863
+ Company Destroy (0.0ms) DELETE FROM "companies"
44864
+ Branch Destroy (0.0ms) DELETE FROM "branches"
44865
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44866
+  (0.0ms) begin transaction
44867
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
44868
+  (0.0ms) commit transaction
44869
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))
44870
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44871
+  (0.0ms) begin transaction
44872
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.062409"], ["updated_at", "2018-12-20 20:31:15.062409"]]
44873
+  (0.0ms) commit transaction
44874
+  (0.0ms) begin transaction
44875
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.063218"], ["updated_at", "2018-12-20 20:31:15.063218"]]
44876
+  (0.0ms) commit transaction
44877
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))
44878
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))
44879
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
44880
+  (0.0ms) begin transaction
44881
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
44882
+  (0.0ms) commit transaction
44883
+  (0.0ms) begin transaction
44884
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]
44885
+  (0.0ms) commit transaction
44886
+  (0.0ms) begin transaction
44887
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]
44888
+  (0.0ms) commit transaction
44889
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2)))
44890
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44891
+  (0.0ms) begin transaction
44892
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.068583"], ["updated_at", "2018-12-20 20:31:15.068583"]]
44893
+  (0.1ms) commit transaction
44894
+  (0.0ms) begin transaction
44895
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44896
+  (0.0ms) commit transaction
44897
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1))
44898
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44899
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44900
+  (0.0ms) begin transaction
44901
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.072130"], ["updated_at", "2018-12-20 20:31:15.072130"]]
44902
+  (0.0ms) commit transaction
44903
+  (0.0ms) begin transaction
44904
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.072926"], ["updated_at", "2018-12-20 20:31:15.072926"]]
44905
+  (0.0ms) commit transaction
44906
+  (0.0ms) begin transaction
44907
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44908
+  (0.0ms) commit transaction
44909
+  (0.0ms) begin transaction
44910
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]
44911
+  (0.0ms) commit transaction
44912
+  (0.0ms) begin transaction
44913
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44914
+  (0.0ms) commit transaction
44915
+  (0.0ms) begin transaction
44916
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]
44917
+  (0.0ms) commit transaction
44918
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44919
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]]
44920
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44921
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]]
44922
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44923
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44924
+  (0.0ms) begin transaction
44925
+ Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES
44926
+  (0.0ms) commit transaction
44927
+  (0.0ms) begin transaction
44928
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-12-20 20:31:15.082934"], ["updated_at", "2018-12-20 20:31:15.082934"]]
44929
+  (0.0ms) commit transaction
44930
+  (0.0ms) begin transaction
44931
+ TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-12-20 20:31:15.084133"], ["id", 1]]
44932
+  (0.0ms) commit transaction
44933
+  (0.0ms) begin transaction
44934
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-20 20:31:15.085092"], ["updated_at", "2018-12-20 20:31:15.085092"]]
44935
+  (0.0ms) commit transaction
44936
+  (0.0ms) begin transaction
44937
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-12-20 20:31:15.085910"], ["updated_at", "2018-12-20 20:31:15.085910"]]
44938
+  (0.0ms) commit transaction
44939
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1))
44940
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1))
44941
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]]
44942
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44943
+ Country Destroy (0.0ms) DELETE FROM "countries"
44944
+  (0.0ms) begin transaction
44945
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.089816"], ["updated_at", "2018-12-20 20:31:15.089816"]]
44946
+  (0.0ms) commit transaction
44947
+  (0.0ms) begin transaction
44948
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.090588"], ["updated_at", "2018-12-20 20:31:15.090588"]]
44949
+  (0.0ms) commit transaction
44950
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1))
44951
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44952
+  (0.0ms) begin transaction
44953
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.092264"], ["updated_at", "2018-12-20 20:31:15.092264"]]
44954
+  (0.0ms) commit transaction
44955
+  (0.0ms) begin transaction
44956
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.092962"], ["updated_at", "2018-12-20 20:31:15.092962"]]
44957
+  (0.0ms) commit transaction
44958
+  (0.0ms) begin transaction
44959
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]
44960
+  (0.0ms) commit transaction
44961
+ SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1))
44962
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44963
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44964
+  (0.0ms) begin transaction
44965
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-12-20 20:31:15.097486"], ["updated_at", "2018-12-20 20:31:15.097486"]]
44966
+  (0.1ms) commit transaction
44967
+  (0.0ms) begin transaction
44968
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44969
+  (0.0ms) commit transaction
44970
+  (0.0ms) begin transaction
44971
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-12-20 20:31:15.099325"], ["updated_at", "2018-12-20 20:31:15.099325"]]
44972
+  (0.0ms) commit transaction
44973
+  (0.0ms) begin transaction
44974
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44975
+  (0.1ms) commit transaction
44976
+  (0.0ms) begin transaction
44977
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]
44978
+  (0.0ms) commit transaction
44979
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44980
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1))
44981
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
44982
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]
44983
+ SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1))
44984
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
44985
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
44986
+  (0.0ms) begin transaction
44987
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.106641"], ["updated_at", "2018-12-20 20:31:15.106641"]]
44988
+  (0.0ms) commit transaction
44989
+  (0.0ms) begin transaction
44990
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
44991
+  (0.0ms) commit transaction
44992
+  (0.0ms) begin transaction
44993
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.108469"], ["updated_at", "2018-12-20 20:31:15.108469"]]
44994
+  (0.0ms) commit transaction
44995
+  (0.0ms) begin transaction
44996
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]
44997
+  (0.0ms) commit transaction
44998
+  (0.0ms) begin transaction
44999
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.110246"], ["updated_at", "2018-12-20 20:31:15.110246"]]
45000
+  (0.0ms) commit transaction
45001
+  (0.0ms) begin transaction
45002
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]
45003
+  (0.0ms) commit transaction
45004
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1))
45005
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45006
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45007
+  (0.0ms) begin transaction
45008
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]
45009
+  (0.0ms) commit transaction
45010
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1))
45011
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45012
+  (0.0ms) begin transaction
45013
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.115096"], ["updated_at", "2018-12-20 20:31:15.115096"]]
45014
+  (0.0ms) commit transaction
45015
+  (0.0ms) begin transaction
45016
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
45017
+  (0.0ms) commit transaction
45018
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))
45019
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))
45020
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
45021
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45022
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
45023
+  (0.0ms) begin transaction
45024
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.120911"], ["updated_at", "2018-12-20 20:31:15.120911"]]
45025
+  (0.0ms) commit transaction
45026
+  (0.0ms) begin transaction
45027
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.121844"], ["updated_at", "2018-12-20 20:31:15.121844"]]
45028
+  (0.0ms) commit transaction
45029
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1))
45030
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45031
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45032
+ TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"
45033
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45034
+  (0.0ms) begin transaction
45035
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.124141"], ["updated_at", "2018-12-20 20:31:15.124141"]]
45036
+  (0.0ms) commit transaction
45037
+  (0.0ms) begin transaction
45038
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
45039
+  (0.0ms) commit transaction
45040
+  (0.0ms) begin transaction
45041
+ TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]
45042
+  (0.0ms) commit transaction
45043
+  (0.0ms) begin transaction
45044
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]
45045
+  (0.0ms) commit transaction
45046
+  (0.0ms) begin transaction
45047
+ TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]
45048
+  (0.0ms) commit transaction
45049
+  (0.0ms) begin transaction
45050
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.128681"], ["updated_at", "2018-12-20 20:31:15.128681"]]
45051
+  (0.0ms) commit transaction
45052
+  (0.0ms) begin transaction
45053
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]
45054
+  (0.0ms) commit transaction
45055
+  (0.0ms) begin transaction
45056
+ TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]
45057
+  (0.0ms) commit transaction
45058
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1))
45059
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4))
45060
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
45061
+ TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"
45062
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45063
+  (0.0ms) begin transaction
45064
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.134053"], ["updated_at", "2018-12-20 20:31:15.134053"]]
45065
+  (0.0ms) commit transaction
45066
+  (0.0ms) begin transaction
45067
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.134791"], ["updated_at", "2018-12-20 20:31:15.134791"]]
45068
+  (0.0ms) commit transaction
45069
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))
45070
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))
45071
+ TestModel Destroy (0.1ms) DELETE FROM "test_models"
45072
+  (0.0ms) begin transaction
45073
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
45074
+  (0.0ms) commit transaction
45075
+  (0.0ms) begin transaction
45076
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.137775"], ["updated_at", "2018-12-20 20:31:15.137775"]]
45077
+  (0.0ms) commit transaction
45078
+  (0.0ms) begin transaction
45079
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
45080
+  (0.0ms) commit transaction
45081
+ TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]
45082
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))
45083
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))
45084
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45085
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45086
+  (0.0ms) begin transaction
45087
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.142482"], ["updated_at", "2018-12-20 20:31:15.142482"]]
45088
+  (0.0ms) commit transaction
45089
+  (0.0ms) begin transaction
45090
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
45091
+  (0.0ms) commit transaction
45092
+  (0.0ms) begin transaction
45093
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
45094
+  (0.0ms) commit transaction
45095
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))
45096
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45097
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45098
+  (0.0ms) begin transaction
45099
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.146297"], ["updated_at", "2018-12-20 20:31:15.146297"]]
45100
+  (0.0ms) commit transaction
45101
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))
45102
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45103
+  (0.0ms) begin transaction
45104
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.147966"], ["updated_at", "2018-12-20 20:31:15.147966"]]
45105
+  (0.0ms) commit transaction
45106
+  (0.0ms) begin transaction
45107
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
45108
+  (0.0ms) commit transaction
45109
+  (0.0ms) begin transaction
45110
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
45111
+  (0.0ms) commit transaction
45112
+  (0.0ms) begin transaction
45113
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES
45114
+  (0.0ms) commit transaction
45115
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]]
45116
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45117
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45118
+  (0.0ms) begin transaction
45119
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.152548"], ["updated_at", "2018-12-20 20:31:15.152548"]]
45120
+  (0.0ms) commit transaction
45121
+  (0.0ms) begin transaction
45122
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]
45123
+  (0.0ms) commit transaction
45124
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111))
45125
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333))
45126
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45127
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45128
+  (0.0ms) begin transaction
45129
+ TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.157057"], ["updated_at", "2018-12-20 20:31:15.157057"]]
45130
+  (0.0ms) commit transaction
45131
+  (0.0ms) begin transaction
45132
+ TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]
45133
+  (0.0ms) commit transaction
45134
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1))
45135
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111))
45136
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45137
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45138
+  (0.0ms) begin transaction
45139
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.161214"], ["updated_at", "2018-12-20 20:31:15.161214"]]
45140
+  (0.0ms) commit transaction
45141
+  (0.0ms) begin transaction
45142
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.161928"], ["updated_at", "2018-12-20 20:31:15.161928"]]
45143
+  (0.0ms) commit transaction
45144
+  (0.0ms) begin transaction
45145
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.162636"], ["updated_at", "2018-12-20 20:31:15.162636"]]
45146
+  (0.0ms) commit transaction
45147
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2))
45148
+ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2))
45149
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45150
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45151
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
45152
+  (0.0ms) begin transaction
45153
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.165179"], ["updated_at", "2018-12-20 20:31:15.165179"]]
45154
+  (0.0ms) commit transaction
45155
+  (0.0ms) begin transaction
45156
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.165883"], ["updated_at", "2018-12-20 20:31:15.165883"]]
45157
+  (0.0ms) commit transaction
45158
+  (0.0ms) begin transaction
45159
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]
45160
+  (0.0ms) commit transaction
45161
+  (0.0ms) begin transaction
45162
+ TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 20:31:15.167565"], ["updated_at", "2018-12-20 20:31:15.167565"]]
45163
+  (0.0ms) commit transaction
45164
+  (0.0ms) begin transaction
45165
+ TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]
45166
+  (0.0ms) commit transaction
45167
+ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2)))
45168
+ TestModel Destroy (0.0ms) DELETE FROM "test_models"
45169
+ TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_declarative_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-19 00:00:00.000000000 Z
12
+ date: 2018-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blockenspiel
@@ -94,6 +94,7 @@ files:
94
94
  - log/test.log
95
95
  - pkg/ae_declarative_authorization-0.9.0.gem
96
96
  - pkg/ae_declarative_authorization-0.9.0.tim1.gem
97
+ - pkg/ae_declarative_authorization-0.9.1.gem
97
98
  - test/authorization_test.rb
98
99
  - test/controller_filter_resource_access_test.rb
99
100
  - test/database.yml