ae_declarative_authorization 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95fe50f96bc6be18a1683dcd1ca9d9df7546ee39
|
4
|
+
data.tar.gz: 1c33e2c4a4665742b9f90e26ad6b528e8e377790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62e4d04bcb1aa7c1a6f7b0c1012bd2979db60abe309af7a5649250c14f5bbeb5c26ae302b226f5eab856b60ef969d740e76537ae805bf9443a40d2fa16acc7fc
|
7
|
+
data.tar.gz: 5957ecbd6e9440bc0f5df1476839f29e6523130988d050bc44727179ddcd2d0437bf9e51a5fed95d05a09335f103ea64137b5af4ffb5eba0ee44c2cbb3f2e6cc
|
data/Gemfile.lock
CHANGED
@@ -353,8 +353,7 @@ module Authorization
|
|
353
353
|
flattened_roles[role] = true
|
354
354
|
|
355
355
|
children = (hierarchy[role] || []) - ignore
|
356
|
-
ignore
|
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
|
data/log/test.log
CHANGED
@@ -44193,3 +44193,977 @@ CREATE TABLE 'users' (
|
|
44193
44193
|
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44194
44194
|
[1m[36mTestAttr Load (0.2ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2)))[0m
|
44195
44195
|
[1m[36mTestAttr Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44196
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE 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
|
+
)[0m
|
44204
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
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
|
+
)[0m
|
44218
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44219
|
+
|
44220
|
+
CREATE TABLE 'test_attr_throughs' (
|
44221
|
+
'id' INTEGER PRIMARY KEY NOT NULL,
|
44222
|
+
'test_attr_id' integer
|
44223
|
+
)[0m
|
44224
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
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
|
+
)[0m
|
44232
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44233
|
+
|
44234
|
+
CREATE TABLE 'n_way_join_items' (
|
44235
|
+
'id' INTEGER PRIMARY KEY NOT NULL
|
44236
|
+
)[0m
|
44237
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
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
|
+
)[0m
|
44245
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44246
|
+
|
44247
|
+
CREATE TABLE 'companies' (
|
44248
|
+
'id' INTEGER PRIMARY KEY NOT NULL,
|
44249
|
+
'country_id' integer,
|
44250
|
+
'type' text,
|
44251
|
+
'name' text
|
44252
|
+
)[0m
|
44253
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44254
|
+
|
44255
|
+
CREATE TABLE 'countries' (
|
44256
|
+
'id' INTEGER PRIMARY KEY NOT NULL,
|
44257
|
+
'name' text
|
44258
|
+
)[0m
|
44259
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44260
|
+
|
44261
|
+
CREATE TABLE 'users' (
|
44262
|
+
'id' INTEGER PRIMARY KEY NOT NULL
|
44263
|
+
)[0m
|
44264
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44265
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
44266
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44267
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44268
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("attr") VALUES (?)[0m [["attr", 2]]
|
44269
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44270
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44271
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("attr") VALUES (?)[0m [["attr", 3]]
|
44272
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44273
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2)))[0m
|
44274
|
+
[1m[36mTestAttr Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44275
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE 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
|
+
)[0m
|
44283
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
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
|
+
)[0m
|
44297
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44298
|
+
|
44299
|
+
CREATE TABLE 'test_attr_throughs' (
|
44300
|
+
'id' INTEGER PRIMARY KEY NOT NULL,
|
44301
|
+
'test_attr_id' integer
|
44302
|
+
)[0m
|
44303
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
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
|
+
)[0m
|
44311
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44312
|
+
|
44313
|
+
CREATE TABLE 'n_way_join_items' (
|
44314
|
+
'id' INTEGER PRIMARY KEY NOT NULL
|
44315
|
+
)[0m
|
44316
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
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
|
+
)[0m
|
44324
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44325
|
+
|
44326
|
+
CREATE TABLE 'companies' (
|
44327
|
+
'id' INTEGER PRIMARY KEY NOT NULL,
|
44328
|
+
'country_id' integer,
|
44329
|
+
'type' text,
|
44330
|
+
'name' text
|
44331
|
+
)[0m
|
44332
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44333
|
+
|
44334
|
+
CREATE TABLE 'countries' (
|
44335
|
+
'id' INTEGER PRIMARY KEY NOT NULL,
|
44336
|
+
'name' text
|
44337
|
+
)[0m
|
44338
|
+
[1m[35m (0.1ms)[0m [1m[35m
|
44339
|
+
|
44340
|
+
CREATE TABLE 'users' (
|
44341
|
+
'id' INTEGER PRIMARY KEY NOT NULL
|
44342
|
+
)[0m
|
44343
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44344
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
44345
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44346
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44347
|
+
[1m[36mTestModelSecurityModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_model_security_models" DEFAULT VALUES[0m
|
44348
|
+
[1m[36mTestAttr Update (0.1ms)[0m [1m[33mUPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ?[0m [["test_model_security_model_id", 1], ["id", 1]]
|
44349
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44350
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44351
|
+
[1m[36mTestModelSecurityModel Update (0.1ms)[0m [1m[33mUPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ?[0m [["attr_2", 2], ["id", 1]]
|
44352
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44353
|
+
[1m[36mTestModelSecurityModel Load (0.2ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44354
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44355
|
+
[1m[36mTestAttr Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ?[0m [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]]
|
44356
|
+
[1m[36mTestModelSecurityModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ?[0m [["id", 1]]
|
44357
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44358
|
+
[1m[36mTestModelSecurityModel Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44359
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44360
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
44361
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44362
|
+
[1m[36mTestModelSecurityModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_model_security_models" ("attr") VALUES (?)[0m [["attr", 2]]
|
44363
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44364
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44365
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "content"], ["created_at", "2018-12-20 20:31:14.823586"], ["updated_at", "2018-12-20 20:31:14.823586"]]
|
44366
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44367
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44368
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44369
|
+
[1m[36mTestModelSecurityModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_model_security_models" DEFAULT VALUES[0m
|
44370
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44371
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44372
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
44373
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44374
|
+
[1m[36mTestModelSecurityModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_model_security_models" DEFAULT VALUES[0m
|
44375
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44376
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44377
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
44378
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44379
|
+
[1m[36mTestModelSecurityModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_model_security_models" DEFAULT VALUES[0m
|
44380
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44381
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44382
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
44383
|
+
[1m[36mTestModelSecurityModel Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]]
|
44384
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44385
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44386
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44387
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
44388
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44389
|
+
[1m[36mBranch Create (0.1ms)[0m [1m[32mINSERT INTO "branches" DEFAULT VALUES[0m
|
44390
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44391
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44392
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("branch_id") VALUES (?)[0m [["branch_id", 1]]
|
44393
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44394
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44395
|
+
[1m[36mTestModelSecurityModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_model_security_models" DEFAULT VALUES[0m
|
44396
|
+
[1m[36mTestAttr Update (0.1ms)[0m [1m[33mUPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ?[0m [["test_model_security_model_id", 5], ["id", 2]]
|
44397
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44398
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44399
|
+
[1m[36mTestModelSecurityModel Update (0.1ms)[0m [1m[33mUPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ?[0m [["attr", 11], ["id", 5]]
|
44400
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44401
|
+
[1m[36mTestModelSecurityModel Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]]
|
44402
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44403
|
+
[1m[36mTestModelSecurityModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_model_security_models"[0m
|
44404
|
+
[1m[36mBranch Destroy (0.0ms)[0m [1m[31mDELETE FROM "branches"[0m
|
44405
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44406
|
+
[1m[36mTestModelSecurityModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_model_security_models" DEFAULT VALUES[0m
|
44407
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44408
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44409
|
+
[1m[36mTestModelSecurityModel Update (0.1ms)[0m [1m[33mUPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ?[0m [["attr_2", 2], ["id", 1]]
|
44410
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44411
|
+
[1m[36mTestModelSecurityModel Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44412
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44413
|
+
[1m[36mTestModelSecurityModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ?[0m [["id", 1]]
|
44414
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44415
|
+
[1m[36mTestModelSecurityModel Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44416
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44417
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
44418
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44419
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44420
|
+
[1m[36mTestModelSecurityModelWithFind Create (0.1ms)[0m [1m[32mINSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?)[0m [["test_attr_id", 1]]
|
44421
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44422
|
+
[1m[36mTestModelSecurityModelWithFind Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44423
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44424
|
+
[1m[36mTestModelSecurityModelWithFind Load (0.1ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ?[0m [["test_attr_id", 1]]
|
44425
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44426
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.867282"], ["updated_at", "2018-12-20 20:31:14.867282"]]
|
44427
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44428
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44429
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44430
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44431
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44432
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44433
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44434
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44435
|
+
[1m[36mTestModelSecurityModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_model_security_models" ("attr") VALUES (?)[0m [["attr", 2]]
|
44436
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44437
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44438
|
+
[1m[36mTestModelSecurityModelWithFind Create (0.0ms)[0m [1m[32mINSERT INTO "test_model_security_models" ("attr") VALUES (?)[0m [["attr", 2]]
|
44439
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44440
|
+
[1m[36mTestModelSecurityModel Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
44441
|
+
[1m[36mTestModelSecurityModelWithFind Load (0.0ms)[0m [1m[34mSELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
44442
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44443
|
+
[1m[36mTestModelSecurityModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_model_security_models" ("attr") VALUES (?)[0m [["attr", 2]]
|
44444
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44445
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44446
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
44447
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44448
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.879748"], ["updated_at", "2018-12-20 20:31:14.879748"]]
|
44449
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44450
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44451
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 1], ["attr", 0]]
|
44452
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44453
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44454
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44455
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44456
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44457
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 1], ["attr", 3]]
|
44458
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44459
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44460
|
+
[1m[36mBranch Create (0.1ms)[0m [1m[32mINSERT INTO "branches" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44461
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44462
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44463
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.884565"], ["updated_at", "2018-12-20 20:31:14.884565"]]
|
44464
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44465
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44466
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 2], ["attr", 2]]
|
44467
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44468
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44469
|
+
[1m[36mBranch Create (0.1ms)[0m [1m[32mINSERT INTO "branches" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44470
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44471
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44472
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.887043"], ["updated_at", "2018-12-20 20:31:14.887043"]]
|
44473
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44474
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44475
|
+
[1m[36mBranch Create (0.1ms)[0m [1m[32mINSERT INTO "branches" ("test_model_id") VALUES (?)[0m [["test_model_id", 3]]
|
44476
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44477
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ?[0m [["test_model_id", 1]]
|
44478
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ?[0m [["test_model_id", 2]]
|
44479
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ?[0m [["test_model_id", 3]]
|
44480
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44481
|
+
[1m[36mBranch Destroy (0.0ms)[0m [1m[31mDELETE FROM "branches"[0m
|
44482
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44483
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44484
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44485
|
+
[1m[36mTestAttrThrough Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attr_throughs"[0m
|
44486
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44487
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_1"], ["created_at", "2018-12-20 20:31:14.893138"], ["updated_at", "2018-12-20 20:31:14.893138"]]
|
44488
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44489
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44490
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_2"], ["created_at", "2018-12-20 20:31:14.894084"], ["updated_at", "2018-12-20 20:31:14.894084"]]
|
44491
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44492
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44493
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44494
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44495
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44496
|
+
[1m[36mTestAttrThrough Create (0.1ms)[0m [1m[32mINSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?)[0m [["test_attr_id", 1]]
|
44497
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44498
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44499
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44500
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44501
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44502
|
+
[1m[36mTestAttrThrough Create (0.0ms)[0m [1m[32mINSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?)[0m [["test_attr_id", 2]]
|
44503
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44504
|
+
[1m[36mTestAttrThrough Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44505
|
+
[1m[36mTestAttrThrough Load (0.0ms)[0m [1m[34mSELECT "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 ?[0m [["test_model_id", 2], ["LIMIT", 1]]
|
44506
|
+
[1m[35mSQL (0.5ms)[0m [1m[34mSELECT "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'))[0m
|
44507
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44508
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44509
|
+
[1m[36mTestAttrThrough Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attr_throughs"[0m
|
44510
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44511
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.918034"], ["updated_at", "2018-12-20 20:31:14.918034"]]
|
44512
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44513
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44514
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.919022"], ["updated_at", "2018-12-20 20:31:14.919022"]]
|
44515
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44516
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44517
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44518
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44519
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44520
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44521
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44522
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44523
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44524
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44525
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44526
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44527
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44528
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44529
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44530
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
44531
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44532
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "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)))[0m
|
44533
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44534
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
44535
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44536
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6)))[0m
|
44537
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44538
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44539
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44540
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.928163"], ["updated_at", "2018-12-20 20:31:14.928163"]]
|
44541
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44542
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44543
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.929017"], ["updated_at", "2018-12-20 20:31:14.929017"]]
|
44544
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44545
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44546
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.929742"], ["updated_at", "2018-12-20 20:31:14.929742"]]
|
44547
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44548
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))[0m
|
44549
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))[0m
|
44550
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44551
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44552
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_1_1"], ["created_at", "2018-12-20 20:31:14.932283"], ["updated_at", "2018-12-20 20:31:14.932283"]]
|
44553
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44554
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44555
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_1_2"], ["created_at", "2018-12-20 20:31:14.933123"], ["updated_at", "2018-12-20 20:31:14.933123"]]
|
44556
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44557
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44558
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?)[0m [["test_model_id", 1], ["test_another_model_id", 2]]
|
44559
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44560
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44561
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_2_1"], ["created_at", "2018-12-20 20:31:14.934943"], ["updated_at", "2018-12-20 20:31:14.934943"]]
|
44562
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44563
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44564
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_2_2"], ["created_at", "2018-12-20 20:31:14.935735"], ["updated_at", "2018-12-20 20:31:14.935735"]]
|
44565
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44566
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44567
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?)[0m [["test_model_id", 3], ["test_another_model_id", 4]]
|
44568
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44569
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44570
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 3]]
|
44571
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44572
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ?[0m [["test_model_id", 3], ["LIMIT", 1]]
|
44573
|
+
[1m[35mSQL (0.3ms)[0m [1m[34mSELECT "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))[0m
|
44574
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44575
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44576
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44577
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "bla"], ["created_at", "2018-12-20 20:31:14.943046"], ["updated_at", "2018-12-20 20:31:14.943046"]]
|
44578
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44579
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44580
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "bla"], ["created_at", "2018-12-20 20:31:14.943932"], ["updated_at", "2018-12-20 20:31:14.943932"]]
|
44581
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44582
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44583
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.944725"], ["updated_at", "2018-12-20 20:31:14.944725"]]
|
44584
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44585
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla'))[0m
|
44586
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44587
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44588
|
+
[1m[36mSmallCompany Create (0.1ms)[0m [1m[32mINSERT INTO "companies" ("type") VALUES (?)[0m [["type", "SmallCompany"]]
|
44589
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44590
|
+
[1m[36mSmallCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1))[0m
|
44591
|
+
[1m[36mSmallCompany Destroy (0.1ms)[0m [1m[31mDELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')[0m
|
44592
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44593
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "pickle"], ["created_at", "2018-12-20 20:31:14.949629"], ["updated_at", "2018-12-20 20:31:14.949629"]]
|
44594
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44595
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44596
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44597
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44598
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44599
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.952171"], ["updated_at", "2018-12-20 20:31:14.952171"]]
|
44600
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44601
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44602
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44603
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44604
|
+
[1m[35mSQL (0.1ms)[0m [1m[34mSELECT "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'))[0m
|
44605
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44606
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44607
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44608
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.956056"], ["updated_at", "2018-12-20 20:31:14.956056"]]
|
44609
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44610
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44611
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44612
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44613
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
44614
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44615
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44616
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44617
|
+
[1m[36mCompany Create (0.0ms)[0m [1m[32mINSERT INTO "companies" DEFAULT VALUES[0m
|
44618
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44619
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44620
|
+
[1m[36mBranch Create (0.0ms)[0m [1m[32mINSERT INTO "branches" ("name") VALUES (?)[0m [["name", "A Branch"]]
|
44621
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44622
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44623
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?)[0m [["branch_id", 1], ["company_id", 1]]
|
44624
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44625
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44626
|
+
[1m[36mCompany Create (0.0ms)[0m [1m[32mINSERT INTO "companies" DEFAULT VALUES[0m
|
44627
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44628
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44629
|
+
[1m[36mBranch Create (0.0ms)[0m [1m[32mINSERT INTO "branches" ("name") VALUES (?)[0m [["name", "Different Branch"]]
|
44630
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44631
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44632
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?)[0m [["branch_id", 2], ["company_id", 2]]
|
44633
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44634
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "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'))[0m
|
44635
|
+
[1m[36mCompany Destroy (0.0ms)[0m [1m[31mDELETE FROM "companies"[0m
|
44636
|
+
[1m[36mBranch Destroy (0.0ms)[0m [1m[31mDELETE FROM "branches"[0m
|
44637
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44638
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44639
|
+
[1m[36mTestAttrThrough Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attr_throughs"[0m
|
44640
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44641
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44642
|
+
[1m[36mTestAttrThrough Create (0.0ms)[0m [1m[32mINSERT INTO "test_attr_throughs" DEFAULT VALUES[0m
|
44643
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44644
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44645
|
+
[1m[36mNWayJoinItem Create (0.0ms)[0m [1m[32mINSERT INTO "n_way_join_items" DEFAULT VALUES[0m
|
44646
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44647
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44648
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["test_attr_through_id", 1], ["created_at", "2018-12-20 20:31:14.970220"], ["updated_at", "2018-12-20 20:31:14.970220"]]
|
44649
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44650
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44651
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?)[0m [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]
|
44652
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44653
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
44654
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44655
|
+
[1m[36mTestAttrThrough Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attr_throughs"[0m
|
44656
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44657
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44658
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.974001"], ["updated_at", "2018-12-20 20:31:14.974001"]]
|
44659
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44660
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44661
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44662
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44663
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44664
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.975869"], ["updated_at", "2018-12-20 20:31:14.975869"]]
|
44665
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44666
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44667
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44668
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44669
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1))[0m
|
44670
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44671
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44672
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44673
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.978667"], ["updated_at", "2018-12-20 20:31:14.978667"]]
|
44674
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44675
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44676
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.979352"], ["updated_at", "2018-12-20 20:31:14.979352"]]
|
44677
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44678
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44679
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44680
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44681
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44682
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44683
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44684
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44685
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44686
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44687
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44688
|
+
[1m[36mTestModel Load (0.2ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))[0m
|
44689
|
+
[1m[36mTestModel Load (0.2ms)[0m [1m[34mSELECT "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" = ?[0m [["id", 1]]
|
44690
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44691
|
+
[1m[36mTestAttr Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44692
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44693
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.986820"], ["updated_at", "2018-12-20 20:31:14.986820"]]
|
44694
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44695
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44696
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.987830"], ["updated_at", "2018-12-20 20:31:14.987830"]]
|
44697
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44698
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44699
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44700
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44701
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44702
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:14.990189"], ["updated_at", "2018-12-20 20:31:14.990189"]]
|
44703
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44704
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44705
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 3]]
|
44706
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44707
|
+
[1m[36mTestAttr Load (0.2ms)[0m [1m[34mSELECT "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)))[0m
|
44708
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44709
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44710
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44711
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_1_1"], ["created_at", "2018-12-20 20:31:14.994207"], ["updated_at", "2018-12-20 20:31:14.994207"]]
|
44712
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44713
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44714
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_1_2"], ["created_at", "2018-12-20 20:31:14.995170"], ["updated_at", "2018-12-20 20:31:14.995170"]]
|
44715
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44716
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44717
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?)[0m [["test_model_id", 1], ["test_another_model_id", 2]]
|
44718
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44719
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44720
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_2_1"], ["created_at", "2018-12-20 20:31:14.996932"], ["updated_at", "2018-12-20 20:31:14.996932"]]
|
44721
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44722
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44723
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "test_2_2"], ["created_at", "2018-12-20 20:31:14.997691"], ["updated_at", "2018-12-20 20:31:14.997691"]]
|
44724
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44725
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44726
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?)[0m [["test_model_id", 3], ["test_another_model_id", 4]]
|
44727
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44728
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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'))[0m
|
44729
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44730
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44731
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44732
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.006091"], ["updated_at", "2018-12-20 20:31:15.006091"]]
|
44733
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44734
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44735
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.007314"], ["updated_at", "2018-12-20 20:31:15.007314"]]
|
44736
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44737
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1))[0m
|
44738
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1))[0m
|
44739
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44740
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44741
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.009968"], ["updated_at", "2018-12-20 20:31:15.009968"]]
|
44742
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44743
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44744
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44745
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44746
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44747
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.011845"], ["updated_at", "2018-12-20 20:31:15.011845"]]
|
44748
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44749
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44750
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44751
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44752
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1))[0m
|
44753
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44754
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44755
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44756
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.015153"], ["updated_at", "2018-12-20 20:31:15.015153"]]
|
44757
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44758
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44759
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44760
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44761
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44762
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.017089"], ["updated_at", "2018-12-20 20:31:15.017089"]]
|
44763
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44764
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44765
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44766
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44767
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))[0m
|
44768
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44769
|
+
[1m[36mTestAttr Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44770
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44771
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.020478"], ["updated_at", "2018-12-20 20:31:15.020478"]]
|
44772
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44773
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44774
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "Content"], ["created_at", "2018-12-20 20:31:15.021431"], ["updated_at", "2018-12-20 20:31:15.021431"]]
|
44775
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44776
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
44777
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
44778
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44779
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44780
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.023981"], ["updated_at", "2018-12-20 20:31:15.023981"]]
|
44781
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44782
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
44783
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.024771"], ["updated_at", "2018-12-20 20:31:15.024771"]]
|
44784
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44785
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2))[0m
|
44786
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44787
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44788
|
+
[1m[36mCountry Create (0.1ms)[0m [1m[32mINSERT INTO "countries" ("name") VALUES (?)[0m [["name", "country_1"]]
|
44789
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44790
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44791
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["country_id", 1], ["created_at", "2018-12-20 20:31:15.030710"], ["updated_at", "2018-12-20 20:31:15.030710"]]
|
44792
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44793
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44794
|
+
[1m[36mCompany Create (0.1ms)[0m [1m[32mINSERT INTO "companies" ("country_id", "name") VALUES (?, ?)[0m [["country_id", 1], ["name", "company_1"]]
|
44795
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44796
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44797
|
+
[1m[36mBranch Create (0.1ms)[0m [1m[32mINSERT INTO "branches" ("company_id", "name") VALUES (?, ?)[0m [["company_id", 1], ["name", "branch_1"]]
|
44798
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44799
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44800
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("branch_id") VALUES (?)[0m [["branch_id", 1]]
|
44801
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44802
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44803
|
+
[1m[36mCompany Create (0.0ms)[0m [1m[32mINSERT INTO "companies" ("country_id", "name") VALUES (?, ?)[0m [["country_id", 1], ["name", "company_2"]]
|
44804
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44805
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44806
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("company_id") VALUES (?)[0m [["company_id", 2]]
|
44807
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44808
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ?[0m [["country_id", 1], ["LIMIT", 1]]
|
44809
|
+
[1m[35mSQL (0.2ms)[0m [1m[34mSELECT "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))[0m
|
44810
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44811
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44812
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44813
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.041363"], ["updated_at", "2018-12-20 20:31:15.041363"]]
|
44814
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44815
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44816
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.042226"], ["updated_at", "2018-12-20 20:31:15.042226"]]
|
44817
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44818
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))[0m
|
44819
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))[0m
|
44820
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44821
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44822
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.044528"], ["updated_at", "2018-12-20 20:31:15.044528"]]
|
44823
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44824
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44825
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.045261"], ["updated_at", "2018-12-20 20:31:15.045261"]]
|
44826
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44827
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44828
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44829
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44830
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44831
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44832
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44833
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44834
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1))[0m
|
44835
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44836
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44837
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44838
|
+
[1m[36mCompany Create (0.0ms)[0m [1m[32mINSERT INTO "companies" DEFAULT VALUES[0m
|
44839
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44840
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44841
|
+
[1m[36mBranch Create (0.0ms)[0m [1m[32mINSERT INTO "branches" ("company_id") VALUES (?)[0m [["company_id", 3]]
|
44842
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44843
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44844
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("branch_id") VALUES (?)[0m [["branch_id", 2]]
|
44845
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44846
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44847
|
+
[1m[36mBranch Create (0.1ms)[0m [1m[32mINSERT INTO "branches" ("company_id") VALUES (?)[0m [["company_id", 3]]
|
44848
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44849
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44850
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?)[0m [["branch_id", 3], ["attr", 2]]
|
44851
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44852
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44853
|
+
[1m[36mCompany Create (0.0ms)[0m [1m[32mINSERT INTO "companies" DEFAULT VALUES[0m
|
44854
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44855
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44856
|
+
[1m[36mBranch Create (0.0ms)[0m [1m[32mINSERT INTO "branches" ("company_id") VALUES (?)[0m [["company_id", 4]]
|
44857
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44858
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44859
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?)[0m [["branch_id", 4], ["attr", 3]]
|
44860
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44861
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
44862
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
44863
|
+
[1m[36mCompany Destroy (0.0ms)[0m [1m[31mDELETE FROM "companies"[0m
|
44864
|
+
[1m[36mBranch Destroy (0.0ms)[0m [1m[31mDELETE FROM "branches"[0m
|
44865
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44866
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44867
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
44868
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44869
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
44870
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44871
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44872
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.062409"], ["updated_at", "2018-12-20 20:31:15.062409"]]
|
44873
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44874
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44875
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.063218"], ["updated_at", "2018-12-20 20:31:15.063218"]]
|
44876
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44877
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))[0m
|
44878
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))[0m
|
44879
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44880
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44881
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
44882
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44883
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44884
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("attr") VALUES (?)[0m [["attr", 2]]
|
44885
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44886
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44887
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("attr") VALUES (?)[0m [["attr", 3]]
|
44888
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44889
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2)))[0m
|
44890
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44891
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44892
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.068583"], ["updated_at", "2018-12-20 20:31:15.068583"]]
|
44893
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44894
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44895
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44896
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44897
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1))[0m
|
44898
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44899
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44900
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44901
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.072130"], ["updated_at", "2018-12-20 20:31:15.072130"]]
|
44902
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44903
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44904
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.072926"], ["updated_at", "2018-12-20 20:31:15.072926"]]
|
44905
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44906
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44907
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44908
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44909
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44910
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 1], ["attr", 2]]
|
44911
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44912
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44913
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44914
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44915
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44916
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 2], ["attr", 2]]
|
44917
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44918
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44919
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "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))[0m [["attr", 1]]
|
44920
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44921
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "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))[0m [["attr", 1]]
|
44922
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44923
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44924
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44925
|
+
[1m[36mCountry Create (0.1ms)[0m [1m[32mINSERT INTO "countries" DEFAULT VALUES[0m
|
44926
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44927
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44928
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44930
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44931
|
+
[1m[36mTestModel Update (0.1ms)[0m [1m[33mUPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ?[0m [["country_id", 2], ["updated_at", "2018-12-20 20:31:15.084133"], ["id", 1]]
|
44932
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44933
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44934
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["test_attr_through_id", 1], ["created_at", "2018-12-20 20:31:15.085092"], ["updated_at", "2018-12-20 20:31:15.085092"]]
|
44935
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44936
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44937
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44939
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1))[0m
|
44940
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1))[0m
|
44941
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1))[0m [["country_id", 2]]
|
44942
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44943
|
+
[1m[36mCountry Destroy (0.0ms)[0m [1m[31mDELETE FROM "countries"[0m
|
44944
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44945
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.089816"], ["updated_at", "2018-12-20 20:31:15.089816"]]
|
44946
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44947
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44948
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.090588"], ["updated_at", "2018-12-20 20:31:15.090588"]]
|
44949
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44950
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1))[0m
|
44951
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44952
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44953
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.092264"], ["updated_at", "2018-12-20 20:31:15.092264"]]
|
44954
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44955
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44956
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.092962"], ["updated_at", "2018-12-20 20:31:15.092962"]]
|
44957
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44958
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44959
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?)[0m [["test_model_id", 1], ["test_another_model_id", 2]]
|
44960
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44961
|
+
[1m[35mSQL (0.2ms)[0m [1m[34mSELECT "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))[0m
|
44962
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44963
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44964
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44965
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["content", "first test"], ["created_at", "2018-12-20 20:31:15.097486"], ["updated_at", "2018-12-20 20:31:15.097486"]]
|
44966
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44967
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44968
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44969
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44970
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44971
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["country_id", 2], ["created_at", "2018-12-20 20:31:15.099325"], ["updated_at", "2018-12-20 20:31:15.099325"]]
|
44972
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44973
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44974
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44975
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
44976
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44977
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 2], ["attr", 2]]
|
44978
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44979
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44980
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
44981
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
44982
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 2], ["LIMIT", 1]]
|
44983
|
+
[1m[35mSQL (0.1ms)[0m [1m[34mSELECT "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))[0m
|
44984
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
44985
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
44986
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44987
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.106641"], ["updated_at", "2018-12-20 20:31:15.106641"]]
|
44988
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44989
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44990
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
44991
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44992
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44993
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.108469"], ["updated_at", "2018-12-20 20:31:15.108469"]]
|
44994
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44995
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44996
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 2]]
|
44997
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
44998
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
44999
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.110246"], ["updated_at", "2018-12-20 20:31:15.110246"]]
|
45000
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45001
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45002
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 3]]
|
45003
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45004
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1))[0m
|
45005
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45006
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45007
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45008
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?)[0m [["test_model_id", 1], ["test_another_model_id", 2]]
|
45009
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45010
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1))[0m
|
45011
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45012
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45013
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.115096"], ["updated_at", "2018-12-20 20:31:15.115096"]]
|
45014
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45015
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45016
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
45017
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45018
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45019
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45020
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45021
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45022
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45023
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45024
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.120911"], ["updated_at", "2018-12-20 20:31:15.120911"]]
|
45025
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45026
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45027
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.121844"], ["updated_at", "2018-12-20 20:31:15.121844"]]
|
45028
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45029
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1))[0m
|
45030
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45031
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45032
|
+
[1m[36mTestAttrThrough Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attr_throughs"[0m
|
45033
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45034
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45035
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.124141"], ["updated_at", "2018-12-20 20:31:15.124141"]]
|
45036
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45037
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45038
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
45039
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45040
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45041
|
+
[1m[36mTestAttrThrough Create (0.1ms)[0m [1m[32mINSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?)[0m [["test_attr_id", 1]]
|
45042
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45043
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45044
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 1], ["attr", 2]]
|
45045
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45046
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45047
|
+
[1m[36mTestAttrThrough Create (0.0ms)[0m [1m[32mINSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?)[0m [["test_attr_id", 2]]
|
45048
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45049
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45050
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.128681"], ["updated_at", "2018-12-20 20:31:15.128681"]]
|
45051
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45052
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45053
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 2], ["attr", 3]]
|
45054
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45055
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45056
|
+
[1m[36mTestAttrThrough Create (0.1ms)[0m [1m[32mINSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?)[0m [["test_attr_id", 3]]
|
45057
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45058
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45059
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45060
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45061
|
+
[1m[36mTestAttrThrough Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attr_throughs"[0m
|
45062
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45063
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45064
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.134053"], ["updated_at", "2018-12-20 20:31:15.134053"]]
|
45065
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45066
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45067
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.134791"], ["updated_at", "2018-12-20 20:31:15.134791"]]
|
45068
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45069
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))[0m
|
45070
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))[0m
|
45071
|
+
[1m[36mTestModel Destroy (0.1ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45072
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45073
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
45074
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45075
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45076
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.137775"], ["updated_at", "2018-12-20 20:31:15.137775"]]
|
45077
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45078
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45079
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
45080
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45081
|
+
[1m[36mTestAttr Load (0.0ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ?[0m [["test_model_id", 1], ["LIMIT", 1]]
|
45082
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45083
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45084
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45085
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45086
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45087
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.142482"], ["updated_at", "2018-12-20 20:31:15.142482"]]
|
45088
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45089
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45090
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
45091
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45092
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45093
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
45094
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45095
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))[0m
|
45096
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45097
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45098
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45099
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.146297"], ["updated_at", "2018-12-20 20:31:15.146297"]]
|
45100
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45101
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE ((1=1))[0m
|
45102
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45103
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45104
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.147966"], ["updated_at", "2018-12-20 20:31:15.147966"]]
|
45105
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45106
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45107
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
45108
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45109
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45110
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
45111
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45112
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45113
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" DEFAULT VALUES[0m
|
45114
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45115
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1))[0m [["test_model_id", 1]]
|
45116
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45117
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45118
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45119
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.152548"], ["updated_at", "2018-12-20 20:31:15.152548"]]
|
45120
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45121
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45122
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?)[0m [["test_model_id", 1], ["attr", 111]]
|
45123
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45124
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111))[0m
|
45125
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333))[0m
|
45126
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45127
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45128
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45129
|
+
[1m[36mTestModel Create (0.1ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.157057"], ["updated_at", "2018-12-20 20:31:15.157057"]]
|
45130
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45131
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45132
|
+
[1m[36mTestAttr Create (0.1ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_another_model_id") VALUES (?)[0m [["test_another_model_id", 1]]
|
45133
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45134
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45135
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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))[0m
|
45136
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45137
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45138
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45139
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.161214"], ["updated_at", "2018-12-20 20:31:15.161214"]]
|
45140
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45141
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45142
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.161928"], ["updated_at", "2018-12-20 20:31:15.161928"]]
|
45143
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45144
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45145
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.162636"], ["updated_at", "2018-12-20 20:31:15.162636"]]
|
45146
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45147
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2))[0m
|
45148
|
+
[1m[36mTestModel Load (0.1ms)[0m [1m[34mSELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2))[0m
|
45149
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45150
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45151
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
45152
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45153
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.165179"], ["updated_at", "2018-12-20 20:31:15.165179"]]
|
45154
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45155
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45156
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.165883"], ["updated_at", "2018-12-20 20:31:15.165883"]]
|
45157
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45158
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45159
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 1]]
|
45160
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45161
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45162
|
+
[1m[36mTestModel Create (0.0ms)[0m [1m[32mINSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 20:31:15.167565"], ["updated_at", "2018-12-20 20:31:15.167565"]]
|
45163
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45164
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
45165
|
+
[1m[36mTestAttr Create (0.0ms)[0m [1m[32mINSERT INTO "test_attrs" ("test_model_id") VALUES (?)[0m [["test_model_id", 3]]
|
45166
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
45167
|
+
[1m[36mTestAttr Load (0.1ms)[0m [1m[34mSELECT "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)))[0m
|
45168
|
+
[1m[36mTestModel Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_models"[0m
|
45169
|
+
[1m[36mTestAttr Destroy (0.0ms)[0m [1m[31mDELETE FROM "test_attrs"[0m
|
Binary file
|
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.
|
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-
|
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
|