invitational 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -39121,3 +39121,2883 @@ Migrating to CreateInvitations (20130528220144)
39121
39121
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39122
39122
   (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39123
39123
  TRANSACTION (0.1ms) rollback transaction
39124
+  (0.8ms) SELECT sqlite_version(*)
39125
+  (0.0ms) SELECT sqlite_version(*)
39126
+  (0.1ms) DROP TABLE IF EXISTS "users"
39127
+  (1.9ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
39128
+  (0.1ms) DROP TABLE IF EXISTS "grandparents"
39129
+  (1.7ms) CREATE TABLE "grandparents" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
39130
+  (0.1ms) DROP TABLE IF EXISTS "entities"
39131
+  (2.0ms) CREATE TABLE "entities" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "grandparent_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
39132
+  (0.1ms) DROP TABLE IF EXISTS "children"
39133
+  (1.8ms) CREATE TABLE "children" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "entity_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
39134
+  (0.1ms) DROP TABLE IF EXISTS "other_entities"
39135
+  (2.1ms) CREATE TABLE "other_entities" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
39136
+  (0.1ms) DROP TABLE IF EXISTS "system_things"
39137
+  (1.8ms) CREATE TABLE "system_things" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
39138
+  (2.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
39139
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
39140
+ TRANSACTION (0.1ms) begin transaction
39141
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-10-05 13:35:56.772240"], ["updated_at", "2021-10-05 13:35:56.772240"]]
39142
+ TRANSACTION (1.3ms) commit transaction
39143
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
39144
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
39145
+ Migrating to CreateInvitations (20130528220144)
39146
+ TRANSACTION (0.0ms) begin transaction
39147
+  (0.2ms) CREATE TABLE "invitations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "role" varchar, "invitable_type" varchar, "invitable_id" integer, "user_id" integer, "date_sent" datetime, "date_accepted" datetime, "claim_hash" varchar, "created_at" datetime, "updated_at" datetime)
39148
+  (0.1ms) CREATE INDEX "index_invitations_on_invitable_id" ON "invitations" ("invitable_id")
39149
+  (0.1ms) CREATE INDEX "index_invitations_on_invitable_type" ON "invitations" ("invitable_type")
39150
+  (0.1ms) CREATE INDEX "index_invitations_on_user_id" ON "invitations" ("user_id")
39151
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130528220144"]]
39152
+ TRANSACTION (1.9ms) commit transaction
39153
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
39154
+  (0.1ms) SELECT sqlite_version(*)
39155
+ TRANSACTION (0.0ms) begin transaction
39156
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39157
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.073873"], ["updated_at", "2021-10-05 13:35:57.073873"]]
39158
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39159
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39160
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.084276"], ["updated_at", "2021-10-05 13:35:57.084276"]]
39161
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39162
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39163
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.107437"], ["date_accepted", "2021-10-05 13:35:57.085257"], ["claim_hash", "yZwf0tARnDIy9K3MuYrqAupuySV4NPFKCtjSppC6"], ["created_at", "2021-10-05 13:35:57.107385"], ["updated_at", "2021-10-05 13:35:57.107385"]]
39164
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39165
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39166
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.108751"], ["updated_at", "2021-10-05 13:35:57.108751"]]
39167
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39168
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39169
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.109569"], ["updated_at", "2021-10-05 13:35:57.109569"]]
39170
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39171
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39172
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.110535"], ["date_accepted", "2021-10-05 13:35:57.110211"], ["claim_hash", "UcAxOTfqnw3jgUYZBqMpfGogpOtcwTYElaOHPX3T"], ["created_at", "2021-10-05 13:35:57.110514"], ["updated_at", "2021-10-05 13:35:57.110514"]]
39173
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39174
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39175
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.111461"], ["updated_at", "2021-10-05 13:35:57.111461"]]
39176
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39177
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39178
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.116601"], ["updated_at", "2021-10-05 13:35:57.116601"]]
39179
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39180
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39181
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.122646"], ["id", 2]]
39182
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39183
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39184
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.124000"], ["date_accepted", "2021-10-05 13:35:57.123623"], ["claim_hash", "FdKswqeKr5abHIJ7p1iMYGkJo8cgWit8CJBBO5E2"], ["created_at", "2021-10-05 13:35:57.123979"], ["updated_at", "2021-10-05 13:35:57.123979"]]
39185
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39186
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39187
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.124963"], ["updated_at", "2021-10-05 13:35:57.124963"]]
39188
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39189
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39190
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.125814"], ["claim_hash", "IaLWuJ1LyVOb2DUglNHS5U7jyToF8MUNglHjG7rt"], ["created_at", "2021-10-05 13:35:57.125796"], ["updated_at", "2021-10-05 13:35:57.125796"]]
39191
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39192
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39193
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.126656"], ["updated_at", "2021-10-05 13:35:57.126656"]]
39194
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39195
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39196
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.127458"], ["claim_hash", "1pyeR1S8b4KRrlNU7nNAEu51SOnfsoCINd9gsyMN"], ["created_at", "2021-10-05 13:35:57.127439"], ["updated_at", "2021-10-05 13:35:57.127439"]]
39197
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39198
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39199
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39200
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
39201
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39202
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39203
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
39204
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39205
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39206
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39207
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39208
+ TRANSACTION (0.1ms) rollback transaction
39209
+ TRANSACTION (0.0ms) begin transaction
39210
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39211
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.137314"], ["updated_at", "2021-10-05 13:35:57.137314"]]
39212
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39213
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39214
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.138335"], ["updated_at", "2021-10-05 13:35:57.138335"]]
39215
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39216
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39217
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.139524"], ["date_accepted", "2021-10-05 13:35:57.139137"], ["claim_hash", "JG18LH7ZqCl6kef4l18qNEolfWssFkJUOmR9W4yV"], ["created_at", "2021-10-05 13:35:57.139503"], ["updated_at", "2021-10-05 13:35:57.139503"]]
39218
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39219
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39220
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.140503"], ["updated_at", "2021-10-05 13:35:57.140503"]]
39221
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39222
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39223
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.141288"], ["updated_at", "2021-10-05 13:35:57.141288"]]
39224
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39225
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39226
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.142196"], ["date_accepted", "2021-10-05 13:35:57.141902"], ["claim_hash", "Lui061hmk1qPDIXNOr7ZFk0XeRhIKezfCu46SniJ"], ["created_at", "2021-10-05 13:35:57.142178"], ["updated_at", "2021-10-05 13:35:57.142178"]]
39227
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39228
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39229
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.143064"], ["updated_at", "2021-10-05 13:35:57.143064"]]
39230
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39231
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39232
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.143814"], ["updated_at", "2021-10-05 13:35:57.143814"]]
39233
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39234
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39235
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.144797"], ["id", 2]]
39236
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39237
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39238
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.145739"], ["date_accepted", "2021-10-05 13:35:57.145434"], ["claim_hash", "mU1ZN10DpZcV3kgCYwYPJeNEnZPs9E2kBLjucgAY"], ["created_at", "2021-10-05 13:35:57.145721"], ["updated_at", "2021-10-05 13:35:57.145721"]]
39239
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39240
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39241
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.146622"], ["updated_at", "2021-10-05 13:35:57.146622"]]
39242
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39243
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39244
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.147475"], ["claim_hash", "IZWSMfA249ly95Jvl4wVOfNv0KcCz9yqIHOhPHAw"], ["created_at", "2021-10-05 13:35:57.147455"], ["updated_at", "2021-10-05 13:35:57.147455"]]
39245
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39246
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39247
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.148461"], ["updated_at", "2021-10-05 13:35:57.148461"]]
39248
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39249
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39250
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.149374"], ["claim_hash", "QzWC0jLTUTPiZwE8H3pR9BkysXlFm70iccs8UhYm"], ["created_at", "2021-10-05 13:35:57.149354"], ["updated_at", "2021-10-05 13:35:57.149354"]]
39251
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39252
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39253
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
39254
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
39255
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39256
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
39257
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
39258
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39259
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
39260
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
39261
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39262
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
39263
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39264
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
39265
+ TRANSACTION (0.1ms) rollback transaction
39266
+ TRANSACTION (0.0ms) begin transaction
39267
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39268
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.157261"], ["updated_at", "2021-10-05 13:35:57.157261"]]
39269
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39270
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39271
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.158307"], ["updated_at", "2021-10-05 13:35:57.158307"]]
39272
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39273
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39274
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.159324"], ["date_accepted", "2021-10-05 13:35:57.158971"], ["claim_hash", "tfkdBt45BM8Iq1tUYIveciY02iMGaDqX7hLpJdwG"], ["created_at", "2021-10-05 13:35:57.159305"], ["updated_at", "2021-10-05 13:35:57.159305"]]
39275
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39276
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39277
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.160278"], ["updated_at", "2021-10-05 13:35:57.160278"]]
39278
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39279
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39280
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.161062"], ["updated_at", "2021-10-05 13:35:57.161062"]]
39281
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39282
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39283
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.161985"], ["date_accepted", "2021-10-05 13:35:57.161686"], ["claim_hash", "4fhMXEqyXmyvAP8a2NKNKwsgufieacEA3NxbOMJk"], ["created_at", "2021-10-05 13:35:57.161965"], ["updated_at", "2021-10-05 13:35:57.161965"]]
39284
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39285
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39286
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.162898"], ["updated_at", "2021-10-05 13:35:57.162898"]]
39287
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39288
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39289
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.163758"], ["updated_at", "2021-10-05 13:35:57.163758"]]
39290
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39291
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39292
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.165050"], ["id", 2]]
39293
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39294
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39295
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.166095"], ["date_accepted", "2021-10-05 13:35:57.165749"], ["claim_hash", "rTsUQjpxv9eQhTIp3s2gKg7RfVfPydRAEdUPKPTw"], ["created_at", "2021-10-05 13:35:57.166075"], ["updated_at", "2021-10-05 13:35:57.166075"]]
39296
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39297
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39298
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.167063"], ["updated_at", "2021-10-05 13:35:57.167063"]]
39299
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39300
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39301
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.167970"], ["claim_hash", "tslP3QdXqy37iWtNrQhdEblFqL2bFXhzrcJw7UzC"], ["created_at", "2021-10-05 13:35:57.167949"], ["updated_at", "2021-10-05 13:35:57.167949"]]
39302
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39303
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39304
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.169023"], ["updated_at", "2021-10-05 13:35:57.169023"]]
39305
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39306
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39307
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.170135"], ["claim_hash", "L1fRqi6jEpuOBLKVvROqknNXn0SDRpmTSkHtUUUi"], ["created_at", "2021-10-05 13:35:57.170114"], ["updated_at", "2021-10-05 13:35:57.170114"]]
39308
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39309
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39310
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39311
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39312
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39313
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39314
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39315
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39316
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
39317
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39318
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
39319
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39320
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
39321
+ TRANSACTION (0.1ms) rollback transaction
39322
+ TRANSACTION (0.0ms) begin transaction
39323
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39324
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.177530"], ["updated_at", "2021-10-05 13:35:57.177530"]]
39325
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39326
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39327
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.178535"], ["updated_at", "2021-10-05 13:35:57.178535"]]
39328
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39329
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39330
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.179563"], ["date_accepted", "2021-10-05 13:35:57.179211"], ["claim_hash", "REzM8AkgxrNQHTaL8O2U2gLiW95lkdVacZrzgOxS"], ["created_at", "2021-10-05 13:35:57.179543"], ["updated_at", "2021-10-05 13:35:57.179543"]]
39331
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39332
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39333
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.180540"], ["updated_at", "2021-10-05 13:35:57.180540"]]
39334
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39335
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39336
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.181336"], ["updated_at", "2021-10-05 13:35:57.181336"]]
39337
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39338
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39339
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.182269"], ["date_accepted", "2021-10-05 13:35:57.181950"], ["claim_hash", "VyP3uZBf3lu0iGI0OgVI6ygD4Pyq7SJ0Q24EqgPA"], ["created_at", "2021-10-05 13:35:57.182251"], ["updated_at", "2021-10-05 13:35:57.182251"]]
39340
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39341
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39342
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.183168"], ["updated_at", "2021-10-05 13:35:57.183168"]]
39343
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39344
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39345
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.183933"], ["updated_at", "2021-10-05 13:35:57.183933"]]
39346
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39347
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39348
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.184920"], ["id", 2]]
39349
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39350
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39351
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.185854"], ["date_accepted", "2021-10-05 13:35:57.185552"], ["claim_hash", "RHuheoGpHB0C74VG6ZqwXNhwJ0VbRBWpMEH4D1h8"], ["created_at", "2021-10-05 13:35:57.185836"], ["updated_at", "2021-10-05 13:35:57.185836"]]
39352
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39353
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39354
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.186751"], ["updated_at", "2021-10-05 13:35:57.186751"]]
39355
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39356
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39357
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.187573"], ["claim_hash", "Ft2Q2mkI9OUXhZNgj7eVR4mMTzhAA67WSD59iYiP"], ["created_at", "2021-10-05 13:35:57.187554"], ["updated_at", "2021-10-05 13:35:57.187554"]]
39358
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39359
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39360
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.188421"], ["updated_at", "2021-10-05 13:35:57.188421"]]
39361
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39362
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39363
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.189428"], ["claim_hash", "9DPsgj5ynFIAMXA8ybmWQ5EiM7WASOSz7g9U69uM"], ["created_at", "2021-10-05 13:35:57.189408"], ["updated_at", "2021-10-05 13:35:57.189408"]]
39364
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39365
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39366
+ SystemThing Create (0.1ms) INSERT INTO "system_things" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A System Object"], ["created_at", "2021-10-05 13:35:57.192732"], ["updated_at", "2021-10-05 13:35:57.192732"]]
39367
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39368
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 5]]
39369
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 5]]
39370
+ TRANSACTION (0.1ms) rollback transaction
39371
+ TRANSACTION (0.0ms) begin transaction
39372
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39373
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.195811"], ["updated_at", "2021-10-05 13:35:57.195811"]]
39374
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39375
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39376
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.196875"], ["updated_at", "2021-10-05 13:35:57.196875"]]
39377
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39378
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39379
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.197895"], ["date_accepted", "2021-10-05 13:35:57.197541"], ["claim_hash", "Soylh1omPAt0xEYW9mp5CJgCr6yeILC3N7PKXSDS"], ["created_at", "2021-10-05 13:35:57.197875"], ["updated_at", "2021-10-05 13:35:57.197875"]]
39380
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39381
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39382
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.198824"], ["updated_at", "2021-10-05 13:35:57.198824"]]
39383
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39384
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39385
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.199592"], ["updated_at", "2021-10-05 13:35:57.199592"]]
39386
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39387
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39388
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.200582"], ["date_accepted", "2021-10-05 13:35:57.200276"], ["claim_hash", "KIflslkVERUQdJhdrSrxOLAQ3v3UUN2AS5w1JPBK"], ["created_at", "2021-10-05 13:35:57.200563"], ["updated_at", "2021-10-05 13:35:57.200563"]]
39389
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39390
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39391
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.201541"], ["updated_at", "2021-10-05 13:35:57.201541"]]
39392
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39393
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39394
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.202446"], ["updated_at", "2021-10-05 13:35:57.202446"]]
39395
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39396
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39397
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.203582"], ["id", 2]]
39398
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39399
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39400
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.204624"], ["date_accepted", "2021-10-05 13:35:57.204276"], ["claim_hash", "6Xp4MahGxEDwwUbHwD2ZLasTATBzs27uE1kUa4SO"], ["created_at", "2021-10-05 13:35:57.204604"], ["updated_at", "2021-10-05 13:35:57.204604"]]
39401
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39402
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39403
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.205667"], ["updated_at", "2021-10-05 13:35:57.205667"]]
39404
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39405
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39406
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.206642"], ["claim_hash", "PEznh85Om9qvlMRMWqJpBySoKiic5ypeskqeiu4Z"], ["created_at", "2021-10-05 13:35:57.206622"], ["updated_at", "2021-10-05 13:35:57.206622"]]
39407
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39408
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39409
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.207527"], ["updated_at", "2021-10-05 13:35:57.207527"]]
39410
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39411
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39412
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.208409"], ["claim_hash", "DAfco1J4wWpaYwusr3GgHpqkC36MUxGA6E6CwieB"], ["created_at", "2021-10-05 13:35:57.208390"], ["updated_at", "2021-10-05 13:35:57.208390"]]
39413
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39414
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
39415
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
39416
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39417
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:35:57.213334"], ["updated_at", "2021-10-05 13:35:57.213334"]]
39418
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39419
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39420
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:35:57.215072"], ["id", 1]]
39421
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39422
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
39423
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39424
+ OtherEntity Create (0.1ms) INSERT INTO "other_entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test other entity"], ["created_at", "2021-10-05 13:35:57.218691"], ["updated_at", "2021-10-05 13:35:57.218691"]]
39425
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39426
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
39427
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39428
+ SystemThing Create (0.1ms) INSERT INTO "system_things" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A System Object"], ["created_at", "2021-10-05 13:35:57.220111"], ["updated_at", "2021-10-05 13:35:57.220111"]]
39429
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39430
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
39431
+ TRANSACTION (0.1ms) rollback transaction
39432
+ TRANSACTION (0.0ms) begin transaction
39433
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39434
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.222454"], ["updated_at", "2021-10-05 13:35:57.222454"]]
39435
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39436
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39437
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.223461"], ["updated_at", "2021-10-05 13:35:57.223461"]]
39438
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39439
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39440
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.224518"], ["date_accepted", "2021-10-05 13:35:57.224148"], ["claim_hash", "TcEyHaJuQCrIbrHKfZqduPutr9ApxiLzMkUsciik"], ["created_at", "2021-10-05 13:35:57.224498"], ["updated_at", "2021-10-05 13:35:57.224498"]]
39441
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39442
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39443
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.225478"], ["updated_at", "2021-10-05 13:35:57.225478"]]
39444
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39445
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39446
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.226432"], ["updated_at", "2021-10-05 13:35:57.226432"]]
39447
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39448
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39449
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.227525"], ["date_accepted", "2021-10-05 13:35:57.227182"], ["claim_hash", "OdwLF7ihlxS3PovsK9TaUb2BO7evOlfwVIWhGqzL"], ["created_at", "2021-10-05 13:35:57.227505"], ["updated_at", "2021-10-05 13:35:57.227505"]]
39450
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39451
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39452
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.228465"], ["updated_at", "2021-10-05 13:35:57.228465"]]
39453
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39454
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39455
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.229249"], ["updated_at", "2021-10-05 13:35:57.229249"]]
39456
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39457
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39458
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.230256"], ["id", 2]]
39459
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39460
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39461
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.231199"], ["date_accepted", "2021-10-05 13:35:57.230885"], ["claim_hash", "jp2AY6Qn1oXU9nGfZAqF98LdabtPcOLzkO9oLKXz"], ["created_at", "2021-10-05 13:35:57.231182"], ["updated_at", "2021-10-05 13:35:57.231182"]]
39462
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39463
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39464
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.232111"], ["updated_at", "2021-10-05 13:35:57.232111"]]
39465
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39466
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39467
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.232993"], ["claim_hash", "RTEEm8SDGViRH3OKK34xY0sO8DAz7qFkAHdu093P"], ["created_at", "2021-10-05 13:35:57.232974"], ["updated_at", "2021-10-05 13:35:57.232974"]]
39468
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39469
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39470
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.233840"], ["updated_at", "2021-10-05 13:35:57.233840"]]
39471
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39472
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39473
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.234722"], ["claim_hash", "xDJLYE7klthdaHyj0nM1VXg1552xtKQwbvmpabOI"], ["created_at", "2021-10-05 13:35:57.234703"], ["updated_at", "2021-10-05 13:35:57.234703"]]
39474
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39475
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39476
+ OtherEntity Create (0.1ms) INSERT INTO "other_entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test other entity"], ["created_at", "2021-10-05 13:35:57.235923"], ["updated_at", "2021-10-05 13:35:57.235923"]]
39477
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39478
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
39479
+ TRANSACTION (0.1ms) rollback transaction
39480
+ TRANSACTION (0.0ms) begin transaction
39481
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39482
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.238795"], ["updated_at", "2021-10-05 13:35:57.238795"]]
39483
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39484
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39485
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.240034"], ["updated_at", "2021-10-05 13:35:57.240034"]]
39486
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39487
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39488
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.241257"], ["date_accepted", "2021-10-05 13:35:57.240884"], ["claim_hash", "WJUTLshJmXq4B3Kn7BqbYNyOq22Q3SrxRBf1eih6"], ["created_at", "2021-10-05 13:35:57.241237"], ["updated_at", "2021-10-05 13:35:57.241237"]]
39489
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39490
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39491
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.242229"], ["updated_at", "2021-10-05 13:35:57.242229"]]
39492
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39493
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39494
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.243010"], ["updated_at", "2021-10-05 13:35:57.243010"]]
39495
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39496
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39497
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.243925"], ["date_accepted", "2021-10-05 13:35:57.243628"], ["claim_hash", "gNu6DjFqfLbKV4q0BvvFeRfzjsijyPUlrSBfaTdD"], ["created_at", "2021-10-05 13:35:57.243901"], ["updated_at", "2021-10-05 13:35:57.243901"]]
39498
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39499
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39500
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.244826"], ["updated_at", "2021-10-05 13:35:57.244826"]]
39501
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39502
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39503
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.245596"], ["updated_at", "2021-10-05 13:35:57.245596"]]
39504
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39505
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39506
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.246563"], ["id", 2]]
39507
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39508
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39509
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.247575"], ["date_accepted", "2021-10-05 13:35:57.247255"], ["claim_hash", "6RPG6S5lTB1O62YrRGCZGqJdKBFVILzmjE2ZL4WN"], ["created_at", "2021-10-05 13:35:57.247552"], ["updated_at", "2021-10-05 13:35:57.247552"]]
39510
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39511
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39512
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.248518"], ["updated_at", "2021-10-05 13:35:57.248518"]]
39513
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39514
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39515
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.249347"], ["claim_hash", "v6dH6nDzZGUAPKo78pmPUv6s65BhAbkscZ9AifyP"], ["created_at", "2021-10-05 13:35:57.249328"], ["updated_at", "2021-10-05 13:35:57.249328"]]
39516
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39517
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39518
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.250171"], ["updated_at", "2021-10-05 13:35:57.250171"]]
39519
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39520
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39521
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.250987"], ["claim_hash", "ZPBr782p61JdefTw36iu5KZ8SOMWSCQbuqpA9Ycn"], ["created_at", "2021-10-05 13:35:57.250969"], ["updated_at", "2021-10-05 13:35:57.250969"]]
39522
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39523
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39524
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:35:57.252007"], ["updated_at", "2021-10-05 13:35:57.252007"]]
39525
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39526
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39527
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:35:57.252965"], ["id", 1]]
39528
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39529
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39530
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 2]]
39531
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
39532
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
39533
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
39534
+ TRANSACTION (0.1ms) rollback transaction
39535
+ TRANSACTION (0.0ms) begin transaction
39536
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39537
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.257217"], ["updated_at", "2021-10-05 13:35:57.257217"]]
39538
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39539
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39540
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.258528"], ["updated_at", "2021-10-05 13:35:57.258528"]]
39541
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39542
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39543
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.259596"], ["date_accepted", "2021-10-05 13:35:57.259229"], ["claim_hash", "IBie6Ur8bodOtIH4bov91Ow0u2EodY4zojcyxqsL"], ["created_at", "2021-10-05 13:35:57.259576"], ["updated_at", "2021-10-05 13:35:57.259576"]]
39544
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39545
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39546
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.260542"], ["updated_at", "2021-10-05 13:35:57.260542"]]
39547
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39548
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39549
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.261306"], ["updated_at", "2021-10-05 13:35:57.261306"]]
39550
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39551
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39552
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.262222"], ["date_accepted", "2021-10-05 13:35:57.261929"], ["claim_hash", "RlGMV89Aob3EOuLWOodoOlu95xlA2fo0mZvbswSQ"], ["created_at", "2021-10-05 13:35:57.262204"], ["updated_at", "2021-10-05 13:35:57.262204"]]
39553
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39554
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39555
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.263103"], ["updated_at", "2021-10-05 13:35:57.263103"]]
39556
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39557
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39558
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.263879"], ["updated_at", "2021-10-05 13:35:57.263879"]]
39559
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39560
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39561
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.264885"], ["id", 2]]
39562
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39563
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39564
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.265812"], ["date_accepted", "2021-10-05 13:35:57.265510"], ["claim_hash", "srDrIPaJuBjyokRgNLkFCer8LTT0mmCEM7c2zrG3"], ["created_at", "2021-10-05 13:35:57.265793"], ["updated_at", "2021-10-05 13:35:57.265793"]]
39565
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39566
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39567
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.266691"], ["updated_at", "2021-10-05 13:35:57.266691"]]
39568
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39569
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39570
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.267519"], ["claim_hash", "S7qfDTCooC8htcyk3H34Dr6aPLA8xsIob0foxXC0"], ["created_at", "2021-10-05 13:35:57.267501"], ["updated_at", "2021-10-05 13:35:57.267501"]]
39571
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39572
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39573
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.268496"], ["updated_at", "2021-10-05 13:35:57.268496"]]
39574
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39575
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39576
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.269539"], ["claim_hash", "S6NkLf3Hk2xTFyfYNuzVig7zbIMoprFN6zacMSy9"], ["created_at", "2021-10-05 13:35:57.269519"], ["updated_at", "2021-10-05 13:35:57.269519"]]
39577
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39578
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39579
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:35:57.270684"], ["updated_at", "2021-10-05 13:35:57.270684"]]
39580
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
39581
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39582
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:35:57.271845"], ["id", 1]]
39583
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39584
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
39585
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 3]]
39586
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
39587
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 3]]
39588
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
39589
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 3]]
39590
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
39591
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 3]]
39592
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 3], ["LIMIT", 1]]
39593
+ TRANSACTION (0.1ms) rollback transaction
39594
+ TRANSACTION (0.0ms) begin transaction
39595
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39596
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.277110"], ["updated_at", "2021-10-05 13:35:57.277110"]]
39597
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39598
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39599
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.278100"], ["updated_at", "2021-10-05 13:35:57.278100"]]
39600
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39601
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39602
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.279129"], ["date_accepted", "2021-10-05 13:35:57.278766"], ["claim_hash", "h60zMhywiXtM102R5DKnzlZSFYNdMW5tc9Uwn6K8"], ["created_at", "2021-10-05 13:35:57.279107"], ["updated_at", "2021-10-05 13:35:57.279107"]]
39603
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39604
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39605
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.280059"], ["updated_at", "2021-10-05 13:35:57.280059"]]
39606
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39607
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39608
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.280880"], ["updated_at", "2021-10-05 13:35:57.280880"]]
39609
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39610
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39611
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.281837"], ["date_accepted", "2021-10-05 13:35:57.281526"], ["claim_hash", "I0xQhG76k6jaS0acsrJ73MI3AApzuazPrNLOx5G5"], ["created_at", "2021-10-05 13:35:57.281818"], ["updated_at", "2021-10-05 13:35:57.281818"]]
39612
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39613
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39614
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:35:57.282748"], ["updated_at", "2021-10-05 13:35:57.282748"]]
39615
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39616
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39617
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:35:57.283520"], ["updated_at", "2021-10-05 13:35:57.283520"]]
39618
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39619
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39620
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:35:57.284531"], ["id", 2]]
39621
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39622
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39623
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:35:57.285463"], ["date_accepted", "2021-10-05 13:35:57.285160"], ["claim_hash", "KYl2yFHwNn1BMv953DLM6AaQbo8AmDBwUqb20yuj"], ["created_at", "2021-10-05 13:35:57.285444"], ["updated_at", "2021-10-05 13:35:57.285444"]]
39624
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39625
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39626
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.286343"], ["updated_at", "2021-10-05 13:35:57.286343"]]
39627
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39628
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39629
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:35:57.287134"], ["claim_hash", "VwDQGSg1tSUkTcujF4mokFxLsXheATYCyoeQwlRM"], ["created_at", "2021-10-05 13:35:57.287117"], ["updated_at", "2021-10-05 13:35:57.287117"]]
39630
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39631
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39632
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.287972"], ["updated_at", "2021-10-05 13:35:57.287972"]]
39633
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39634
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39635
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:35:57.289209"], ["claim_hash", "PrIxtS5O1WjLarptYfQjIrTmha7ewxZ3trWSVA59"], ["created_at", "2021-10-05 13:35:57.289184"], ["updated_at", "2021-10-05 13:35:57.289184"]]
39636
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39637
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39638
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:35:57.290481"], ["updated_at", "2021-10-05 13:35:57.290481"]]
39639
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39640
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39641
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:35:57.291613"], ["id", 1]]
39642
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39643
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39644
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 1]]
39645
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39646
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39647
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39648
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39649
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39650
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 1]]
39651
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39652
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 1]]
39653
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39654
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39655
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39656
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
39657
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39658
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 1]]
39659
+ TRANSACTION (0.1ms) rollback transaction
39660
+ TRANSACTION (0.0ms) begin transaction
39661
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39662
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39663
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.299396"], ["updated_at", "2021-10-05 13:35:57.299396"]]
39664
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39665
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39666
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.300388"], ["updated_at", "2021-10-05 13:35:57.300388"]]
39667
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39668
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39669
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.301390"], ["date_accepted", "2021-10-05 13:35:57.301042"], ["claim_hash", "lNJcZIbvvui3uowDgq7ZzLlZ5SmA5LmpuvQCfnse"], ["created_at", "2021-10-05 13:35:57.301371"], ["updated_at", "2021-10-05 13:35:57.301371"]]
39670
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39671
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "users"."id" = "invitations"."user_id" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? AND (invitations.role = 'admin') AND "users"."id" = ? LIMIT ? [["invitable_id", 1], ["invitable_type", "Entity"], ["id", 1], ["LIMIT", 1]]
39672
+ TRANSACTION (0.1ms) rollback transaction
39673
+ TRANSACTION (0.0ms) begin transaction
39674
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39675
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39676
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.310032"], ["updated_at", "2021-10-05 13:35:57.310032"]]
39677
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39678
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39679
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.310996"], ["updated_at", "2021-10-05 13:35:57.310996"]]
39680
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39681
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39682
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39683
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.312616"], ["date_accepted", "2021-10-05 13:35:57.312410"], ["claim_hash", "MEBP6GPxcmeniW9yaR5q7KmpYq54e1Jc8rzCgvlU"], ["created_at", "2021-10-05 13:35:57.312596"], ["updated_at", "2021-10-05 13:35:57.312596"]]
39684
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39685
+ TRANSACTION (0.1ms) rollback transaction
39686
+ TRANSACTION (0.0ms) begin transaction
39687
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39688
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39689
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.314645"], ["updated_at", "2021-10-05 13:35:57.314645"]]
39690
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39691
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39692
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.315548"], ["updated_at", "2021-10-05 13:35:57.315548"]]
39693
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39694
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39695
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.316516"], ["date_accepted", "2021-10-05 13:35:57.316203"], ["claim_hash", "X9gXW8f9uulpLEhuuQIi6DL36Ssan6Z5rAqQuTV9"], ["created_at", "2021-10-05 13:35:57.316497"], ["updated_at", "2021-10-05 13:35:57.316497"]]
39696
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39697
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39698
+ TRANSACTION (0.1ms) rollback transaction
39699
+ TRANSACTION (0.0ms) begin transaction
39700
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39701
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39702
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.319258"], ["updated_at", "2021-10-05 13:35:57.319258"]]
39703
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39704
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39705
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.320588"], ["updated_at", "2021-10-05 13:35:57.320588"]]
39706
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39707
+ TRANSACTION (0.1ms) rollback transaction
39708
+ TRANSACTION (0.0ms) begin transaction
39709
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39710
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39711
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.323031"], ["updated_at", "2021-10-05 13:35:57.323031"]]
39712
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39713
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39714
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.324033"], ["updated_at", "2021-10-05 13:35:57.324033"]]
39715
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39716
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39717
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.325105"], ["date_accepted", "2021-10-05 13:35:57.324745"], ["claim_hash", "2eGOdFUhMObAsimmmvzpo0AKglhVnH0rJjWjEKeu"], ["created_at", "2021-10-05 13:35:57.325085"], ["updated_at", "2021-10-05 13:35:57.325085"]]
39718
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39719
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39720
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? [["invitable_id", 1], ["invitable_type", "Entity"]]
39721
+ Invitation Destroy (0.1ms) DELETE FROM "invitations" WHERE "invitations"."id" = ? [["id", 1]]
39722
+ Entity Destroy (0.0ms) DELETE FROM "entities" WHERE "entities"."id" = ? [["id", 1]]
39723
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39724
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
39725
+ TRANSACTION (0.1ms) rollback transaction
39726
+ TRANSACTION (0.0ms) begin transaction
39727
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39728
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39729
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.329477"], ["updated_at", "2021-10-05 13:35:57.329477"]]
39730
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39731
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39732
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test999@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.330566"], ["claim_hash", "heVBDP4jsH4Vi8ISJA0QFPFHJecHehcaFSQrX1tW"], ["created_at", "2021-10-05 13:35:57.330545"], ["updated_at", "2021-10-05 13:35:57.330545"]]
39733
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39734
+ TRANSACTION (0.1ms) rollback transaction
39735
+ TRANSACTION (0.0ms) begin transaction
39736
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39737
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39738
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.332599"], ["updated_at", "2021-10-05 13:35:57.332599"]]
39739
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39740
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39741
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test999@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.333775"], ["claim_hash", "U8EdAJyuzQdIhrHPnZXcPkYgu9CNMzTsFabMRPaA"], ["created_at", "2021-10-05 13:35:57.333752"], ["updated_at", "2021-10-05 13:35:57.333752"]]
39742
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39743
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39744
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.334910"], ["updated_at", "2021-10-05 13:35:57.334910"]]
39745
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39746
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39747
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test999@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 2], ["date_sent", "2021-10-05 13:35:57.335959"], ["claim_hash", "GcvGExUd4v3WpRWUNcarsTDaItDHonjpuXescDS6"], ["created_at", "2021-10-05 13:35:57.335932"], ["updated_at", "2021-10-05 13:35:57.335932"]]
39748
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39749
+ TRANSACTION (0.1ms) rollback transaction
39750
+ TRANSACTION (0.0ms) begin transaction
39751
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39752
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39753
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.338033"], ["updated_at", "2021-10-05 13:35:57.338033"]]
39754
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39755
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39756
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.339218"], ["updated_at", "2021-10-05 13:35:57.339218"]]
39757
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39758
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39759
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.340206"], ["claim_hash", "N60xcVReKjnB82UjhALc7rqRxCfbuhwZwh1fpmS3"], ["created_at", "2021-10-05 13:35:57.340179"], ["updated_at", "2021-10-05 13:35:57.340179"]]
39760
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39761
+ TRANSACTION (0.1ms) rollback transaction
39762
+ TRANSACTION (0.0ms) begin transaction
39763
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39764
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39765
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.342215"], ["updated_at", "2021-10-05 13:35:57.342215"]]
39766
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39767
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39768
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.343182"], ["claim_hash", "jmZd5CA1LTizm1o8oHo4EA8wBWzFIOjlihQeQiPq"], ["created_at", "2021-10-05 13:35:57.343162"], ["updated_at", "2021-10-05 13:35:57.343162"]]
39769
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39770
+ TRANSACTION (0.1ms) rollback transaction
39771
+ TRANSACTION (0.0ms) begin transaction
39772
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39773
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39774
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.345074"], ["updated_at", "2021-10-05 13:35:57.345074"]]
39775
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39776
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39777
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.345965"], ["updated_at", "2021-10-05 13:35:57.345965"]]
39778
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39779
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39780
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.346874"], ["claim_hash", "z51Gq3T96m4zLW34myCUSf3h50SzWXrUGlKB9GmZ"], ["created_at", "2021-10-05 13:35:57.346854"], ["updated_at", "2021-10-05 13:35:57.346854"]]
39781
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39782
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39783
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.347789"], ["updated_at", "2021-10-05 13:35:57.347789"]]
39784
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39785
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39786
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.348565"], ["updated_at", "2021-10-05 13:35:57.348565"]]
39787
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39788
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39789
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.349463"], ["date_accepted", "2021-10-05 13:35:57.349180"], ["claim_hash", "4JbZ83BIjvzknVn8POIyxQEq9jUZMtVDeHZFNJni"], ["created_at", "2021-10-05 13:35:57.349445"], ["updated_at", "2021-10-05 13:35:57.349445"]]
39790
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39791
+ TRANSACTION (0.1ms) rollback transaction
39792
+ TRANSACTION (0.0ms) begin transaction
39793
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39794
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39795
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.351705"], ["updated_at", "2021-10-05 13:35:57.351705"]]
39796
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39797
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39798
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.352911"], ["claim_hash", "xIifzoayI3fCdN0Gr59MFYHhLZs8yqjv5RpoBR9R"], ["created_at", "2021-10-05 13:35:57.352881"], ["updated_at", "2021-10-05 13:35:57.352881"]]
39799
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39800
+ TRANSACTION (0.1ms) rollback transaction
39801
+ TRANSACTION (0.0ms) begin transaction
39802
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39803
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39804
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.355308"], ["updated_at", "2021-10-05 13:35:57.355308"]]
39805
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39806
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39807
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.356419"], ["updated_at", "2021-10-05 13:35:57.356419"]]
39808
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39809
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39810
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.357383"], ["claim_hash", "CENGWbQer1OfUOMJhXBPEqqJA28iWnD1tVSgJ2jy"], ["created_at", "2021-10-05 13:35:57.357360"], ["updated_at", "2021-10-05 13:35:57.357360"]]
39811
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39812
+ TRANSACTION (0.1ms) rollback transaction
39813
+ TRANSACTION (0.0ms) begin transaction
39814
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39815
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39816
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.359402"], ["updated_at", "2021-10-05 13:35:57.359402"]]
39817
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39818
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39819
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.360323"], ["updated_at", "2021-10-05 13:35:57.360323"]]
39820
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39821
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39822
+ Invitation Create (1.4ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.369155"], ["date_accepted", "2021-10-05 13:35:57.360984"], ["claim_hash", "DOzlBCGQdXx3B7PPOJzbDYS3ISb3WAxyDgtg2fdz"], ["created_at", "2021-10-05 13:35:57.361289"], ["updated_at", "2021-10-05 13:35:57.361289"]]
39823
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39824
+ TRANSACTION (0.1ms) rollback transaction
39825
+ TRANSACTION (0.0ms) begin transaction
39826
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39827
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39828
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.373301"], ["updated_at", "2021-10-05 13:35:57.373301"]]
39829
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39830
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39831
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.374307"], ["updated_at", "2021-10-05 13:35:57.374307"]]
39832
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39833
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39834
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.375246"], ["claim_hash", "CJjE0Cz6H9sS07g22Upey14KdFZoAyXPzUCt6VKS"], ["created_at", "2021-10-05 13:35:57.375226"], ["updated_at", "2021-10-05 13:35:57.375226"]]
39835
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39836
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'CJjE0Cz6H9sS07g22Upey14KdFZoAyXPzUCt6VKS') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
39837
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39838
+ Entity Load (0.1ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
39839
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:35:57.376545"], ["updated_at", "2021-10-05 13:35:57.377554"], ["id", 1]]
39840
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39841
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
39842
+ TRANSACTION (0.1ms) rollback transaction
39843
+ TRANSACTION (0.0ms) begin transaction
39844
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39845
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39846
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.380034"], ["updated_at", "2021-10-05 13:35:57.380034"]]
39847
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39848
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39849
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 3"], ["created_at", "2021-10-05 13:35:57.381026"], ["updated_at", "2021-10-05 13:35:57.381026"]]
39850
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39851
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39852
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.382214"], ["claim_hash", "Z4CX8y0OaBAnMmkaSa4WwvN32F0TZcGjoVcV5iLJ"], ["created_at", "2021-10-05 13:35:57.382191"], ["updated_at", "2021-10-05 13:35:57.382191"]]
39853
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39854
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test4@d-i.co' AND user_id IS NULL)
39855
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39856
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
39857
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:35:57.383489"], ["updated_at", "2021-10-05 13:35:57.384296"], ["id", 1]]
39858
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39859
+ Entity Exists? (0.1ms) SELECT 1 AS one FROM "entities" INNER JOIN "invitations" ON "entities"."id" = "invitations"."invitable_id" WHERE "invitations"."user_id" = ? AND "invitations"."invitable_type" = ? AND "entities"."id" = ? LIMIT ? [["user_id", 1], ["invitable_type", "Entity"], ["id", 1], ["LIMIT", 1]]
39860
+ TRANSACTION (0.1ms) rollback transaction
39861
+ TRANSACTION (0.0ms) begin transaction
39862
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39863
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39864
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.387692"], ["updated_at", "2021-10-05 13:35:57.387692"]]
39865
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39866
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test4@d-i.co')
39867
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39868
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "uberadmin"], ["date_sent", "2021-10-05 13:35:57.389358"], ["claim_hash", "83exYciePYvuGDlxTQyyhHU6Ixvr4PLY9yifoWZU"], ["created_at", "2021-10-05 13:35:57.389329"], ["updated_at", "2021-10-05 13:35:57.389329"]]
39869
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39870
+ TRANSACTION (0.1ms) rollback transaction
39871
+ TRANSACTION (0.0ms) begin transaction
39872
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39873
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39874
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.391440"], ["updated_at", "2021-10-05 13:35:57.391440"]]
39875
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39876
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39877
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39878
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.393044"], ["date_accepted", "2021-10-05 13:35:57.392879"], ["claim_hash", "3Pc5oecSGfH7gqpAzOxPWxswefUR7HWUntjnDP33"], ["created_at", "2021-10-05 13:35:57.393024"], ["updated_at", "2021-10-05 13:35:57.393024"]]
39879
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39880
+ TRANSACTION (0.1ms) rollback transaction
39881
+ TRANSACTION (0.0ms) begin transaction
39882
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39883
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39884
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.395094"], ["updated_at", "2021-10-05 13:35:57.395094"]]
39885
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39886
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39887
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.396214"], ["claim_hash", "UsEnSmGUZTSx2Fj1X070hoE2GJz6FOxniG9xnqVB"], ["created_at", "2021-10-05 13:35:57.396192"], ["updated_at", "2021-10-05 13:35:57.396192"]]
39888
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39889
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39890
+ TRANSACTION (0.1ms) rollback transaction
39891
+ TRANSACTION (0.0ms) begin transaction
39892
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39893
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39894
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.398921"], ["updated_at", "2021-10-05 13:35:57.398921"]]
39895
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39896
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test4@d-i.co')
39897
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39898
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["date_sent", "2021-10-05 13:35:57.400295"], ["claim_hash", "53I03ldK2SJuqYgdGGY4sXI2E3wPYLgfHg2BPwmQ"], ["created_at", "2021-10-05 13:35:57.400269"], ["updated_at", "2021-10-05 13:35:57.400269"]]
39899
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39900
+ TRANSACTION (0.1ms) rollback transaction
39901
+ TRANSACTION (0.0ms) begin transaction
39902
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39903
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39904
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.402433"], ["updated_at", "2021-10-05 13:35:57.402433"]]
39905
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39906
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
39907
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39908
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.404376"], ["date_accepted", "2021-10-05 13:35:57.404137"], ["claim_hash", "rWGkOaTBWgNgS3Cn9AbBaZJcLCBT8aqvbMhuUsLH"], ["created_at", "2021-10-05 13:35:57.404345"], ["updated_at", "2021-10-05 13:35:57.404345"]]
39909
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39910
+ TRANSACTION (0.1ms) rollback transaction
39911
+ TRANSACTION (0.0ms) begin transaction
39912
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39913
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39914
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:35:57.406999"], ["updated_at", "2021-10-05 13:35:57.406999"]]
39915
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39916
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39917
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.408028"], ["claim_hash", "ywX1ETqgZ9yImCEjWLIJinGGOSBEywXaFmiWazXT"], ["created_at", "2021-10-05 13:35:57.408007"], ["updated_at", "2021-10-05 13:35:57.408007"]]
39918
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39919
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
39920
+ TRANSACTION (0.1ms) rollback transaction
39921
+ TRANSACTION (0.0ms) begin transaction
39922
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39923
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39924
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.410736"], ["updated_at", "2021-10-05 13:35:57.410736"]]
39925
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39926
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
39927
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.411681"], ["updated_at", "2021-10-05 13:35:57.411681"]]
39928
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39929
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39930
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.413073"], ["date_accepted", "2021-10-05 13:35:57.412666"], ["claim_hash", "qc9TgclvVwT7iNzA3PoZCewyw9Hh5lPpJkfxbOjW"], ["created_at", "2021-10-05 13:35:57.413046"], ["updated_at", "2021-10-05 13:35:57.413046"]]
39931
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39932
+ Entity Exists? (0.1ms) SELECT 1 AS one FROM "entities" INNER JOIN "invitations" ON "entities"."id" = "invitations"."invitable_id" WHERE "invitations"."user_id" = ? AND "invitations"."invitable_type" = ? AND "entities"."id" = ? LIMIT ? [["user_id", 1], ["invitable_type", "Entity"], ["id", 1], ["LIMIT", 1]]
39933
+  (0.1ms) SELECT COUNT(*) FROM "children" INNER JOIN "invitations" ON "children"."id" = "invitations"."invitable_id" WHERE "invitations"."user_id" = ? AND "invitations"."invitable_type" = ? [["user_id", 1], ["invitable_type", "Child"]]
39934
+ TRANSACTION (0.1ms) rollback transaction
39935
+ TRANSACTION (0.0ms) begin transaction
39936
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39937
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39938
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.418846"], ["updated_at", "2021-10-05 13:35:57.418846"]]
39939
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39940
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39941
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.420241"], ["claim_hash", "E5gM2AVkfu0lWyaMrsb233LJW12uCJyLKWXMmXLh"], ["created_at", "2021-10-05 13:35:57.420212"], ["updated_at", "2021-10-05 13:35:57.420212"]]
39942
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39943
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39944
+ TRANSACTION (0.1ms) rollback transaction
39945
+ TRANSACTION (0.0ms) begin transaction
39946
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39947
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39948
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.423261"], ["updated_at", "2021-10-05 13:35:57.423261"]]
39949
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39950
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39951
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.424245"], ["updated_at", "2021-10-05 13:35:57.424245"]]
39952
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39953
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39954
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.425222"], ["date_accepted", "2021-10-05 13:35:57.424893"], ["claim_hash", "gi4e5QiTfxdsRTYVrjzBGnPpU03zywChC9YXHAGo"], ["created_at", "2021-10-05 13:35:57.425202"], ["updated_at", "2021-10-05 13:35:57.425202"]]
39955
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39956
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39957
+ TRANSACTION (0.1ms) rollback transaction
39958
+ TRANSACTION (0.0ms) begin transaction
39959
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39960
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39961
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.427703"], ["updated_at", "2021-10-05 13:35:57.427703"]]
39962
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39963
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39964
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.428689"], ["claim_hash", "MVyNxe3LJCbbpjFSQ0XZm1Mascn3sThMvwMvGysJ"], ["created_at", "2021-10-05 13:35:57.428670"], ["updated_at", "2021-10-05 13:35:57.428670"]]
39965
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39966
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
39967
+ TRANSACTION (0.1ms) rollback transaction
39968
+ TRANSACTION (0.0ms) begin transaction
39969
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39970
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39971
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.431116"], ["updated_at", "2021-10-05 13:35:57.431116"]]
39972
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39973
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39974
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.432035"], ["updated_at", "2021-10-05 13:35:57.432035"]]
39975
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39976
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39977
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.433035"], ["date_accepted", "2021-10-05 13:35:57.432705"], ["claim_hash", "VfqRgVsWdUt5MTztKMNmbv0Ld54IMgoqrCoKgvtA"], ["created_at", "2021-10-05 13:35:57.433016"], ["updated_at", "2021-10-05 13:35:57.433016"]]
39978
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39979
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
39980
+ TRANSACTION (0.1ms) rollback transaction
39981
+ TRANSACTION (0.0ms) begin transaction
39982
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39983
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39984
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.435558"], ["updated_at", "2021-10-05 13:35:57.435558"]]
39985
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39986
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39987
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.436478"], ["updated_at", "2021-10-05 13:35:57.436478"]]
39988
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39989
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39990
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.437431"], ["date_accepted", "2021-10-05 13:35:57.437108"], ["claim_hash", "P9k9LARUHyZD8rDh5bMTEPXmkEMTPm3pu8E7rSXi"], ["created_at", "2021-10-05 13:35:57.437411"], ["updated_at", "2021-10-05 13:35:57.437411"]]
39991
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39992
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39993
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39994
+ TRANSACTION (0.1ms) rollback transaction
39995
+ TRANSACTION (0.0ms) begin transaction
39996
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39997
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39998
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.440516"], ["updated_at", "2021-10-05 13:35:57.440516"]]
39999
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40000
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40001
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.441465"], ["updated_at", "2021-10-05 13:35:57.441465"]]
40002
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40003
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40004
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.442467"], ["date_accepted", "2021-10-05 13:35:57.442103"], ["claim_hash", "QVUxnZ74pFsVeiPSjV1gTyumwibu5gEC56wXPpPM"], ["created_at", "2021-10-05 13:35:57.442445"], ["updated_at", "2021-10-05 13:35:57.442445"]]
40005
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40006
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40007
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.443808"], ["updated_at", "2021-10-05 13:35:57.443808"]]
40008
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40009
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40010
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
40011
+ TRANSACTION (0.1ms) rollback transaction
40012
+ TRANSACTION (0.0ms) begin transaction
40013
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40014
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40015
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.446641"], ["updated_at", "2021-10-05 13:35:57.446641"]]
40016
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40017
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40018
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.447513"], ["updated_at", "2021-10-05 13:35:57.447513"]]
40019
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40020
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40021
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.448568"], ["date_accepted", "2021-10-05 13:35:57.448195"], ["claim_hash", "8vEBtLlZBds3aTLUuAYhukUYp1QkGWXrFJwJfBsz"], ["created_at", "2021-10-05 13:35:57.448549"], ["updated_at", "2021-10-05 13:35:57.448549"]]
40022
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40023
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40024
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40025
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40026
+ TRANSACTION (0.1ms) rollback transaction
40027
+ TRANSACTION (0.0ms) begin transaction
40028
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40029
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40030
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.451855"], ["updated_at", "2021-10-05 13:35:57.451855"]]
40031
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40032
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40033
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.452978"], ["updated_at", "2021-10-05 13:35:57.452978"]]
40034
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40035
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40036
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.454318"], ["date_accepted", "2021-10-05 13:35:57.453918"], ["claim_hash", "3IhcVHs2g3fySnxRQcJfGGPbMGYJNJF04oqqAYYg"], ["created_at", "2021-10-05 13:35:57.454297"], ["updated_at", "2021-10-05 13:35:57.454297"]]
40037
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40038
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40039
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.455590"], ["updated_at", "2021-10-05 13:35:57.455590"]]
40040
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40041
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40042
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
40043
+ TRANSACTION (0.1ms) rollback transaction
40044
+ TRANSACTION (0.0ms) begin transaction
40045
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40046
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40047
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.458443"], ["updated_at", "2021-10-05 13:35:57.458443"]]
40048
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40049
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40050
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.459334"], ["updated_at", "2021-10-05 13:35:57.459334"]]
40051
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40052
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40053
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.460331"], ["date_accepted", "2021-10-05 13:35:57.459963"], ["claim_hash", "Kb3GAIRouEWAQfx77LWumicmVbX4wtBB3TIPWPnC"], ["created_at", "2021-10-05 13:35:57.460307"], ["updated_at", "2021-10-05 13:35:57.460307"]]
40054
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40055
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40056
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40057
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40058
+ TRANSACTION (0.1ms) rollback transaction
40059
+ TRANSACTION (0.0ms) begin transaction
40060
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40061
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40062
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.463553"], ["updated_at", "2021-10-05 13:35:57.463553"]]
40063
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40064
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40065
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.464542"], ["updated_at", "2021-10-05 13:35:57.464542"]]
40066
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40067
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40068
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.465546"], ["date_accepted", "2021-10-05 13:35:57.465208"], ["claim_hash", "kCztjZLWfFvaCfjNXqSsrfYBTmzt1ldnIdgn4fjH"], ["created_at", "2021-10-05 13:35:57.465526"], ["updated_at", "2021-10-05 13:35:57.465526"]]
40069
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40070
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40071
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
40072
+ Invitation Destroy (0.1ms) DELETE FROM "invitations" WHERE "invitations"."id" = ? [["id", 1]]
40073
+ User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
40074
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40075
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40076
+ TRANSACTION (0.1ms) rollback transaction
40077
+ TRANSACTION (0.0ms) begin transaction
40078
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40079
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40080
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.469238"], ["updated_at", "2021-10-05 13:35:57.469238"]]
40081
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40082
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40083
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.470203"], ["claim_hash", "khfNHYLRbP9Pr3lxRe2OeQJ2otZKKq8WW2Q4m96J"], ["created_at", "2021-10-05 13:35:57.470184"], ["updated_at", "2021-10-05 13:35:57.470184"]]
40084
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40085
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40086
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40087
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.473023"], ["updated_at", "2021-10-05 13:35:57.473023"]]
40088
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40089
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
40090
+ User Load (0.1ms) SELECT "users".* FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'uberadmin')
40091
+ TRANSACTION (0.1ms) rollback transaction
40092
+ TRANSACTION (0.0ms) begin transaction
40093
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40094
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40095
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.476249"], ["updated_at", "2021-10-05 13:35:57.476249"]]
40096
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40097
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40098
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.477267"], ["claim_hash", "NKcQD7XPslv5oRIrENsCW5VxzmSRLBl6MWSXYsZZ"], ["created_at", "2021-10-05 13:35:57.477246"], ["updated_at", "2021-10-05 13:35:57.477246"]]
40099
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40100
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'employer') AND "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40101
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40102
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.478947"], ["updated_at", "2021-10-05 13:35:57.478947"]]
40103
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40104
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'employer') AND "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
40105
+ User Load (0.1ms) SELECT "users".* FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'employer')
40106
+ TRANSACTION (0.1ms) rollback transaction
40107
+ TRANSACTION (0.0ms) begin transaction
40108
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40109
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40110
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.481647"], ["updated_at", "2021-10-05 13:35:57.481647"]]
40111
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40112
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40113
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.482517"], ["updated_at", "2021-10-05 13:35:57.482517"]]
40114
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40115
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40116
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.483524"], ["date_accepted", "2021-10-05 13:35:57.483180"], ["claim_hash", "HXyB64WbHV9xtNeGi62twza9qBWdqpXm2ce9ObuG"], ["created_at", "2021-10-05 13:35:57.483504"], ["updated_at", "2021-10-05 13:35:57.483504"]]
40117
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40118
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40119
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.484514"], ["updated_at", "2021-10-05 13:35:57.484514"]]
40120
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40121
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40122
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.485547"], ["claim_hash", "1xUTkxcKbgCBQtKi72a2ctyDIgB6yMdMVfQg9y98"], ["created_at", "2021-10-05 13:35:57.485523"], ["updated_at", "2021-10-05 13:35:57.485523"]]
40123
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40124
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40125
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40126
+ TRANSACTION (0.1ms) rollback transaction
40127
+ TRANSACTION (0.0ms) begin transaction
40128
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40129
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40130
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.488669"], ["updated_at", "2021-10-05 13:35:57.488669"]]
40131
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40132
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40133
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.489740"], ["updated_at", "2021-10-05 13:35:57.489740"]]
40134
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40135
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40136
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.490747"], ["date_accepted", "2021-10-05 13:35:57.490402"], ["claim_hash", "XcdkSzJcIWTszwzbHIf7JS06c5l8FFtT0PZGOaLj"], ["created_at", "2021-10-05 13:35:57.490727"], ["updated_at", "2021-10-05 13:35:57.490727"]]
40137
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40138
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40139
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.491652"], ["updated_at", "2021-10-05 13:35:57.491652"]]
40140
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40141
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40142
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.492518"], ["claim_hash", "qbpi2hl4WtoPtzsyAI9GTJQ2C7ZlL8jR9ZLOQWHD"], ["created_at", "2021-10-05 13:35:57.492499"], ["updated_at", "2021-10-05 13:35:57.492499"]]
40143
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40144
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40145
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.493353"], ["updated_at", "2021-10-05 13:35:57.493353"]]
40146
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40147
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
40148
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
40149
+ TRANSACTION (0.1ms) rollback transaction
40150
+ TRANSACTION (0.0ms) begin transaction
40151
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40152
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40153
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.496035"], ["updated_at", "2021-10-05 13:35:57.496035"]]
40154
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40155
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40156
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.496939"], ["updated_at", "2021-10-05 13:35:57.496939"]]
40157
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40158
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40159
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.497976"], ["date_accepted", "2021-10-05 13:35:57.497625"], ["claim_hash", "WYeUaYAAk18aeqFjYm7KjVqnzWIk4xirM967lWma"], ["created_at", "2021-10-05 13:35:57.497956"], ["updated_at", "2021-10-05 13:35:57.497956"]]
40160
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40161
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40162
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.498910"], ["updated_at", "2021-10-05 13:35:57.498910"]]
40163
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40164
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40165
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.499718"], ["claim_hash", "CFXfNgkrDOShK6zVpfXSL9yGqJuRAaIxWnxphQC1"], ["created_at", "2021-10-05 13:35:57.499699"], ["updated_at", "2021-10-05 13:35:57.499699"]]
40166
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40167
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40168
+ TRANSACTION (0.1ms) rollback transaction
40169
+ TRANSACTION (0.0ms) begin transaction
40170
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40171
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40172
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.502172"], ["updated_at", "2021-10-05 13:35:57.502172"]]
40173
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40174
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40175
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.503051"], ["updated_at", "2021-10-05 13:35:57.503051"]]
40176
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40177
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40178
+ Invitation Create (0.2ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.504012"], ["date_accepted", "2021-10-05 13:35:57.503681"], ["claim_hash", "bLnRVMuctqQGJfR2nuKwE6tHOvpXIFoXaFwKPy6R"], ["created_at", "2021-10-05 13:35:57.503991"], ["updated_at", "2021-10-05 13:35:57.503991"]]
40179
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40180
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40181
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.505421"], ["updated_at", "2021-10-05 13:35:57.505421"]]
40182
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40183
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40184
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.506516"], ["claim_hash", "nGrlLlxAekrfHaQpyi9K0NcDpUSqe1yLMUjKHk1J"], ["created_at", "2021-10-05 13:35:57.506492"], ["updated_at", "2021-10-05 13:35:57.506492"]]
40185
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40186
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40187
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40188
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40189
+ TRANSACTION (0.1ms) rollback transaction
40190
+ TRANSACTION (0.0ms) begin transaction
40191
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40192
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40193
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.510104"], ["updated_at", "2021-10-05 13:35:57.510104"]]
40194
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40195
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40196
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.511039"], ["updated_at", "2021-10-05 13:35:57.511039"]]
40197
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40198
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40199
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.512006"], ["date_accepted", "2021-10-05 13:35:57.511674"], ["claim_hash", "TCKVxRhQNlB5MdXKUTeLgTnI5WOgEc8Ygb5uNFs7"], ["created_at", "2021-10-05 13:35:57.511979"], ["updated_at", "2021-10-05 13:35:57.511979"]]
40200
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40201
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40202
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.512958"], ["updated_at", "2021-10-05 13:35:57.512958"]]
40203
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40204
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40205
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.513789"], ["claim_hash", "aZqTyI95lbVqjbd4oUlQbZiQ19O3vmHGj8COr8xq"], ["created_at", "2021-10-05 13:35:57.513769"], ["updated_at", "2021-10-05 13:35:57.513769"]]
40206
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40207
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40208
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40209
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40210
+ TRANSACTION (0.1ms) rollback transaction
40211
+ TRANSACTION (0.0ms) begin transaction
40212
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40213
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40214
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.516948"], ["updated_at", "2021-10-05 13:35:57.516948"]]
40215
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40216
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40217
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.517848"], ["updated_at", "2021-10-05 13:35:57.517848"]]
40218
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40219
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40220
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.518801"], ["date_accepted", "2021-10-05 13:35:57.518481"], ["claim_hash", "92pD6roPppMeTbBRi2VERrgjmNs2zo71WkudiZcu"], ["created_at", "2021-10-05 13:35:57.518783"], ["updated_at", "2021-10-05 13:35:57.518783"]]
40221
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40222
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40223
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.519697"], ["updated_at", "2021-10-05 13:35:57.519697"]]
40224
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40225
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40226
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.520520"], ["claim_hash", "2B3FBWW8uzY9DJbfh9Q5X1eslbGZI5ZU5fFH2Fq4"], ["created_at", "2021-10-05 13:35:57.520501"], ["updated_at", "2021-10-05 13:35:57.520501"]]
40227
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40228
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40229
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.521341"], ["updated_at", "2021-10-05 13:35:57.521341"]]
40230
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40231
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
40232
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
40233
+ TRANSACTION (0.1ms) rollback transaction
40234
+ TRANSACTION (0.0ms) begin transaction
40235
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40236
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40237
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.524310"], ["updated_at", "2021-10-05 13:35:57.524310"]]
40238
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40239
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40240
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.525248"], ["updated_at", "2021-10-05 13:35:57.525248"]]
40241
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40242
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40243
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.526215"], ["date_accepted", "2021-10-05 13:35:57.525892"], ["claim_hash", "Wsy0ESgKPq6ITi0inuqS0We4KwGNWd1sBhApqKY7"], ["created_at", "2021-10-05 13:35:57.526195"], ["updated_at", "2021-10-05 13:35:57.526195"]]
40244
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40245
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40246
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.527118"], ["updated_at", "2021-10-05 13:35:57.527118"]]
40247
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40248
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40249
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.527920"], ["claim_hash", "OMpAkuzBVakPZiTkL6ZCmH83gxrp3EIFAP2eHT0E"], ["created_at", "2021-10-05 13:35:57.527902"], ["updated_at", "2021-10-05 13:35:57.527902"]]
40250
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40251
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40252
+ TRANSACTION (0.1ms) rollback transaction
40253
+ TRANSACTION (0.0ms) begin transaction
40254
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40255
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40256
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.530368"], ["updated_at", "2021-10-05 13:35:57.530368"]]
40257
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40258
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40259
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.531242"], ["updated_at", "2021-10-05 13:35:57.531242"]]
40260
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40261
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40262
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.532199"], ["date_accepted", "2021-10-05 13:35:57.531872"], ["claim_hash", "6Yixa4VgFHMMpZsfY0FiZF0u8LgMq1fqIfkdrNcE"], ["created_at", "2021-10-05 13:35:57.532180"], ["updated_at", "2021-10-05 13:35:57.532180"]]
40263
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40264
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40265
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.533108"], ["updated_at", "2021-10-05 13:35:57.533108"]]
40266
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40267
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40268
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.533914"], ["claim_hash", "1X4iKYltQoFTapk0wifVrfI5wsV7TlIUF12wv15c"], ["created_at", "2021-10-05 13:35:57.533896"], ["updated_at", "2021-10-05 13:35:57.533896"]]
40269
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40270
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40271
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40272
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40273
+ TRANSACTION (0.1ms) rollback transaction
40274
+ TRANSACTION (0.0ms) begin transaction
40275
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40276
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40277
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.537510"], ["updated_at", "2021-10-05 13:35:57.537510"]]
40278
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40279
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40280
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.538674"], ["updated_at", "2021-10-05 13:35:57.538674"]]
40281
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40282
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40283
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.540006"], ["date_accepted", "2021-10-05 13:35:57.539604"], ["claim_hash", "qB9rzZdClGyDtkoaVMrwrWOMY003AU8dLXGtJhxi"], ["created_at", "2021-10-05 13:35:57.539984"], ["updated_at", "2021-10-05 13:35:57.539984"]]
40284
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40285
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40286
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.540986"], ["updated_at", "2021-10-05 13:35:57.540986"]]
40287
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40288
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40289
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.541800"], ["claim_hash", "uZ0GfAjlglzrNGuWHTLnxhKb6XsckYC9GndcjiBP"], ["created_at", "2021-10-05 13:35:57.541781"], ["updated_at", "2021-10-05 13:35:57.541781"]]
40290
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40291
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40292
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40293
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40294
+ TRANSACTION (0.1ms) rollback transaction
40295
+ TRANSACTION (0.0ms) begin transaction
40296
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40297
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40298
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.545012"], ["updated_at", "2021-10-05 13:35:57.545012"]]
40299
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40300
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40301
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.545911"], ["updated_at", "2021-10-05 13:35:57.545911"]]
40302
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40303
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40304
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.546854"], ["date_accepted", "2021-10-05 13:35:57.546539"], ["claim_hash", "tr1liYBpZOHd07NGYf4XsEszacRHAogU51rHPRJV"], ["created_at", "2021-10-05 13:35:57.546835"], ["updated_at", "2021-10-05 13:35:57.546835"]]
40305
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40306
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40307
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.547830"], ["updated_at", "2021-10-05 13:35:57.547830"]]
40308
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40309
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40310
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.548681"], ["claim_hash", "0aBfStSa2YH0XTk3uAvbVa6jc3ge8VeswUrQOPju"], ["created_at", "2021-10-05 13:35:57.548661"], ["updated_at", "2021-10-05 13:35:57.548661"]]
40311
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40312
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40313
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.549501"], ["updated_at", "2021-10-05 13:35:57.549501"]]
40314
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40315
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
40316
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
40317
+ TRANSACTION (0.1ms) rollback transaction
40318
+ TRANSACTION (0.0ms) begin transaction
40319
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40320
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40321
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:35:57.552130"], ["updated_at", "2021-10-05 13:35:57.552130"]]
40322
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40323
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40324
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.553001"], ["updated_at", "2021-10-05 13:35:57.553001"]]
40325
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40326
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40327
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.553970"], ["date_accepted", "2021-10-05 13:35:57.553631"], ["claim_hash", "XubE1UPdFXusGhHaKM0bYdlC4WSRxKmFN6REW8Oj"], ["created_at", "2021-10-05 13:35:57.553950"], ["updated_at", "2021-10-05 13:35:57.553950"]]
40328
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40329
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40330
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:35:57.554904"], ["updated_at", "2021-10-05 13:35:57.554904"]]
40331
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40332
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40333
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:35:57.555876"], ["claim_hash", "Y7ExLnulbChQAwmijKcrcXeaxteDEOVd32juRnDu"], ["created_at", "2021-10-05 13:35:57.555848"], ["updated_at", "2021-10-05 13:35:57.555848"]]
40334
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40335
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40336
+ TRANSACTION (0.1ms) rollback transaction
40337
+ TRANSACTION (0.0ms) begin transaction
40338
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40339
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40340
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.558522"], ["updated_at", "2021-10-05 13:35:57.558522"]]
40341
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40342
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40343
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.559444"], ["updated_at", "2021-10-05 13:35:57.559444"]]
40344
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40345
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40346
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.560364"], ["claim_hash", "mlZMPDNWu4gzULpNnDXfz752Vw6mA5cJil45P2s7"], ["created_at", "2021-10-05 13:35:57.560344"], ["updated_at", "2021-10-05 13:35:57.560344"]]
40347
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40348
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40349
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:35:57.561245"], ["updated_at", "2021-10-05 13:35:57.561245"]]
40350
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40351
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40352
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 2], ["date_sent", "2021-10-05 13:35:57.562076"], ["claim_hash", "YsPmWwvMOlQxnTF9uHST4Z39s85GglZY6yRuDUsi"], ["created_at", "2021-10-05 13:35:57.562058"], ["updated_at", "2021-10-05 13:35:57.562058"]]
40353
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40354
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test@d-i.co' AND user_id IS NULL)
40355
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40356
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40357
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:35:57.563119"], ["updated_at", "2021-10-05 13:35:57.563845"], ["id", 1]]
40358
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40359
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40360
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
40361
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:35:57.564504"], ["updated_at", "2021-10-05 13:35:57.565112"], ["id", 2]]
40362
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40363
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
40364
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 2], ["LIMIT", 1]]
40365
+ TRANSACTION (0.1ms) rollback transaction
40366
+ TRANSACTION (0.0ms) begin transaction
40367
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40368
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40369
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:35:57.568131"], ["updated_at", "2021-10-05 13:35:57.568131"]]
40370
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40371
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40372
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "foo@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.569428"], ["claim_hash", "z5Lh877wex1UW1Loj1nukXiyEt8jfxFfIf8mvZmB"], ["created_at", "2021-10-05 13:35:57.569403"], ["updated_at", "2021-10-05 13:35:57.569403"]]
40373
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40374
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40375
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.570625"], ["updated_at", "2021-10-05 13:35:57.570625"]]
40376
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40377
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test@d-i.co' AND user_id IS NULL)
40378
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
40379
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
40380
+ TRANSACTION (0.1ms) rollback transaction
40381
+ TRANSACTION (0.0ms) begin transaction
40382
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40383
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40384
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.574006"], ["updated_at", "2021-10-05 13:35:57.574006"]]
40385
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40386
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40387
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.574971"], ["updated_at", "2021-10-05 13:35:57.574971"]]
40388
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40389
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40390
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.575894"], ["claim_hash", "CU9I5Ti03WYMX5slC08KQvLojGUSYwKaI2f40n1Y"], ["created_at", "2021-10-05 13:35:57.575873"], ["updated_at", "2021-10-05 13:35:57.575873"]]
40391
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40392
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'CU9I5Ti03WYMX5slC08KQvLojGUSYwKaI2f40n1Y') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
40393
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40394
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40395
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:35:57.577143"], ["updated_at", "2021-10-05 13:35:57.577858"], ["id", 1]]
40396
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40397
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
40398
+ TRANSACTION (0.1ms) rollback transaction
40399
+ TRANSACTION (0.0ms) begin transaction
40400
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40401
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40402
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.580239"], ["updated_at", "2021-10-05 13:35:57.580239"]]
40403
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40404
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40405
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "foo@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.581340"], ["claim_hash", "1RlEGllpeFt51fPxxaKOb41okeq6PjsQzwLh6Uad"], ["created_at", "2021-10-05 13:35:57.581319"], ["updated_at", "2021-10-05 13:35:57.581319"]]
40406
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40407
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40408
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.582294"], ["updated_at", "2021-10-05 13:35:57.582294"]]
40409
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40410
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = '1RlEGllpeFt51fPxxaKOb41okeq6PjsQzwLh6Uad') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
40411
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40412
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40413
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:35:57.583427"], ["updated_at", "2021-10-05 13:35:57.584161"], ["id", 1]]
40414
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40415
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
40416
+ TRANSACTION (0.1ms) rollback transaction
40417
+ TRANSACTION (0.0ms) begin transaction
40418
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40419
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40420
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2021-10-05 13:35:57.586564"], ["updated_at", "2021-10-05 13:35:57.586564"]]
40421
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40422
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40423
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.587477"], ["updated_at", "2021-10-05 13:35:57.587477"]]
40424
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40425
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40426
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "foo@bar.com"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.588600"], ["date_accepted", "2021-10-05 13:35:57.588224"], ["claim_hash", "LSlv583jEtkzqKKQEpgxwJwtGE8QT9Fce0k2qgAy"], ["created_at", "2021-10-05 13:35:57.588579"], ["updated_at", "2021-10-05 13:35:57.588579"]]
40427
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40428
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40429
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.589588"], ["updated_at", "2021-10-05 13:35:57.589588"]]
40430
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40431
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'LSlv583jEtkzqKKQEpgxwJwtGE8QT9Fce0k2qgAy') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
40432
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 2], ["id", 1], ["LIMIT", 1]]
40433
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 2]]
40434
+ TRANSACTION (0.1ms) rollback transaction
40435
+ TRANSACTION (0.0ms) begin transaction
40436
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40437
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40438
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.592722"], ["updated_at", "2021-10-05 13:35:57.592722"]]
40439
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40440
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40441
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:35:57.593595"], ["updated_at", "2021-10-05 13:35:57.593595"]]
40442
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40443
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40444
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.594497"], ["claim_hash", "ih7KJokC6cseEsZfn2MadQsUqwdp3PwPC8fV9AB5"], ["created_at", "2021-10-05 13:35:57.594471"], ["updated_at", "2021-10-05 13:35:57.594471"]]
40445
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40446
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'THIS_IS_A_BAD_HASH') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
40447
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
40448
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
40449
+ TRANSACTION (0.1ms) rollback transaction
40450
+ TRANSACTION (0.0ms) begin transaction
40451
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40452
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40453
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:35:57.597797"], ["updated_at", "2021-10-05 13:35:57.597797"]]
40454
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40455
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? AND (email = 'test@d-i.co') [["invitable_id", 1], ["invitable_type", "Entity"]]
40456
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40457
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.599782"], ["claim_hash", "GsE55mkyhRUKkq5EmcjGruVv5YqxIrs7soMJD0Wf"], ["created_at", "2021-10-05 13:35:57.599760"], ["updated_at", "2021-10-05 13:35:57.599760"]]
40458
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40459
+ TRANSACTION (0.1ms) rollback transaction
40460
+ TRANSACTION (0.0ms) begin transaction
40461
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40462
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40463
+ Entity Create (0.2ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:35:57.601972"], ["updated_at", "2021-10-05 13:35:57.601972"]]
40464
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40465
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40466
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:35:57.603254"], ["claim_hash", "8mV2FcO59QVQQeclFGu6b6XizGZNl9j6GqbkrfgK"], ["created_at", "2021-10-05 13:35:57.603228"], ["updated_at", "2021-10-05 13:35:57.603228"]]
40467
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40468
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? AND (email = 'test@d-i.co') [["invitable_id", 1], ["invitable_type", "Entity"]]
40469
+ TRANSACTION (0.1ms) rollback transaction
40470
+ TRANSACTION (0.0ms) begin transaction
40471
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40472
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40473
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:35:57.606288"], ["updated_at", "2021-10-05 13:35:57.606288"]]
40474
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40475
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40476
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.607295"], ["updated_at", "2021-10-05 13:35:57.607295"]]
40477
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40478
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40479
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40480
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.608890"], ["date_accepted", "2021-10-05 13:35:57.608687"], ["claim_hash", "JDDh27OZ0NoBcz6AhdXc6hFMdtvj3W3s1GuqUDEk"], ["created_at", "2021-10-05 13:35:57.608868"], ["updated_at", "2021-10-05 13:35:57.608868"]]
40481
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40482
+ TRANSACTION (0.1ms) rollback transaction
40483
+ TRANSACTION (0.0ms) begin transaction
40484
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40485
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40486
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:35:57.610975"], ["updated_at", "2021-10-05 13:35:57.610975"]]
40487
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40488
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40489
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:35:57.611857"], ["updated_at", "2021-10-05 13:35:57.611857"]]
40490
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40491
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40492
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.612774"], ["claim_hash", "EvoTrcYLAo5I1NHyfwGgEEo5b5Wxt2SA83dQF8JB"], ["created_at", "2021-10-05 13:35:57.612754"], ["updated_at", "2021-10-05 13:35:57.612754"]]
40493
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40494
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40495
+ TRANSACTION (0.1ms) rollback transaction
40496
+ TRANSACTION (0.0ms) begin transaction
40497
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40498
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test@d-i.co')
40499
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40500
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "employer"], ["date_sent", "2021-10-05 13:35:57.615899"], ["claim_hash", "qrHDirw6LXh13W32iim9QtQArhwulIlowOPNy58u"], ["created_at", "2021-10-05 13:35:57.615877"], ["updated_at", "2021-10-05 13:35:57.615877"]]
40501
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40502
+ TRANSACTION (0.1ms) rollback transaction
40503
+ TRANSACTION (0.0ms) begin transaction
40504
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40505
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40506
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "employer"], ["date_sent", "2021-10-05 13:35:57.617938"], ["claim_hash", "OKZm8WCEATzr5E9Gm9gVndDfzDIpgx4nE4Qooyo4"], ["created_at", "2021-10-05 13:35:57.617916"], ["updated_at", "2021-10-05 13:35:57.617916"]]
40507
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40508
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test@d-i.co')
40509
+ TRANSACTION (0.1ms) rollback transaction
40510
+ TRANSACTION (0.0ms) begin transaction
40511
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40512
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40513
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.620253"], ["updated_at", "2021-10-05 13:35:57.620253"]]
40514
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40515
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
40516
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40517
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.621976"], ["date_accepted", "2021-10-05 13:35:57.621779"], ["claim_hash", "xrJncJNo9dlPuUwKgyDictGizlqwSmpu9g14OCKP"], ["created_at", "2021-10-05 13:35:57.621953"], ["updated_at", "2021-10-05 13:35:57.621953"]]
40518
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40519
+ TRANSACTION (0.1ms) rollback transaction
40520
+ TRANSACTION (0.0ms) begin transaction
40521
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40522
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40523
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.624112"], ["updated_at", "2021-10-05 13:35:57.624112"]]
40524
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40525
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40526
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.625081"], ["claim_hash", "ASB3FQOLYC4gneKvoUGRHL1UWEoQ5iWc8ldTTgsx"], ["created_at", "2021-10-05 13:35:57.625060"], ["updated_at", "2021-10-05 13:35:57.625060"]]
40527
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40528
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
40529
+ TRANSACTION (0.1ms) rollback transaction
40530
+ TRANSACTION (0.0ms) begin transaction
40531
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40532
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test@d-i.co')
40533
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40534
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "uberadmin"], ["date_sent", "2021-10-05 13:35:57.627971"], ["claim_hash", "dKDCFewfnhrOTUafcUNj83985G53pPnOOrWivuWn"], ["created_at", "2021-10-05 13:35:57.627952"], ["updated_at", "2021-10-05 13:35:57.627952"]]
40535
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40536
+ TRANSACTION (0.1ms) rollback transaction
40537
+ TRANSACTION (0.0ms) begin transaction
40538
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40539
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40540
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "uberadmin"], ["date_sent", "2021-10-05 13:35:57.630373"], ["claim_hash", "wk5mM4oRlgYONqgSCjY5lqKhcRz3KbNYJC2jog1M"], ["created_at", "2021-10-05 13:35:57.630352"], ["updated_at", "2021-10-05 13:35:57.630352"]]
40541
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40542
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test@d-i.co')
40543
+ TRANSACTION (0.1ms) rollback transaction
40544
+ TRANSACTION (0.0ms) begin transaction
40545
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
40546
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40547
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.632844"], ["updated_at", "2021-10-05 13:35:57.632844"]]
40548
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40549
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40550
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40551
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.634436"], ["date_accepted", "2021-10-05 13:35:57.634254"], ["claim_hash", "68iYEa5oDuvuTckutwm8QKWrSSxFxHFNj6YVqaXU"], ["created_at", "2021-10-05 13:35:57.634415"], ["updated_at", "2021-10-05 13:35:57.634415"]]
40552
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40553
+ TRANSACTION (0.1ms) rollback transaction
40554
+ TRANSACTION (0.0ms) begin transaction
40555
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
40556
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40557
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:35:57.636824"], ["updated_at", "2021-10-05 13:35:57.636824"]]
40558
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40559
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40560
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:35:57.637878"], ["claim_hash", "PPDCblZtp0w6iQfP2rDx3CDcZusbowbBAcMmhU3J"], ["created_at", "2021-10-05 13:35:57.637857"], ["updated_at", "2021-10-05 13:35:57.637857"]]
40561
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40562
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40563
+ TRANSACTION (0.1ms) rollback transaction
40564
+  (0.6ms) SELECT sqlite_version(*)
40565
+  (0.0ms) SELECT sqlite_version(*)
40566
+  (0.1ms) DROP TABLE IF EXISTS "users"
40567
+  (3.7ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40568
+  (0.1ms) DROP TABLE IF EXISTS "grandparents"
40569
+  (2.4ms) CREATE TABLE "grandparents" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40570
+  (0.1ms) DROP TABLE IF EXISTS "entities"
40571
+  (3.3ms) CREATE TABLE "entities" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "grandparent_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40572
+  (0.1ms) DROP TABLE IF EXISTS "children"
40573
+  (2.3ms) CREATE TABLE "children" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "entity_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40574
+  (0.1ms) DROP TABLE IF EXISTS "other_entities"
40575
+  (2.0ms) CREATE TABLE "other_entities" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40576
+  (0.1ms) DROP TABLE IF EXISTS "system_things"
40577
+  (1.7ms) CREATE TABLE "system_things" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40578
+  (1.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40579
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
40580
+ TRANSACTION (0.0ms) begin transaction
40581
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-10-05 13:36:12.535667"], ["updated_at", "2021-10-05 13:36:12.535667"]]
40582
+ TRANSACTION (1.4ms) commit transaction
40583
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
40584
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
40585
+ Migrating to CreateInvitations (20130528220144)
40586
+ TRANSACTION (0.0ms) begin transaction
40587
+  (0.1ms) CREATE TABLE "invitations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "role" varchar, "invitable_type" varchar, "invitable_id" integer, "user_id" integer, "date_sent" datetime, "date_accepted" datetime, "claim_hash" varchar, "created_at" datetime, "updated_at" datetime)
40588
+  (0.1ms) CREATE INDEX "index_invitations_on_invitable_id" ON "invitations" ("invitable_id")
40589
+  (0.1ms) CREATE INDEX "index_invitations_on_invitable_type" ON "invitations" ("invitable_type")
40590
+  (0.1ms) CREATE INDEX "index_invitations_on_user_id" ON "invitations" ("user_id")
40591
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130528220144"]]
40592
+ TRANSACTION (1.6ms) commit transaction
40593
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
40594
+  (0.1ms) SELECT sqlite_version(*)
40595
+ TRANSACTION (0.0ms) begin transaction
40596
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40597
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.813791"], ["updated_at", "2021-10-05 13:36:12.813791"]]
40598
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40599
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40600
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.817870"], ["updated_at", "2021-10-05 13:36:12.817870"]]
40601
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40602
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40603
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.826760"], ["date_accepted", "2021-10-05 13:36:12.818688"], ["claim_hash", "EREMFuI9EFnGWFrISXlurLLZGrVxaE5WIlCRgFT3"], ["created_at", "2021-10-05 13:36:12.826717"], ["updated_at", "2021-10-05 13:36:12.826717"]]
40604
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40605
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40606
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.827996"], ["updated_at", "2021-10-05 13:36:12.827996"]]
40607
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40608
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40609
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.829033"], ["updated_at", "2021-10-05 13:36:12.829033"]]
40610
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40611
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40612
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.829995"], ["date_accepted", "2021-10-05 13:36:12.829669"], ["claim_hash", "oPItXphw1y0WXbVobvfkR42cPpr89Gj0OuntVEpt"], ["created_at", "2021-10-05 13:36:12.829977"], ["updated_at", "2021-10-05 13:36:12.829977"]]
40613
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40614
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40615
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.830882"], ["updated_at", "2021-10-05 13:36:12.830882"]]
40616
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40617
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40618
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.835632"], ["updated_at", "2021-10-05 13:36:12.835632"]]
40619
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40620
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40621
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.840655"], ["id", 2]]
40622
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40623
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40624
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.841929"], ["date_accepted", "2021-10-05 13:36:12.841556"], ["claim_hash", "mp57UYkaGYdRIAfdH24H3Nr5rII9PZRtH6rHLbvl"], ["created_at", "2021-10-05 13:36:12.841909"], ["updated_at", "2021-10-05 13:36:12.841909"]]
40625
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40626
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40627
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.842935"], ["updated_at", "2021-10-05 13:36:12.842935"]]
40628
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40629
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40630
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.843764"], ["claim_hash", "KAN27MdFVzY3PnjkPD27qb2dRn7ISzPviDTzqf0s"], ["created_at", "2021-10-05 13:36:12.843746"], ["updated_at", "2021-10-05 13:36:12.843746"]]
40631
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40632
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40633
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.844674"], ["updated_at", "2021-10-05 13:36:12.844674"]]
40634
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40635
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40636
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.845706"], ["claim_hash", "DgxKqmqkf3Qq4H5KlJvGx5PBezYvX2jOa1yr5dlt"], ["created_at", "2021-10-05 13:36:12.845687"], ["updated_at", "2021-10-05 13:36:12.845687"]]
40637
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40638
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40639
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40640
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40641
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40642
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40643
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
40644
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40645
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
40646
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40647
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
40648
+ TRANSACTION (0.1ms) rollback transaction
40649
+ TRANSACTION (0.0ms) begin transaction
40650
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40651
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.855311"], ["updated_at", "2021-10-05 13:36:12.855311"]]
40652
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40653
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40654
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.856335"], ["updated_at", "2021-10-05 13:36:12.856335"]]
40655
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40656
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40657
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.857361"], ["date_accepted", "2021-10-05 13:36:12.857020"], ["claim_hash", "SSjGMwNcIeEHcTZX7sDwUArfqJnjeHpj6iwNq9k9"], ["created_at", "2021-10-05 13:36:12.857339"], ["updated_at", "2021-10-05 13:36:12.857339"]]
40658
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40659
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40660
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.858291"], ["updated_at", "2021-10-05 13:36:12.858291"]]
40661
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40662
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40663
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.859030"], ["updated_at", "2021-10-05 13:36:12.859030"]]
40664
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40665
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40666
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.859902"], ["date_accepted", "2021-10-05 13:36:12.859620"], ["claim_hash", "RcnuqXyggbSfNZMZqHxtLdFxeAHBEmI5v4hnRVkD"], ["created_at", "2021-10-05 13:36:12.859884"], ["updated_at", "2021-10-05 13:36:12.859884"]]
40667
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40668
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40669
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.860776"], ["updated_at", "2021-10-05 13:36:12.860776"]]
40670
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40671
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40672
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.861651"], ["updated_at", "2021-10-05 13:36:12.861651"]]
40673
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40674
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40675
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.862732"], ["id", 2]]
40676
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40677
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40678
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.863708"], ["date_accepted", "2021-10-05 13:36:12.863372"], ["claim_hash", "NFPVS75FhlNoqFYhmcP45dIaxc8KGz0dSlBuUqKt"], ["created_at", "2021-10-05 13:36:12.863689"], ["updated_at", "2021-10-05 13:36:12.863689"]]
40679
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40680
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40681
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.864604"], ["updated_at", "2021-10-05 13:36:12.864604"]]
40682
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40683
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40684
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.865433"], ["claim_hash", "L8kJWHSdisSatxqWKMIhyuvMBz0NhDMsGgpPulb3"], ["created_at", "2021-10-05 13:36:12.865415"], ["updated_at", "2021-10-05 13:36:12.865415"]]
40685
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40686
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40687
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.866370"], ["updated_at", "2021-10-05 13:36:12.866370"]]
40688
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40689
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40690
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.867233"], ["claim_hash", "fuICcthP1YwdkgmP70rKP5goQroR6xv0Dqw8LhZn"], ["created_at", "2021-10-05 13:36:12.867215"], ["updated_at", "2021-10-05 13:36:12.867215"]]
40691
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40692
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40693
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
40694
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
40695
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40696
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
40697
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
40698
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40699
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
40700
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
40701
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40702
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
40703
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40704
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
40705
+ TRANSACTION (0.1ms) rollback transaction
40706
+ TRANSACTION (0.0ms) begin transaction
40707
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40708
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.873988"], ["updated_at", "2021-10-05 13:36:12.873988"]]
40709
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40710
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40711
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.875037"], ["updated_at", "2021-10-05 13:36:12.875037"]]
40712
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40713
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40714
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.876340"], ["date_accepted", "2021-10-05 13:36:12.875859"], ["claim_hash", "sG4TXKxxSB1MmrNwoXvM31VHB6K1EiwWQFZdTEvu"], ["created_at", "2021-10-05 13:36:12.876311"], ["updated_at", "2021-10-05 13:36:12.876311"]]
40715
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40716
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40717
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.877471"], ["updated_at", "2021-10-05 13:36:12.877471"]]
40718
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
40719
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40720
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.878450"], ["updated_at", "2021-10-05 13:36:12.878450"]]
40721
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40722
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40723
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.879508"], ["date_accepted", "2021-10-05 13:36:12.879167"], ["claim_hash", "DQ4Sw7fQjLe70A9zLA3fRHiivYiYXdR0QdsP1Wik"], ["created_at", "2021-10-05 13:36:12.879490"], ["updated_at", "2021-10-05 13:36:12.879490"]]
40724
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40725
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40726
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.880426"], ["updated_at", "2021-10-05 13:36:12.880426"]]
40727
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40728
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40729
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.881239"], ["updated_at", "2021-10-05 13:36:12.881239"]]
40730
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40731
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40732
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.882678"], ["id", 2]]
40733
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40734
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40735
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.883769"], ["date_accepted", "2021-10-05 13:36:12.883416"], ["claim_hash", "eZcqR6xmvCmENJkXnSg96vK7IhdXY9mrdMsN9Udx"], ["created_at", "2021-10-05 13:36:12.883749"], ["updated_at", "2021-10-05 13:36:12.883749"]]
40736
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40737
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40738
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.884745"], ["updated_at", "2021-10-05 13:36:12.884745"]]
40739
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40740
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40741
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.885622"], ["claim_hash", "arKf55BJZ5m10dNMvyzBG9QnrozERWOVUQUjwy4F"], ["created_at", "2021-10-05 13:36:12.885604"], ["updated_at", "2021-10-05 13:36:12.885604"]]
40742
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40743
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40744
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.886569"], ["updated_at", "2021-10-05 13:36:12.886569"]]
40745
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40746
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40747
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.887479"], ["claim_hash", "fwJBNmFf0glI0wQREW7lloGbeQegjvR51CdHSFM9"], ["created_at", "2021-10-05 13:36:12.887461"], ["updated_at", "2021-10-05 13:36:12.887461"]]
40748
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40749
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40750
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
40751
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40752
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
40753
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
40754
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
40755
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40756
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
40757
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40758
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
40759
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40760
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
40761
+ TRANSACTION (0.1ms) rollback transaction
40762
+ TRANSACTION (0.1ms) begin transaction
40763
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40764
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.895126"], ["updated_at", "2021-10-05 13:36:12.895126"]]
40765
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40766
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40767
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.896330"], ["updated_at", "2021-10-05 13:36:12.896330"]]
40768
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40769
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40770
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.897379"], ["date_accepted", "2021-10-05 13:36:12.897018"], ["claim_hash", "fPlhQNPbuoq69UtafpUhjPEgVJI78r31X5wbarrd"], ["created_at", "2021-10-05 13:36:12.897359"], ["updated_at", "2021-10-05 13:36:12.897359"]]
40771
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40772
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40773
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.898349"], ["updated_at", "2021-10-05 13:36:12.898349"]]
40774
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40775
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40776
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.899103"], ["updated_at", "2021-10-05 13:36:12.899103"]]
40777
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40778
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40779
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.900010"], ["date_accepted", "2021-10-05 13:36:12.899723"], ["claim_hash", "FvCEU6qSe2gurEE19Cyin3WYkxzwMV0reAIEcHd7"], ["created_at", "2021-10-05 13:36:12.899992"], ["updated_at", "2021-10-05 13:36:12.899992"]]
40780
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40781
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40782
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.900906"], ["updated_at", "2021-10-05 13:36:12.900906"]]
40783
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40784
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40785
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.901676"], ["updated_at", "2021-10-05 13:36:12.901676"]]
40786
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40787
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40788
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.902651"], ["id", 2]]
40789
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40790
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40791
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.903610"], ["date_accepted", "2021-10-05 13:36:12.903302"], ["claim_hash", "IFbILmGTTbPpmEkmDphDQxGmnZDv0Qox8zxjPZdR"], ["created_at", "2021-10-05 13:36:12.903591"], ["updated_at", "2021-10-05 13:36:12.903591"]]
40792
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40793
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40794
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.904562"], ["updated_at", "2021-10-05 13:36:12.904562"]]
40795
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40796
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40797
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.905422"], ["claim_hash", "saVuUFSerZ6yRVD3toZmJvdyAnZ3CChhZdDeuvZr"], ["created_at", "2021-10-05 13:36:12.905404"], ["updated_at", "2021-10-05 13:36:12.905404"]]
40798
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40799
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40800
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.906267"], ["updated_at", "2021-10-05 13:36:12.906267"]]
40801
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40802
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40803
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.907086"], ["claim_hash", "BK3s5qrxzeTTyK8PAqZidUefQwfRQdKRtln2QuL6"], ["created_at", "2021-10-05 13:36:12.907068"], ["updated_at", "2021-10-05 13:36:12.907068"]]
40804
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40805
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40806
+ SystemThing Create (0.1ms) INSERT INTO "system_things" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A System Object"], ["created_at", "2021-10-05 13:36:12.910254"], ["updated_at", "2021-10-05 13:36:12.910254"]]
40807
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40808
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 5]]
40809
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 5]]
40810
+ TRANSACTION (0.1ms) rollback transaction
40811
+ TRANSACTION (0.0ms) begin transaction
40812
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40813
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.913759"], ["updated_at", "2021-10-05 13:36:12.913759"]]
40814
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40815
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40816
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.914853"], ["updated_at", "2021-10-05 13:36:12.914853"]]
40817
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40818
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40819
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.915858"], ["date_accepted", "2021-10-05 13:36:12.915510"], ["claim_hash", "kaRypJnJQNQY4jaT3rzwGt0MDsCn29YdVCfWfkZH"], ["created_at", "2021-10-05 13:36:12.915834"], ["updated_at", "2021-10-05 13:36:12.915834"]]
40820
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40821
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40822
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.916820"], ["updated_at", "2021-10-05 13:36:12.916820"]]
40823
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40824
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40825
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.917550"], ["updated_at", "2021-10-05 13:36:12.917550"]]
40826
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40827
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40828
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.918534"], ["date_accepted", "2021-10-05 13:36:12.918203"], ["claim_hash", "xFjqt3zME0FntuVtWqIi0ljc36EECddgBu8UoJDq"], ["created_at", "2021-10-05 13:36:12.918515"], ["updated_at", "2021-10-05 13:36:12.918515"]]
40829
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40830
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40831
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.919444"], ["updated_at", "2021-10-05 13:36:12.919444"]]
40832
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40833
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40834
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.920224"], ["updated_at", "2021-10-05 13:36:12.920224"]]
40835
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40836
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40837
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.921191"], ["id", 2]]
40838
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40839
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40840
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.922149"], ["date_accepted", "2021-10-05 13:36:12.921824"], ["claim_hash", "1l2nHz8eWvLLtNU8fcsheWx6mtP5RubKMomGHQNb"], ["created_at", "2021-10-05 13:36:12.922131"], ["updated_at", "2021-10-05 13:36:12.922131"]]
40841
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40842
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40843
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.923089"], ["updated_at", "2021-10-05 13:36:12.923089"]]
40844
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40845
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40846
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.923926"], ["claim_hash", "v7eqXrMxXncRKkAVOKEfM4FNL4KEMKhL5PbCt6iZ"], ["created_at", "2021-10-05 13:36:12.923904"], ["updated_at", "2021-10-05 13:36:12.923904"]]
40847
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40848
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40849
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.924799"], ["updated_at", "2021-10-05 13:36:12.924799"]]
40850
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40851
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40852
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.925694"], ["claim_hash", "Hd1rYqB7ga9AaYN4Yr23FCvenu4VvM9fnt5XkQzM"], ["created_at", "2021-10-05 13:36:12.925670"], ["updated_at", "2021-10-05 13:36:12.925670"]]
40853
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40854
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
40855
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
40856
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40857
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:36:12.931047"], ["updated_at", "2021-10-05 13:36:12.931047"]]
40858
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40859
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40860
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:36:12.932733"], ["id", 1]]
40861
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40862
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
40863
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40864
+ OtherEntity Create (0.1ms) INSERT INTO "other_entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test other entity"], ["created_at", "2021-10-05 13:36:12.936279"], ["updated_at", "2021-10-05 13:36:12.936279"]]
40865
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40866
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
40867
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40868
+ SystemThing Create (0.1ms) INSERT INTO "system_things" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A System Object"], ["created_at", "2021-10-05 13:36:12.937785"], ["updated_at", "2021-10-05 13:36:12.937785"]]
40869
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40870
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
40871
+ TRANSACTION (0.1ms) rollback transaction
40872
+ TRANSACTION (0.0ms) begin transaction
40873
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40874
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.939949"], ["updated_at", "2021-10-05 13:36:12.939949"]]
40875
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40876
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40877
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.940910"], ["updated_at", "2021-10-05 13:36:12.940910"]]
40878
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40879
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40880
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.941890"], ["date_accepted", "2021-10-05 13:36:12.941550"], ["claim_hash", "LxZRk0gJXQ7x1AIZI4PmpA2FQCOqpV4y3NbWeMSy"], ["created_at", "2021-10-05 13:36:12.941871"], ["updated_at", "2021-10-05 13:36:12.941871"]]
40881
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40882
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40883
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.942938"], ["updated_at", "2021-10-05 13:36:12.942938"]]
40884
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40885
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40886
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.943844"], ["updated_at", "2021-10-05 13:36:12.943844"]]
40887
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40888
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40889
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.945138"], ["date_accepted", "2021-10-05 13:36:12.944656"], ["claim_hash", "F1llCBqkNOQZ4mDDx1V3vlPU5yRGR081AUsTtZ1p"], ["created_at", "2021-10-05 13:36:12.945115"], ["updated_at", "2021-10-05 13:36:12.945115"]]
40890
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40891
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40892
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.946282"], ["updated_at", "2021-10-05 13:36:12.946282"]]
40893
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40894
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40895
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.947277"], ["updated_at", "2021-10-05 13:36:12.947277"]]
40896
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40897
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40898
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.948498"], ["id", 2]]
40899
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40900
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40901
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.949530"], ["date_accepted", "2021-10-05 13:36:12.949176"], ["claim_hash", "ewphkF5EOIfZavwlXAJja6R6jykcikrtWem1iWlG"], ["created_at", "2021-10-05 13:36:12.949511"], ["updated_at", "2021-10-05 13:36:12.949511"]]
40902
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40903
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40904
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.950451"], ["updated_at", "2021-10-05 13:36:12.950451"]]
40905
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40906
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40907
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.951277"], ["claim_hash", "iR7U2f3XAbeqwwjwGJFccxEy1gMZus3xadViNVXV"], ["created_at", "2021-10-05 13:36:12.951259"], ["updated_at", "2021-10-05 13:36:12.951259"]]
40908
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40909
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40910
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.952113"], ["updated_at", "2021-10-05 13:36:12.952113"]]
40911
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40912
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40913
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.952925"], ["claim_hash", "Urp15qCEDehJsajdf1WIQlSRx2vXEXZQ7n3M1gk0"], ["created_at", "2021-10-05 13:36:12.952908"], ["updated_at", "2021-10-05 13:36:12.952908"]]
40914
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40915
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40916
+ OtherEntity Create (0.1ms) INSERT INTO "other_entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test other entity"], ["created_at", "2021-10-05 13:36:12.953949"], ["updated_at", "2021-10-05 13:36:12.953949"]]
40917
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40918
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
40919
+ TRANSACTION (0.1ms) rollback transaction
40920
+ TRANSACTION (0.0ms) begin transaction
40921
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40922
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.956400"], ["updated_at", "2021-10-05 13:36:12.956400"]]
40923
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40924
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40925
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.957351"], ["updated_at", "2021-10-05 13:36:12.957351"]]
40926
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40927
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40928
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.958345"], ["date_accepted", "2021-10-05 13:36:12.958009"], ["claim_hash", "Yfky9pkP2RXzLuBF7moYCCj7ohCA1P7S8MJJ72xn"], ["created_at", "2021-10-05 13:36:12.958320"], ["updated_at", "2021-10-05 13:36:12.958320"]]
40929
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40930
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40931
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.959298"], ["updated_at", "2021-10-05 13:36:12.959298"]]
40932
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40933
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40934
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.960058"], ["updated_at", "2021-10-05 13:36:12.960058"]]
40935
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40936
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40937
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.960972"], ["date_accepted", "2021-10-05 13:36:12.960672"], ["claim_hash", "L1kJmCQJ9YTHFUXDqhPHcDR6g192Rj1YDWwtVONv"], ["created_at", "2021-10-05 13:36:12.960954"], ["updated_at", "2021-10-05 13:36:12.960954"]]
40938
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40939
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40940
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.961972"], ["updated_at", "2021-10-05 13:36:12.961972"]]
40941
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40942
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40943
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.962955"], ["updated_at", "2021-10-05 13:36:12.962955"]]
40944
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40945
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40946
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.964116"], ["id", 2]]
40947
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40948
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40949
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.965128"], ["date_accepted", "2021-10-05 13:36:12.964782"], ["claim_hash", "bvtwbffkQh1jzgz6DSFXL2ogZhCc9U2X4a8aJ6fu"], ["created_at", "2021-10-05 13:36:12.965109"], ["updated_at", "2021-10-05 13:36:12.965109"]]
40950
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40951
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40952
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.966054"], ["updated_at", "2021-10-05 13:36:12.966054"]]
40953
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40954
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40955
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.966892"], ["claim_hash", "Kgvg5wMToX871XUNX7iwodWM51UdZAL9xIjDAO9e"], ["created_at", "2021-10-05 13:36:12.966874"], ["updated_at", "2021-10-05 13:36:12.966874"]]
40956
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40957
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40958
+ User Create (0.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.967683"], ["updated_at", "2021-10-05 13:36:12.967683"]]
40959
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40960
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40961
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.968481"], ["claim_hash", "605C0Yb1ChGDuGfaJAnkujXJHBrMPXDmlpmZ1F1C"], ["created_at", "2021-10-05 13:36:12.968464"], ["updated_at", "2021-10-05 13:36:12.968464"]]
40962
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40963
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40964
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:36:12.969492"], ["updated_at", "2021-10-05 13:36:12.969492"]]
40965
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40966
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40967
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:36:12.970378"], ["id", 1]]
40968
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40969
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40970
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 2]]
40971
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
40972
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
40973
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 2], ["LIMIT", 1]]
40974
+ TRANSACTION (0.1ms) rollback transaction
40975
+ TRANSACTION (0.0ms) begin transaction
40976
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40977
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.974045"], ["updated_at", "2021-10-05 13:36:12.974045"]]
40978
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40979
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40980
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.975239"], ["updated_at", "2021-10-05 13:36:12.975239"]]
40981
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40982
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
40983
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.976463"], ["date_accepted", "2021-10-05 13:36:12.976045"], ["claim_hash", "cK1OSzRW2WOqa1pQhcHmhisfGZWRGBzqmNumnNRX"], ["created_at", "2021-10-05 13:36:12.976442"], ["updated_at", "2021-10-05 13:36:12.976442"]]
40984
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40985
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40986
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.977754"], ["updated_at", "2021-10-05 13:36:12.977754"]]
40987
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40988
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40989
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.978780"], ["updated_at", "2021-10-05 13:36:12.978780"]]
40990
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40991
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40992
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.979840"], ["date_accepted", "2021-10-05 13:36:12.979499"], ["claim_hash", "gM3Tmyit36p9Fx8SHHJhmwPg5ZjljzxsaXG50zii"], ["created_at", "2021-10-05 13:36:12.979821"], ["updated_at", "2021-10-05 13:36:12.979821"]]
40993
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40994
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40995
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.980797"], ["updated_at", "2021-10-05 13:36:12.980797"]]
40996
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
40997
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40998
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:12.981566"], ["updated_at", "2021-10-05 13:36:12.981566"]]
40999
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41000
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41001
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:12.982548"], ["id", 2]]
41002
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41003
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41004
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:12.983525"], ["date_accepted", "2021-10-05 13:36:12.983183"], ["claim_hash", "7wZxc6bAvdOcXYquYiAyy3f7QbbTQlzx45GOz9pR"], ["created_at", "2021-10-05 13:36:12.983506"], ["updated_at", "2021-10-05 13:36:12.983506"]]
41005
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41006
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41007
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:12.984439"], ["updated_at", "2021-10-05 13:36:12.984439"]]
41008
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41009
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41010
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:12.985251"], ["claim_hash", "lKZ89MSeEImGEFNeQYarYWeexeICDm5HtVLyBi1H"], ["created_at", "2021-10-05 13:36:12.985234"], ["updated_at", "2021-10-05 13:36:12.985234"]]
41011
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41012
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41013
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:12.986091"], ["updated_at", "2021-10-05 13:36:12.986091"]]
41014
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41015
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41016
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:12.986875"], ["claim_hash", "HJjDkuhjCWB3sCBtKhfjFwFh3oyvRdY0zyI9kmP3"], ["created_at", "2021-10-05 13:36:12.986858"], ["updated_at", "2021-10-05 13:36:12.986858"]]
41017
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41018
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41019
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:36:12.987873"], ["updated_at", "2021-10-05 13:36:12.987873"]]
41020
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41021
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41022
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:36:12.988804"], ["id", 1]]
41023
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41024
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
41025
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 3]]
41026
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
41027
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 3]]
41028
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
41029
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 3]]
41030
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
41031
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 3]]
41032
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 3], ["LIMIT", 1]]
41033
+ TRANSACTION (0.1ms) rollback transaction
41034
+ TRANSACTION (0.0ms) begin transaction
41035
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41036
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:12.993801"], ["updated_at", "2021-10-05 13:36:12.993801"]]
41037
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41038
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41039
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:12.994869"], ["updated_at", "2021-10-05 13:36:12.994869"]]
41040
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41041
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41042
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:12.996049"], ["date_accepted", "2021-10-05 13:36:12.995676"], ["claim_hash", "HthfrBNcTjuzerRJbW5y7PuDd7faFF47FF79lgGB"], ["created_at", "2021-10-05 13:36:12.996029"], ["updated_at", "2021-10-05 13:36:12.996029"]]
41043
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41044
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41045
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:12.997031"], ["updated_at", "2021-10-05 13:36:12.997031"]]
41046
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41047
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41048
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:12.997781"], ["updated_at", "2021-10-05 13:36:12.997781"]]
41049
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41050
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41051
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:12.998664"], ["date_accepted", "2021-10-05 13:36:12.998383"], ["claim_hash", "eR8HxCJU4Fv08gzc58JEYMmGsWuW4436Gp5xjBti"], ["created_at", "2021-10-05 13:36:12.998647"], ["updated_at", "2021-10-05 13:36:12.998647"]]
41052
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41053
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41054
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-10-05 13:36:12.999533"], ["updated_at", "2021-10-05 13:36:12.999533"]]
41055
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41056
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41057
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-10-05 13:36:13.000289"], ["updated_at", "2021-10-05 13:36:13.000289"]]
41058
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41059
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41060
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-10-05 13:36:13.001284"], ["id", 2]]
41061
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41062
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41063
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test5@d-i.co"], ["role", "admin"], ["invitable_type", "Grandparent"], ["invitable_id", 1], ["user_id", 3], ["date_sent", "2021-10-05 13:36:13.002242"], ["date_accepted", "2021-10-05 13:36:13.001926"], ["claim_hash", "RxZgLMfzbTubtki9ZMCRLgSgky03ERJisGJO6cGj"], ["created_at", "2021-10-05 13:36:13.002224"], ["updated_at", "2021-10-05 13:36:13.002224"]]
41064
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41065
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41066
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.003150"], ["updated_at", "2021-10-05 13:36:13.003150"]]
41067
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41068
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41069
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 4], ["date_sent", "2021-10-05 13:36:13.003994"], ["claim_hash", "hzQyI91IOp502dpyoukJ0QYB56GN8fnJ6MDxsfry"], ["created_at", "2021-10-05 13:36:13.003977"], ["updated_at", "2021-10-05 13:36:13.003977"]]
41070
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41071
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41072
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.004828"], ["updated_at", "2021-10-05 13:36:13.004828"]]
41073
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41074
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41075
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 5], ["date_sent", "2021-10-05 13:36:13.005841"], ["claim_hash", "0Oyf6DtGXsTOLZtOQbT9YEEOh4zhh4tl4JFedcrx"], ["created_at", "2021-10-05 13:36:13.005819"], ["updated_at", "2021-10-05 13:36:13.005819"]]
41076
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41077
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41078
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-10-05 13:36:13.006978"], ["updated_at", "2021-10-05 13:36:13.006978"]]
41079
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41080
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41081
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-10-05 13:36:13.007967"], ["id", 1]]
41082
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41083
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41084
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 1]]
41085
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41086
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
41087
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41088
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
41089
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41090
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 1]]
41091
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41092
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 1]]
41093
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41094
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
41095
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41096
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
41097
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41098
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 1]]
41099
+ TRANSACTION (0.1ms) rollback transaction
41100
+ TRANSACTION (0.0ms) begin transaction
41101
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41102
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41103
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.016269"], ["updated_at", "2021-10-05 13:36:13.016269"]]
41104
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41105
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41106
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.017366"], ["updated_at", "2021-10-05 13:36:13.017366"]]
41107
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41108
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41109
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.018453"], ["date_accepted", "2021-10-05 13:36:13.018072"], ["claim_hash", "y4TjP52Epk6SNzZ18iRVezpivTlsGwTc3XCIEi7j"], ["created_at", "2021-10-05 13:36:13.018429"], ["updated_at", "2021-10-05 13:36:13.018429"]]
41110
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41111
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "users"."id" = "invitations"."user_id" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? AND (invitations.role = 'admin') AND "users"."id" = ? LIMIT ? [["invitable_id", 1], ["invitable_type", "Entity"], ["id", 1], ["LIMIT", 1]]
41112
+ TRANSACTION (0.1ms) rollback transaction
41113
+ TRANSACTION (0.0ms) begin transaction
41114
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41115
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41116
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.026597"], ["updated_at", "2021-10-05 13:36:13.026597"]]
41117
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41118
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41119
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.027586"], ["updated_at", "2021-10-05 13:36:13.027586"]]
41120
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41121
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41122
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41123
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.029422"], ["date_accepted", "2021-10-05 13:36:13.029194"], ["claim_hash", "zERw5Mc2qvNP5rfcKU6xc71lbayhuSCd5baoYLpB"], ["created_at", "2021-10-05 13:36:13.029395"], ["updated_at", "2021-10-05 13:36:13.029395"]]
41124
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41125
+ TRANSACTION (0.1ms) rollback transaction
41126
+ TRANSACTION (0.0ms) begin transaction
41127
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41128
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41129
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.031596"], ["updated_at", "2021-10-05 13:36:13.031596"]]
41130
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41131
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41132
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.032526"], ["updated_at", "2021-10-05 13:36:13.032526"]]
41133
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41134
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41135
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.033513"], ["date_accepted", "2021-10-05 13:36:13.033178"], ["claim_hash", "58lScKCbrQekrOSOqqV1AyZqycAyUJWOWO2iE0qy"], ["created_at", "2021-10-05 13:36:13.033495"], ["updated_at", "2021-10-05 13:36:13.033495"]]
41136
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41137
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41138
+ TRANSACTION (0.1ms) rollback transaction
41139
+ TRANSACTION (0.0ms) begin transaction
41140
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41141
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
41142
+ Entity Create (0.2ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.036442"], ["updated_at", "2021-10-05 13:36:13.036442"]]
41143
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
41144
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41145
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.037973"], ["updated_at", "2021-10-05 13:36:13.037973"]]
41146
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41147
+ TRANSACTION (0.1ms) rollback transaction
41148
+ TRANSACTION (0.0ms) begin transaction
41149
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41150
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41151
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.040281"], ["updated_at", "2021-10-05 13:36:13.040281"]]
41152
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41153
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41154
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.041247"], ["updated_at", "2021-10-05 13:36:13.041247"]]
41155
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41156
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41157
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.042351"], ["date_accepted", "2021-10-05 13:36:13.041972"], ["claim_hash", "L7HvqZxLZWKYefMPmIS9bWHd8AABYLVVTvNh3XPb"], ["created_at", "2021-10-05 13:36:13.042330"], ["updated_at", "2021-10-05 13:36:13.042330"]]
41158
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41159
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41160
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? [["invitable_id", 1], ["invitable_type", "Entity"]]
41161
+ Invitation Destroy (0.1ms) DELETE FROM "invitations" WHERE "invitations"."id" = ? [["id", 1]]
41162
+ Entity Destroy (0.1ms) DELETE FROM "entities" WHERE "entities"."id" = ? [["id", 1]]
41163
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41164
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41165
+ TRANSACTION (0.1ms) rollback transaction
41166
+ TRANSACTION (0.0ms) begin transaction
41167
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41168
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41169
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.047238"], ["updated_at", "2021-10-05 13:36:13.047238"]]
41170
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41171
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41172
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test999@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.048377"], ["claim_hash", "WWcWvyLQRTJWfYx21TOuLZjfLzG09mDDJMgmDZlL"], ["created_at", "2021-10-05 13:36:13.048355"], ["updated_at", "2021-10-05 13:36:13.048355"]]
41173
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41174
+ TRANSACTION (0.1ms) rollback transaction
41175
+ TRANSACTION (0.0ms) begin transaction
41176
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41177
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41178
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.050321"], ["updated_at", "2021-10-05 13:36:13.050321"]]
41179
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41180
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41181
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test999@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.051343"], ["claim_hash", "kNGddQJM7oWl7QA7PMlg9lBmdP9R7f03087LTNav"], ["created_at", "2021-10-05 13:36:13.051324"], ["updated_at", "2021-10-05 13:36:13.051324"]]
41182
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41183
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41184
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:13.052286"], ["updated_at", "2021-10-05 13:36:13.052286"]]
41185
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41186
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41187
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test999@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 2], ["date_sent", "2021-10-05 13:36:13.053160"], ["claim_hash", "HfpgUUdE5T4sk7W0xIJcfiYs1uVSyOR5fR9ysaQy"], ["created_at", "2021-10-05 13:36:13.053142"], ["updated_at", "2021-10-05 13:36:13.053142"]]
41188
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41189
+ TRANSACTION (0.1ms) rollback transaction
41190
+ TRANSACTION (0.0ms) begin transaction
41191
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41192
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41193
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.055177"], ["updated_at", "2021-10-05 13:36:13.055177"]]
41194
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41195
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41196
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.056137"], ["updated_at", "2021-10-05 13:36:13.056137"]]
41197
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41198
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41199
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.057054"], ["claim_hash", "G17UFETYIrEH8BKSc6vtboDYQFzpX0NUdjoQVETW"], ["created_at", "2021-10-05 13:36:13.057036"], ["updated_at", "2021-10-05 13:36:13.057036"]]
41200
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41201
+ TRANSACTION (0.1ms) rollback transaction
41202
+ TRANSACTION (0.0ms) begin transaction
41203
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41204
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41205
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.059028"], ["updated_at", "2021-10-05 13:36:13.059028"]]
41206
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41207
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41208
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.059994"], ["claim_hash", "L8UqTKAxBzQuoK96epv0DN6tWENYOYwK1BOmI1tB"], ["created_at", "2021-10-05 13:36:13.059974"], ["updated_at", "2021-10-05 13:36:13.059974"]]
41209
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41210
+ TRANSACTION (0.1ms) rollback transaction
41211
+ TRANSACTION (0.0ms) begin transaction
41212
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41213
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41214
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.070585"], ["updated_at", "2021-10-05 13:36:13.070585"]]
41215
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41216
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41217
+ Entity Create (1.5ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.071649"], ["updated_at", "2021-10-05 13:36:13.071649"]]
41218
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
41219
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41220
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.074227"], ["claim_hash", "wgvAHxLrpL6L3XPVDxyrQnxXXiD3ELllP6g1Yrdf"], ["created_at", "2021-10-05 13:36:13.074197"], ["updated_at", "2021-10-05 13:36:13.074197"]]
41221
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41222
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41223
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.075369"], ["updated_at", "2021-10-05 13:36:13.075369"]]
41224
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41225
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41226
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:13.076298"], ["updated_at", "2021-10-05 13:36:13.076298"]]
41227
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41228
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41229
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 2], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.077426"], ["date_accepted", "2021-10-05 13:36:13.077053"], ["claim_hash", "zE5aUXuGrmW988T2HiML6hBdxXzisbZ2nU4hY6HF"], ["created_at", "2021-10-05 13:36:13.077406"], ["updated_at", "2021-10-05 13:36:13.077406"]]
41230
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41231
+ TRANSACTION (0.1ms) rollback transaction
41232
+ TRANSACTION (0.0ms) begin transaction
41233
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41234
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41235
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.079655"], ["updated_at", "2021-10-05 13:36:13.079655"]]
41236
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41237
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41238
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.080829"], ["claim_hash", "i05KiM3lX4XA1TAxTwV4ZCdPTx0GnJaKzgPUzXc7"], ["created_at", "2021-10-05 13:36:13.080795"], ["updated_at", "2021-10-05 13:36:13.080795"]]
41239
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
41240
+ TRANSACTION (0.1ms) rollback transaction
41241
+ TRANSACTION (0.1ms) begin transaction
41242
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41243
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
41244
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.083457"], ["updated_at", "2021-10-05 13:36:13.083457"]]
41245
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41246
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41247
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.084671"], ["updated_at", "2021-10-05 13:36:13.084671"]]
41248
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41249
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41250
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.085812"], ["claim_hash", "mpg2BO13Dy29WAYm1FhRQmDUPzY3rKXt0ZXDZfLQ"], ["created_at", "2021-10-05 13:36:13.085790"], ["updated_at", "2021-10-05 13:36:13.085790"]]
41251
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41252
+ TRANSACTION (0.1ms) rollback transaction
41253
+ TRANSACTION (0.0ms) begin transaction
41254
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41255
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41256
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.087900"], ["updated_at", "2021-10-05 13:36:13.087900"]]
41257
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41258
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41259
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:13.088875"], ["updated_at", "2021-10-05 13:36:13.088875"]]
41260
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41261
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41262
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.089897"], ["date_accepted", "2021-10-05 13:36:13.089541"], ["claim_hash", "ziTsqdOYAPDkgWbGeOZT2lDSo7TLRHtLI7Hus8ar"], ["created_at", "2021-10-05 13:36:13.089877"], ["updated_at", "2021-10-05 13:36:13.089877"]]
41263
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41264
+ TRANSACTION (0.1ms) rollback transaction
41265
+ TRANSACTION (0.0ms) begin transaction
41266
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41267
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41268
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.092040"], ["updated_at", "2021-10-05 13:36:13.092040"]]
41269
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41270
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41271
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.092977"], ["updated_at", "2021-10-05 13:36:13.092977"]]
41272
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41273
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41274
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.093889"], ["claim_hash", "C1Akn30qARPLZoIHnCi54rP1P5Pq5sHzgAspBEUh"], ["created_at", "2021-10-05 13:36:13.093870"], ["updated_at", "2021-10-05 13:36:13.093870"]]
41275
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41276
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'C1Akn30qARPLZoIHnCi54rP1P5Pq5sHzgAspBEUh') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
41277
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41278
+ Entity Load (0.1ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41279
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:36:13.095180"], ["updated_at", "2021-10-05 13:36:13.096326"], ["id", 1]]
41280
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41281
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
41282
+ TRANSACTION (0.1ms) rollback transaction
41283
+ TRANSACTION (0.0ms) begin transaction
41284
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41285
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41286
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.099283"], ["updated_at", "2021-10-05 13:36:13.099283"]]
41287
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41288
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41289
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 3"], ["created_at", "2021-10-05 13:36:13.100331"], ["updated_at", "2021-10-05 13:36:13.100331"]]
41290
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41291
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41292
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.101270"], ["claim_hash", "8gL1BlDEUzcnsPDynYTGt21NAOEhtdvJxu8H2zjx"], ["created_at", "2021-10-05 13:36:13.101250"], ["updated_at", "2021-10-05 13:36:13.101250"]]
41293
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41294
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test4@d-i.co' AND user_id IS NULL)
41295
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41296
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41297
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:36:13.102398"], ["updated_at", "2021-10-05 13:36:13.103098"], ["id", 1]]
41298
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41299
+ Entity Exists? (0.1ms) SELECT 1 AS one FROM "entities" INNER JOIN "invitations" ON "entities"."id" = "invitations"."invitable_id" WHERE "invitations"."user_id" = ? AND "invitations"."invitable_type" = ? AND "entities"."id" = ? LIMIT ? [["user_id", 1], ["invitable_type", "Entity"], ["id", 1], ["LIMIT", 1]]
41300
+ TRANSACTION (0.1ms) rollback transaction
41301
+ TRANSACTION (0.0ms) begin transaction
41302
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41303
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41304
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.106123"], ["updated_at", "2021-10-05 13:36:13.106123"]]
41305
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41306
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test4@d-i.co')
41307
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41308
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "uberadmin"], ["date_sent", "2021-10-05 13:36:13.107457"], ["claim_hash", "pFxjKX4EXrgJmoDSJg29sdHP2HEaFw8GzXxjQkjc"], ["created_at", "2021-10-05 13:36:13.107436"], ["updated_at", "2021-10-05 13:36:13.107436"]]
41309
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41310
+ TRANSACTION (0.1ms) rollback transaction
41311
+ TRANSACTION (0.0ms) begin transaction
41312
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41313
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41314
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.109654"], ["updated_at", "2021-10-05 13:36:13.109654"]]
41315
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41316
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41317
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41318
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.111413"], ["date_accepted", "2021-10-05 13:36:13.111233"], ["claim_hash", "aCJmOta1maSEvs2HFrJgY41NoB5M4MRfCpORDYLn"], ["created_at", "2021-10-05 13:36:13.111392"], ["updated_at", "2021-10-05 13:36:13.111392"]]
41319
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41320
+ TRANSACTION (0.1ms) rollback transaction
41321
+ TRANSACTION (0.0ms) begin transaction
41322
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41323
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41324
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.113741"], ["updated_at", "2021-10-05 13:36:13.113741"]]
41325
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41326
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41327
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.114775"], ["claim_hash", "aVAXmPJvVwWycclHkHjz4yg0Kxz0ovlXQfWAj6FD"], ["created_at", "2021-10-05 13:36:13.114755"], ["updated_at", "2021-10-05 13:36:13.114755"]]
41328
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41329
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41330
+ TRANSACTION (0.1ms) rollback transaction
41331
+ TRANSACTION (0.0ms) begin transaction
41332
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41333
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41334
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.117308"], ["updated_at", "2021-10-05 13:36:13.117308"]]
41335
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41336
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test4@d-i.co')
41337
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41338
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["date_sent", "2021-10-05 13:36:13.118594"], ["claim_hash", "hTvMWWmgsNoMt4R2z0wKIl9FTEUNZWO4seKuoVUE"], ["created_at", "2021-10-05 13:36:13.118576"], ["updated_at", "2021-10-05 13:36:13.118576"]]
41339
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41340
+ TRANSACTION (0.1ms) rollback transaction
41341
+ TRANSACTION (0.0ms) begin transaction
41342
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41343
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41344
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.120496"], ["updated_at", "2021-10-05 13:36:13.120496"]]
41345
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41346
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
41347
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41348
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.122061"], ["date_accepted", "2021-10-05 13:36:13.121891"], ["claim_hash", "mhtKk3HxAvA53HxQVdv41CeSWrlBcDenM0gz5Orv"], ["created_at", "2021-10-05 13:36:13.122040"], ["updated_at", "2021-10-05 13:36:13.122040"]]
41349
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41350
+ TRANSACTION (0.1ms) rollback transaction
41351
+ TRANSACTION (0.0ms) begin transaction
41352
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41353
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41354
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-10-05 13:36:13.124176"], ["updated_at", "2021-10-05 13:36:13.124176"]]
41355
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41356
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41357
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test4@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.125176"], ["claim_hash", "PhGbpLOCKIBWl8jrI19vCoCGqYvgYgayaFvjEN6t"], ["created_at", "2021-10-05 13:36:13.125156"], ["updated_at", "2021-10-05 13:36:13.125156"]]
41358
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41359
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
41360
+ TRANSACTION (0.1ms) rollback transaction
41361
+ TRANSACTION (0.0ms) begin transaction
41362
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41363
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41364
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.127822"], ["updated_at", "2021-10-05 13:36:13.127822"]]
41365
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
41366
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
41367
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.128921"], ["updated_at", "2021-10-05 13:36:13.128921"]]
41368
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41369
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41370
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.130294"], ["date_accepted", "2021-10-05 13:36:13.129884"], ["claim_hash", "Ixlhru0t0WfM7imuGYedI7RJWqcFbr548fVQeuVP"], ["created_at", "2021-10-05 13:36:13.130273"], ["updated_at", "2021-10-05 13:36:13.130273"]]
41371
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41372
+ Entity Exists? (0.1ms) SELECT 1 AS one FROM "entities" INNER JOIN "invitations" ON "entities"."id" = "invitations"."invitable_id" WHERE "invitations"."user_id" = ? AND "invitations"."invitable_type" = ? AND "entities"."id" = ? LIMIT ? [["user_id", 1], ["invitable_type", "Entity"], ["id", 1], ["LIMIT", 1]]
41373
+  (0.1ms) SELECT COUNT(*) FROM "children" INNER JOIN "invitations" ON "children"."id" = "invitations"."invitable_id" WHERE "invitations"."user_id" = ? AND "invitations"."invitable_type" = ? [["user_id", 1], ["invitable_type", "Child"]]
41374
+ TRANSACTION (0.1ms) rollback transaction
41375
+ TRANSACTION (0.0ms) begin transaction
41376
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41377
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41378
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.135504"], ["updated_at", "2021-10-05 13:36:13.135504"]]
41379
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41380
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41381
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.136567"], ["claim_hash", "Wk7CB3bYiliL7VhYsb2vO24Q6pWSRocYuBwQ13Wm"], ["created_at", "2021-10-05 13:36:13.136547"], ["updated_at", "2021-10-05 13:36:13.136547"]]
41382
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41383
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41384
+ TRANSACTION (0.1ms) rollback transaction
41385
+ TRANSACTION (0.0ms) begin transaction
41386
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41387
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41388
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.138984"], ["updated_at", "2021-10-05 13:36:13.138984"]]
41389
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41390
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41391
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.139883"], ["updated_at", "2021-10-05 13:36:13.139883"]]
41392
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41393
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41394
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.140853"], ["date_accepted", "2021-10-05 13:36:13.140530"], ["claim_hash", "mWL0GMZqemRtBJkRln7UG4MEB5DEqm87auHT3tIl"], ["created_at", "2021-10-05 13:36:13.140834"], ["updated_at", "2021-10-05 13:36:13.140834"]]
41395
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41396
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41397
+ TRANSACTION (0.1ms) rollback transaction
41398
+ TRANSACTION (0.0ms) begin transaction
41399
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41400
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41401
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.143586"], ["updated_at", "2021-10-05 13:36:13.143586"]]
41402
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41403
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41404
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.144717"], ["claim_hash", "y72jRDflcwCsquOOrD6alMks9rtgXs86febJI7vN"], ["created_at", "2021-10-05 13:36:13.144697"], ["updated_at", "2021-10-05 13:36:13.144697"]]
41405
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41406
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
41407
+ TRANSACTION (0.1ms) rollback transaction
41408
+ TRANSACTION (0.0ms) begin transaction
41409
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41410
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41411
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.147529"], ["updated_at", "2021-10-05 13:36:13.147529"]]
41412
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41413
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41414
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.148487"], ["updated_at", "2021-10-05 13:36:13.148487"]]
41415
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41416
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41417
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.149458"], ["date_accepted", "2021-10-05 13:36:13.149123"], ["claim_hash", "bWrcmVyS0fnwvuQCg31A33ZXB322UhZXOBqTJo6c"], ["created_at", "2021-10-05 13:36:13.149439"], ["updated_at", "2021-10-05 13:36:13.149439"]]
41418
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41419
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
41420
+ TRANSACTION (0.1ms) rollback transaction
41421
+ TRANSACTION (0.0ms) begin transaction
41422
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41423
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41424
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.152000"], ["updated_at", "2021-10-05 13:36:13.152000"]]
41425
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41426
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41427
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.152903"], ["updated_at", "2021-10-05 13:36:13.152903"]]
41428
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41429
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41430
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.153850"], ["date_accepted", "2021-10-05 13:36:13.153525"], ["claim_hash", "m6YtcaVz07D4j9Ccwih36mJRMuQ0Y4D3NqAfqfz8"], ["created_at", "2021-10-05 13:36:13.153826"], ["updated_at", "2021-10-05 13:36:13.153826"]]
41431
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41432
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41433
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41434
+ TRANSACTION (0.1ms) rollback transaction
41435
+ TRANSACTION (0.0ms) begin transaction
41436
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41437
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41438
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.156845"], ["updated_at", "2021-10-05 13:36:13.156845"]]
41439
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41440
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41441
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.157775"], ["updated_at", "2021-10-05 13:36:13.157775"]]
41442
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41443
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41444
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.158748"], ["date_accepted", "2021-10-05 13:36:13.158415"], ["claim_hash", "bVWBOsQCjKKLqKtahwgEnBEnHzhkjvzZlpE7398h"], ["created_at", "2021-10-05 13:36:13.158730"], ["updated_at", "2021-10-05 13:36:13.158730"]]
41445
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41446
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41447
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.159742"], ["updated_at", "2021-10-05 13:36:13.159742"]]
41448
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41449
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
41450
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
41451
+ TRANSACTION (0.1ms) rollback transaction
41452
+ TRANSACTION (0.0ms) begin transaction
41453
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41454
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41455
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.163243"], ["updated_at", "2021-10-05 13:36:13.163243"]]
41456
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41457
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41458
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.164357"], ["updated_at", "2021-10-05 13:36:13.164357"]]
41459
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41460
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41461
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.165415"], ["date_accepted", "2021-10-05 13:36:13.165059"], ["claim_hash", "AhGUf3bQNygHBJtdvZ97gysr0AbndJTjGAlbCARk"], ["created_at", "2021-10-05 13:36:13.165396"], ["updated_at", "2021-10-05 13:36:13.165396"]]
41462
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41463
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41464
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41465
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
41466
+ TRANSACTION (0.1ms) rollback transaction
41467
+ TRANSACTION (0.0ms) begin transaction
41468
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41469
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41470
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.169168"], ["updated_at", "2021-10-05 13:36:13.169168"]]
41471
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41472
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41473
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.170117"], ["updated_at", "2021-10-05 13:36:13.170117"]]
41474
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41475
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41476
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.171112"], ["date_accepted", "2021-10-05 13:36:13.170775"], ["claim_hash", "QMDqVWp1PFk5KFfsOB5d8XfFnH5tpI1jqWQmM7Ap"], ["created_at", "2021-10-05 13:36:13.171092"], ["updated_at", "2021-10-05 13:36:13.171092"]]
41477
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41478
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41479
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.172158"], ["updated_at", "2021-10-05 13:36:13.172158"]]
41480
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41481
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
41482
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
41483
+ TRANSACTION (0.1ms) rollback transaction
41484
+ TRANSACTION (0.0ms) begin transaction
41485
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41486
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41487
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.174819"], ["updated_at", "2021-10-05 13:36:13.174819"]]
41488
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41489
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41490
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.175693"], ["updated_at", "2021-10-05 13:36:13.175693"]]
41491
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41492
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41493
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.176668"], ["date_accepted", "2021-10-05 13:36:13.176332"], ["claim_hash", "e3e5VqLC4QtM2x5mJ6bAH9yeSteXWKhoR7YPP0dg"], ["created_at", "2021-10-05 13:36:13.176646"], ["updated_at", "2021-10-05 13:36:13.176646"]]
41494
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41495
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41496
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41497
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
41498
+ TRANSACTION (0.1ms) rollback transaction
41499
+ TRANSACTION (0.0ms) begin transaction
41500
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41501
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41502
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.180236"], ["updated_at", "2021-10-05 13:36:13.180236"]]
41503
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41504
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41505
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.181215"], ["updated_at", "2021-10-05 13:36:13.181215"]]
41506
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41507
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41508
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.182176"], ["date_accepted", "2021-10-05 13:36:13.181848"], ["claim_hash", "OeDvvKfsZlvSarfJdAgmiFUInlQtdVkUxufntKko"], ["created_at", "2021-10-05 13:36:13.182157"], ["updated_at", "2021-10-05 13:36:13.182157"]]
41509
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41510
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41511
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
41512
+ Invitation Destroy (0.1ms) DELETE FROM "invitations" WHERE "invitations"."id" = ? [["id", 1]]
41513
+ User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
41514
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41515
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41516
+ TRANSACTION (0.1ms) rollback transaction
41517
+ TRANSACTION (0.0ms) begin transaction
41518
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41519
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41520
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.185879"], ["updated_at", "2021-10-05 13:36:13.185879"]]
41521
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41522
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41523
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.186861"], ["claim_hash", "XgtZsdsOD2mUiTQSdY9ed0asiLA1j0SOJrrVmzg3"], ["created_at", "2021-10-05 13:36:13.186842"], ["updated_at", "2021-10-05 13:36:13.186842"]]
41524
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41525
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41526
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41527
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.189279"], ["updated_at", "2021-10-05 13:36:13.189279"]]
41528
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41529
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
41530
+ User Load (0.1ms) SELECT "users".* FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'uberadmin')
41531
+ TRANSACTION (0.1ms) rollback transaction
41532
+ TRANSACTION (0.0ms) begin transaction
41533
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41534
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41535
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.192237"], ["updated_at", "2021-10-05 13:36:13.192237"]]
41536
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41537
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41538
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.193374"], ["claim_hash", "GthnScT8CiFcSd1QsPTyzEeoYQvNRBu77RwAOtXe"], ["created_at", "2021-10-05 13:36:13.193347"], ["updated_at", "2021-10-05 13:36:13.193347"]]
41539
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41540
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'employer') AND "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41541
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
41542
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.195427"], ["updated_at", "2021-10-05 13:36:13.195427"]]
41543
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41544
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'employer') AND "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
41545
+ User Load (0.1ms) SELECT "users".* FROM "users" INNER JOIN "invitations" ON "invitations"."user_id" = "users"."id" WHERE (invitable_id IS NULL AND role = 'employer')
41546
+ TRANSACTION (0.1ms) rollback transaction
41547
+ TRANSACTION (0.0ms) begin transaction
41548
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41549
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41550
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.198452"], ["updated_at", "2021-10-05 13:36:13.198452"]]
41551
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41552
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41553
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.199357"], ["updated_at", "2021-10-05 13:36:13.199357"]]
41554
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41555
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41556
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.200336"], ["date_accepted", "2021-10-05 13:36:13.199995"], ["claim_hash", "J3VWTnpLY7ON2hr4nOAw7CtGtVKVyKeYEUXqoefc"], ["created_at", "2021-10-05 13:36:13.200317"], ["updated_at", "2021-10-05 13:36:13.200317"]]
41557
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41558
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41559
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.201241"], ["updated_at", "2021-10-05 13:36:13.201241"]]
41560
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41561
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41562
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.202043"], ["claim_hash", "1Mqv26g7uw0y1J0gywkkX68x79RtUbsH6Xqg1uAQ"], ["created_at", "2021-10-05 13:36:13.202025"], ["updated_at", "2021-10-05 13:36:13.202025"]]
41563
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41564
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41565
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41566
+ TRANSACTION (0.1ms) rollback transaction
41567
+ TRANSACTION (0.0ms) begin transaction
41568
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41569
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41570
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.204844"], ["updated_at", "2021-10-05 13:36:13.204844"]]
41571
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41572
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41573
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.205776"], ["updated_at", "2021-10-05 13:36:13.205776"]]
41574
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41575
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41576
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.206755"], ["date_accepted", "2021-10-05 13:36:13.206416"], ["claim_hash", "AghlyOYnCzCHslcEudGUJ2s3e71faH9KFejthTYz"], ["created_at", "2021-10-05 13:36:13.206736"], ["updated_at", "2021-10-05 13:36:13.206736"]]
41577
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41578
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41579
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.207657"], ["updated_at", "2021-10-05 13:36:13.207657"]]
41580
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41581
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41582
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.208469"], ["claim_hash", "gYMokCHpUScm0ncH7UbzNHsqyNCPq8Wa2ZvFYw5i"], ["created_at", "2021-10-05 13:36:13.208452"], ["updated_at", "2021-10-05 13:36:13.208452"]]
41583
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41584
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41585
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.209290"], ["updated_at", "2021-10-05 13:36:13.209290"]]
41586
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41587
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
41588
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
41589
+ TRANSACTION (0.1ms) rollback transaction
41590
+ TRANSACTION (0.0ms) begin transaction
41591
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41592
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41593
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.211993"], ["updated_at", "2021-10-05 13:36:13.211993"]]
41594
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41595
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41596
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.213120"], ["updated_at", "2021-10-05 13:36:13.213120"]]
41597
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41598
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41599
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.214119"], ["date_accepted", "2021-10-05 13:36:13.213783"], ["claim_hash", "pYEQ8aWJORtdFWKdMsdrgcRBjLJ9vGqf47ZinpCX"], ["created_at", "2021-10-05 13:36:13.214101"], ["updated_at", "2021-10-05 13:36:13.214101"]]
41600
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41601
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41602
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.215024"], ["updated_at", "2021-10-05 13:36:13.215024"]]
41603
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41604
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41605
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.215821"], ["claim_hash", "tve9tDatfYq7TSbBwSTb1njGjCGusIS3t7qi5OGS"], ["created_at", "2021-10-05 13:36:13.215803"], ["updated_at", "2021-10-05 13:36:13.215803"]]
41606
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41607
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
41608
+ TRANSACTION (0.1ms) rollback transaction
41609
+ TRANSACTION (0.0ms) begin transaction
41610
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41611
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41612
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.218309"], ["updated_at", "2021-10-05 13:36:13.218309"]]
41613
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41614
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41615
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.219215"], ["updated_at", "2021-10-05 13:36:13.219215"]]
41616
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41617
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41618
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.220177"], ["date_accepted", "2021-10-05 13:36:13.219844"], ["claim_hash", "v5hxEdo3kEfewe9YkzWxXszfiB8VljaWBTa4X19a"], ["created_at", "2021-10-05 13:36:13.220157"], ["updated_at", "2021-10-05 13:36:13.220157"]]
41619
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41620
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41621
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.221072"], ["updated_at", "2021-10-05 13:36:13.221072"]]
41622
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41623
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41624
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.221868"], ["claim_hash", "w8M8QJIYVCuY34LvAYZnQOAloNaZK6qyXTVRCcqk"], ["created_at", "2021-10-05 13:36:13.221850"], ["updated_at", "2021-10-05 13:36:13.221850"]]
41625
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41626
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41627
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41628
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
41629
+ TRANSACTION (0.1ms) rollback transaction
41630
+ TRANSACTION (0.0ms) begin transaction
41631
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41632
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41633
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.225484"], ["updated_at", "2021-10-05 13:36:13.225484"]]
41634
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41635
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41636
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.226609"], ["updated_at", "2021-10-05 13:36:13.226609"]]
41637
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41638
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41639
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.227679"], ["date_accepted", "2021-10-05 13:36:13.227324"], ["claim_hash", "Sxr0QaD6TH3cDf4WeCEQzVX0WkUvUuIYG6XHVZMs"], ["created_at", "2021-10-05 13:36:13.227661"], ["updated_at", "2021-10-05 13:36:13.227661"]]
41640
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41641
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41642
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.228660"], ["updated_at", "2021-10-05 13:36:13.228660"]]
41643
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41644
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41645
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.229673"], ["claim_hash", "dgONzOTI8jVZ7qsCGdILCqFz6NUCh5cZpLulZRlY"], ["created_at", "2021-10-05 13:36:13.229653"], ["updated_at", "2021-10-05 13:36:13.229653"]]
41646
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41647
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41648
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41649
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
41650
+ TRANSACTION (0.1ms) rollback transaction
41651
+ TRANSACTION (0.0ms) begin transaction
41652
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41653
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41654
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.232939"], ["updated_at", "2021-10-05 13:36:13.232939"]]
41655
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41656
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41657
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.233860"], ["updated_at", "2021-10-05 13:36:13.233860"]]
41658
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41659
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41660
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.234817"], ["date_accepted", "2021-10-05 13:36:13.234494"], ["claim_hash", "knkVjubfnGNbowKgh8rl1eUmnooUSZfVZGLEJxW6"], ["created_at", "2021-10-05 13:36:13.234797"], ["updated_at", "2021-10-05 13:36:13.234797"]]
41661
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41662
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41663
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.235710"], ["updated_at", "2021-10-05 13:36:13.235710"]]
41664
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41665
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41666
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.236524"], ["claim_hash", "kSANoLkxmovrvTuI5CjuIIZ6coCXzgtXA7hD3o7v"], ["created_at", "2021-10-05 13:36:13.236506"], ["updated_at", "2021-10-05 13:36:13.236506"]]
41667
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41668
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41669
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.237329"], ["updated_at", "2021-10-05 13:36:13.237329"]]
41670
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41671
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
41672
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
41673
+ TRANSACTION (0.1ms) rollback transaction
41674
+ TRANSACTION (0.0ms) begin transaction
41675
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41676
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41677
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.240960"], ["updated_at", "2021-10-05 13:36:13.240960"]]
41678
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41679
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41680
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.241966"], ["updated_at", "2021-10-05 13:36:13.241966"]]
41681
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41682
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41683
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.242965"], ["date_accepted", "2021-10-05 13:36:13.242620"], ["claim_hash", "jDboFuzyiGUIwuGcw6MhzhTICPgoLMBCtDWl6cRA"], ["created_at", "2021-10-05 13:36:13.242943"], ["updated_at", "2021-10-05 13:36:13.242943"]]
41684
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41685
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41686
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.243887"], ["updated_at", "2021-10-05 13:36:13.243887"]]
41687
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41688
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41689
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.244711"], ["claim_hash", "DCXQXzEayEMcfARF4Xl6lDojno5EvXkSnqXyQWXj"], ["created_at", "2021-10-05 13:36:13.244690"], ["updated_at", "2021-10-05 13:36:13.244690"]]
41690
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41691
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
41692
+ TRANSACTION (0.1ms) rollback transaction
41693
+ TRANSACTION (0.0ms) begin transaction
41694
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41695
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41696
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.247444"], ["updated_at", "2021-10-05 13:36:13.247444"]]
41697
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41698
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41699
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.248387"], ["updated_at", "2021-10-05 13:36:13.248387"]]
41700
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41701
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41702
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.249355"], ["date_accepted", "2021-10-05 13:36:13.249024"], ["claim_hash", "t0AtzmPXh0MzRbym7saM78eD3cOv5TuApnQwY9pA"], ["created_at", "2021-10-05 13:36:13.249336"], ["updated_at", "2021-10-05 13:36:13.249336"]]
41703
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41704
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41705
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.250258"], ["updated_at", "2021-10-05 13:36:13.250258"]]
41706
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41707
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41708
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.251072"], ["claim_hash", "46SjMZD3FIQE8baz0YlhxXL8GwNkNvnkUZiaRQH1"], ["created_at", "2021-10-05 13:36:13.251055"], ["updated_at", "2021-10-05 13:36:13.251055"]]
41709
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41710
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41711
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41712
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
41713
+ TRANSACTION (0.1ms) rollback transaction
41714
+ TRANSACTION (0.0ms) begin transaction
41715
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41716
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41717
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.254530"], ["updated_at", "2021-10-05 13:36:13.254530"]]
41718
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41719
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41720
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.255530"], ["updated_at", "2021-10-05 13:36:13.255530"]]
41721
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41722
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41723
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.256511"], ["date_accepted", "2021-10-05 13:36:13.256180"], ["claim_hash", "sSlE1X2su291QJPygQEGt5krcbhla9Db8lmXVrYQ"], ["created_at", "2021-10-05 13:36:13.256491"], ["updated_at", "2021-10-05 13:36:13.256491"]]
41724
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41725
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41726
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.257428"], ["updated_at", "2021-10-05 13:36:13.257428"]]
41727
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41728
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41729
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.258273"], ["claim_hash", "VI2g05wuG6t070B2CC84429LLHyn8TLgRZCwtNqL"], ["created_at", "2021-10-05 13:36:13.258255"], ["updated_at", "2021-10-05 13:36:13.258255"]]
41730
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41731
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41732
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41733
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) ORDER BY "invitations"."id" ASC LIMIT ? [["user_id", 1], ["LIMIT", 1]]
41734
+ TRANSACTION (0.1ms) rollback transaction
41735
+ TRANSACTION (0.0ms) begin transaction
41736
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41737
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41738
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.261868"], ["updated_at", "2021-10-05 13:36:13.261868"]]
41739
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41740
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41741
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.262981"], ["updated_at", "2021-10-05 13:36:13.262981"]]
41742
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41743
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41744
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.263968"], ["date_accepted", "2021-10-05 13:36:13.263631"], ["claim_hash", "DvrdZ5SmgNM1zcxjRgFyxZOB7Zcc4RdNDN4mMvcW"], ["created_at", "2021-10-05 13:36:13.263949"], ["updated_at", "2021-10-05 13:36:13.263949"]]
41745
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41746
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41747
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.264917"], ["updated_at", "2021-10-05 13:36:13.264917"]]
41748
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41749
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41750
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.265746"], ["claim_hash", "A6QmzqDNp8TN8MAFHeoNz9ngLDMIg3QUXLAwtNSx"], ["created_at", "2021-10-05 13:36:13.265728"], ["updated_at", "2021-10-05 13:36:13.265728"]]
41751
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41752
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41753
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.266566"], ["updated_at", "2021-10-05 13:36:13.266566"]]
41754
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41755
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
41756
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
41757
+ TRANSACTION (0.1ms) rollback transaction
41758
+ TRANSACTION (0.0ms) begin transaction
41759
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41760
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41761
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-10-05 13:36:13.269255"], ["updated_at", "2021-10-05 13:36:13.269255"]]
41762
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41763
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41764
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.270112"], ["updated_at", "2021-10-05 13:36:13.270112"]]
41765
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41766
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41767
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test1@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.271060"], ["date_accepted", "2021-10-05 13:36:13.270737"], ["claim_hash", "XN75bybpzxnLVV90Ifa3jMGP8kE6b4d5DxBIg5gN"], ["created_at", "2021-10-05 13:36:13.271041"], ["updated_at", "2021-10-05 13:36:13.271041"]]
41768
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41769
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41770
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-10-05 13:36:13.271995"], ["updated_at", "2021-10-05 13:36:13.271995"]]
41771
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41772
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41773
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test3@d-i.co"], ["role", "uberadmin"], ["user_id", 2], ["date_sent", "2021-10-05 13:36:13.272835"], ["claim_hash", "emiSLXc6xpTHTMhagPzNbu1ZUtbXTcDnTwRsx3va"], ["created_at", "2021-10-05 13:36:13.272817"], ["updated_at", "2021-10-05 13:36:13.272817"]]
41774
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41775
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
41776
+ TRANSACTION (0.1ms) rollback transaction
41777
+ TRANSACTION (0.0ms) begin transaction
41778
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41779
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41780
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.275295"], ["updated_at", "2021-10-05 13:36:13.275295"]]
41781
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41782
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41783
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.276193"], ["updated_at", "2021-10-05 13:36:13.276193"]]
41784
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41785
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41786
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.277087"], ["claim_hash", "GiAG1YowapGj8f7n22fvH0zDmPHtxqJxwTc9SReN"], ["created_at", "2021-10-05 13:36:13.277068"], ["updated_at", "2021-10-05 13:36:13.277068"]]
41787
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41788
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41789
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-10-05 13:36:13.277968"], ["updated_at", "2021-10-05 13:36:13.277968"]]
41790
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41791
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41792
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 2], ["date_sent", "2021-10-05 13:36:13.278936"], ["claim_hash", "gL0kpxNqELWTdR9dg4AXlM5gTRlozJf6O848rFUc"], ["created_at", "2021-10-05 13:36:13.278907"], ["updated_at", "2021-10-05 13:36:13.278907"]]
41793
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41794
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test@d-i.co' AND user_id IS NULL)
41795
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41796
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41797
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:36:13.280119"], ["updated_at", "2021-10-05 13:36:13.280855"], ["id", 1]]
41798
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41799
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41800
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
41801
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:36:13.281494"], ["updated_at", "2021-10-05 13:36:13.282089"], ["id", 2]]
41802
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41803
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
41804
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 2], ["LIMIT", 1]]
41805
+ TRANSACTION (0.1ms) rollback transaction
41806
+ TRANSACTION (0.0ms) begin transaction
41807
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41808
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41809
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-10-05 13:36:13.284891"], ["updated_at", "2021-10-05 13:36:13.284891"]]
41810
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41811
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41812
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "foo@d-i.co"], ["role", "user"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.286156"], ["claim_hash", "b6g7nIbCzNKBNvh4OiD2PGPFUdq8tutcp8sCiQpv"], ["created_at", "2021-10-05 13:36:13.286135"], ["updated_at", "2021-10-05 13:36:13.286135"]]
41813
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41814
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41815
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.287074"], ["updated_at", "2021-10-05 13:36:13.287074"]]
41816
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41817
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test@d-i.co' AND user_id IS NULL)
41818
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
41819
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
41820
+ TRANSACTION (0.1ms) rollback transaction
41821
+ TRANSACTION (0.0ms) begin transaction
41822
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41823
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41824
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.290068"], ["updated_at", "2021-10-05 13:36:13.290068"]]
41825
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41826
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41827
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.291021"], ["updated_at", "2021-10-05 13:36:13.291021"]]
41828
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41829
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41830
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.291988"], ["claim_hash", "ejolpPGCnGxEQjzPjyZUk5nph2TAR3QkJy8IP6yT"], ["created_at", "2021-10-05 13:36:13.291968"], ["updated_at", "2021-10-05 13:36:13.291968"]]
41831
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41832
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'ejolpPGCnGxEQjzPjyZUk5nph2TAR3QkJy8IP6yT') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
41833
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41834
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41835
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:36:13.293429"], ["updated_at", "2021-10-05 13:36:13.294190"], ["id", 1]]
41836
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41837
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
41838
+ TRANSACTION (0.1ms) rollback transaction
41839
+ TRANSACTION (0.0ms) begin transaction
41840
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41841
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41842
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.296867"], ["updated_at", "2021-10-05 13:36:13.296867"]]
41843
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41844
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41845
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "foo@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.297979"], ["claim_hash", "UqqQ71YGBK25XOo1V1R8bjKUURuzIMCbmgGvhps0"], ["created_at", "2021-10-05 13:36:13.297959"], ["updated_at", "2021-10-05 13:36:13.297959"]]
41846
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41847
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41848
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.298895"], ["updated_at", "2021-10-05 13:36:13.298895"]]
41849
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41850
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'UqqQ71YGBK25XOo1V1R8bjKUURuzIMCbmgGvhps0') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
41851
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41852
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
41853
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-10-05 13:36:13.299976"], ["updated_at", "2021-10-05 13:36:13.300695"], ["id", 1]]
41854
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41855
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
41856
+ TRANSACTION (0.1ms) rollback transaction
41857
+ TRANSACTION (0.0ms) begin transaction
41858
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41859
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41860
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2021-10-05 13:36:13.303037"], ["updated_at", "2021-10-05 13:36:13.303037"]]
41861
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41862
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41863
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.303914"], ["updated_at", "2021-10-05 13:36:13.303914"]]
41864
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41865
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41866
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "foo@bar.com"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.304913"], ["date_accepted", "2021-10-05 13:36:13.304578"], ["claim_hash", "4BXLZ3cEvBCFXTcO6wDw3xd67L2qYvslwoMPmejl"], ["created_at", "2021-10-05 13:36:13.304894"], ["updated_at", "2021-10-05 13:36:13.304894"]]
41867
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41868
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41869
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.305858"], ["updated_at", "2021-10-05 13:36:13.305858"]]
41870
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41871
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = '4BXLZ3cEvBCFXTcO6wDw3xd67L2qYvslwoMPmejl') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
41872
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 2], ["id", 1], ["LIMIT", 1]]
41873
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 2]]
41874
+ TRANSACTION (0.1ms) rollback transaction
41875
+ TRANSACTION (0.0ms) begin transaction
41876
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41877
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41878
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.308932"], ["updated_at", "2021-10-05 13:36:13.308932"]]
41879
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41880
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41881
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-10-05 13:36:13.309792"], ["updated_at", "2021-10-05 13:36:13.309792"]]
41882
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41883
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41884
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.310698"], ["claim_hash", "Lgaj4Ex2zxuLaQYDnztw702vFCS26G7zxYBXbeZO"], ["created_at", "2021-10-05 13:36:13.310679"], ["updated_at", "2021-10-05 13:36:13.310679"]]
41885
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41886
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'THIS_IS_A_BAD_HASH') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
41887
+ Invitation Exists? (0.1ms) SELECT 1 AS one FROM "invitations" WHERE "invitations"."user_id" = ? AND "invitations"."id" = ? LIMIT ? [["user_id", 1], ["id", 1], ["LIMIT", 1]]
41888
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
41889
+ TRANSACTION (0.1ms) rollback transaction
41890
+ TRANSACTION (0.0ms) begin transaction
41891
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41892
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41893
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:36:13.314179"], ["updated_at", "2021-10-05 13:36:13.314179"]]
41894
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41895
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? AND (email = 'test@d-i.co') [["invitable_id", 1], ["invitable_type", "Entity"]]
41896
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41897
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.316152"], ["claim_hash", "osWMvI8eQgu9Zlq2VaHN9fiMmxX1s2upHM2QJ3VT"], ["created_at", "2021-10-05 13:36:13.316126"], ["updated_at", "2021-10-05 13:36:13.316126"]]
41898
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41899
+ TRANSACTION (0.1ms) rollback transaction
41900
+ TRANSACTION (0.0ms) begin transaction
41901
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41902
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41903
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:36:13.318316"], ["updated_at", "2021-10-05 13:36:13.318316"]]
41904
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41905
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41906
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["date_sent", "2021-10-05 13:36:13.319338"], ["claim_hash", "74sNrc7CCimDl4zKOCxoXAMjZ8CUm54FLnkDaIKw"], ["created_at", "2021-10-05 13:36:13.319317"], ["updated_at", "2021-10-05 13:36:13.319317"]]
41907
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41908
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? AND (email = 'test@d-i.co') [["invitable_id", 1], ["invitable_type", "Entity"]]
41909
+ TRANSACTION (0.1ms) rollback transaction
41910
+ TRANSACTION (0.0ms) begin transaction
41911
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41912
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41913
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:36:13.321915"], ["updated_at", "2021-10-05 13:36:13.321915"]]
41914
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41915
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41916
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.322813"], ["updated_at", "2021-10-05 13:36:13.322813"]]
41917
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41918
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41919
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41920
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.324355"], ["date_accepted", "2021-10-05 13:36:13.324150"], ["claim_hash", "aaUtFlPgQ6du5YvxFc3dA6ONGS7QXDdlilhV3ZGq"], ["created_at", "2021-10-05 13:36:13.324334"], ["updated_at", "2021-10-05 13:36:13.324334"]]
41921
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41922
+ TRANSACTION (0.1ms) rollback transaction
41923
+ TRANSACTION (0.0ms) begin transaction
41924
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41925
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41926
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-10-05 13:36:13.326628"], ["updated_at", "2021-10-05 13:36:13.326628"]]
41927
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41928
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41929
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-10-05 13:36:13.327679"], ["updated_at", "2021-10-05 13:36:13.327679"]]
41930
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41931
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41932
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "invitable_type", "invitable_id", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "admin"], ["invitable_type", "Entity"], ["invitable_id", 1], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.328650"], ["claim_hash", "Ra2fMdmW57k1iGio4Y7tau2uqoK0K6VMsLmyKUeY"], ["created_at", "2021-10-05 13:36:13.328629"], ["updated_at", "2021-10-05 13:36:13.328629"]]
41933
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41934
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
41935
+ TRANSACTION (0.1ms) rollback transaction
41936
+ TRANSACTION (0.0ms) begin transaction
41937
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41938
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test@d-i.co')
41939
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41940
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "employer"], ["date_sent", "2021-10-05 13:36:13.332075"], ["claim_hash", "Qve0SrjVAsj5FK3qBjK4DWQRsfKgzRZZMmwUlUCI"], ["created_at", "2021-10-05 13:36:13.332054"], ["updated_at", "2021-10-05 13:36:13.332054"]]
41941
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41942
+ TRANSACTION (0.1ms) rollback transaction
41943
+ TRANSACTION (0.0ms) begin transaction
41944
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41945
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41946
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "employer"], ["date_sent", "2021-10-05 13:36:13.334134"], ["claim_hash", "CX4yVxyvgwEYfyCor64606LTXtarFOozk0poLKnd"], ["created_at", "2021-10-05 13:36:13.334116"], ["updated_at", "2021-10-05 13:36:13.334116"]]
41947
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41948
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test@d-i.co')
41949
+ TRANSACTION (0.1ms) rollback transaction
41950
+ TRANSACTION (0.0ms) begin transaction
41951
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41952
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41953
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.336471"], ["updated_at", "2021-10-05 13:36:13.336471"]]
41954
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41955
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
41956
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41957
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.338043"], ["date_accepted", "2021-10-05 13:36:13.337864"], ["claim_hash", "OmIgoEZ0QhrhiiRl0SegxAW1D65jEGqctuD1MKBa"], ["created_at", "2021-10-05 13:36:13.338022"], ["updated_at", "2021-10-05 13:36:13.338022"]]
41958
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41959
+ TRANSACTION (0.1ms) rollback transaction
41960
+ TRANSACTION (0.0ms) begin transaction
41961
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41962
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41963
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.340458"], ["updated_at", "2021-10-05 13:36:13.340458"]]
41964
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41965
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41966
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "employer"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.341630"], ["claim_hash", "VgpuHPspqoVSvkA0f8T942lKp705NlMxaRNf9PB9"], ["created_at", "2021-10-05 13:36:13.341609"], ["updated_at", "2021-10-05 13:36:13.341609"]]
41967
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41968
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
41969
+ TRANSACTION (0.1ms) rollback transaction
41970
+ TRANSACTION (0.0ms) begin transaction
41971
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41972
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test@d-i.co')
41973
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41974
+ Invitation Create (0.2ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "uberadmin"], ["date_sent", "2021-10-05 13:36:13.344849"], ["claim_hash", "GifBVHgNpNLyFdu2hHnJJxm24VXjZ49jmZbXzzQy"], ["created_at", "2021-10-05 13:36:13.344827"], ["updated_at", "2021-10-05 13:36:13.344827"]]
41975
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41976
+ TRANSACTION (0.1ms) rollback transaction
41977
+ TRANSACTION (0.0ms) begin transaction
41978
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41979
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41980
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@d-i.co"], ["role", "uberadmin"], ["date_sent", "2021-10-05 13:36:13.347367"], ["claim_hash", "bi6YU1tj0jlhSrlwiY3YMv7C3E8y3ohXP4APrXwu"], ["created_at", "2021-10-05 13:36:13.347344"], ["updated_at", "2021-10-05 13:36:13.347344"]]
41981
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41982
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test@d-i.co')
41983
+ TRANSACTION (0.1ms) rollback transaction
41984
+ TRANSACTION (0.0ms) begin transaction
41985
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
41986
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41987
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.349935"], ["updated_at", "2021-10-05 13:36:13.349935"]]
41988
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
41989
+  (1.8ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
41990
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
41991
+ Invitation Create (0.3ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "date_accepted", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.360945"], ["date_accepted", "2021-10-05 13:36:13.360664"], ["claim_hash", "ovrkTUqtW2R41lKpmf2Z6Wu6CeEAF7hMBXptpVeS"], ["created_at", "2021-10-05 13:36:13.360920"], ["updated_at", "2021-10-05 13:36:13.360920"]]
41992
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41993
+ TRANSACTION (0.1ms) rollback transaction
41994
+ TRANSACTION (0.0ms) begin transaction
41995
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
41996
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
41997
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-10-05 13:36:13.363755"], ["updated_at", "2021-10-05 13:36:13.363755"]]
41998
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
41999
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
42000
+ Invitation Create (0.1ms) INSERT INTO "invitations" ("email", "role", "user_id", "date_sent", "claim_hash", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "test2@d-i.co"], ["role", "uberadmin"], ["user_id", 1], ["date_sent", "2021-10-05 13:36:13.364909"], ["claim_hash", "R44pGbKcusLRlKxTT0Zoo7sjIy7kmFRmQWNXqCp6"], ["created_at", "2021-10-05 13:36:13.364888"], ["updated_at", "2021-10-05 13:36:13.364888"]]
42001
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
42002
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
42003
+ TRANSACTION (0.1ms) rollback transaction