invitational 1.4.3 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af388ccc20a3513b120fec55e474320a8b88c09cf053010469d88ba9873acfc0
4
- data.tar.gz: d1e71d80069272487e609ef2bd31857e74a0481c44b5bd0e7406108987a46893
3
+ metadata.gz: 90b14930ffb9ebebb18a0da8bd647bd0434dff80b80a965a379f95794f8aa905
4
+ data.tar.gz: 8433d9fb558307f9ffb50d8cf8bc2f77da79b01eac40f5504fb711d1226ef4e5
5
5
  SHA512:
6
- metadata.gz: 733a15218e67582ce0be92bc31d01b70ec7c88ae9134faee5449fa4e234f196f07f27a47b8e92c4140fc6ec7d4f61ffd0310bd4d0a890696fbccff0162a3d1f4
7
- data.tar.gz: 7d40414dd5f4c86e9b77793e17c403d47fc27d493095f9a7fdfd90682f72b9a7b6290cd347ccf6693bd0e23f087d2c92a4003a48907952dbf33e802b0c2f8c0a
6
+ metadata.gz: 69f965c0e65204e0d2cae79be1f386ca4a48e5d1a93c0de06e6fc53d84820051da517c4b66ed892494743b7aafb70d9861ab81dbce998d99e096f26df90ff888
7
+ data.tar.gz: 1453db72a6e380227ab83e8c8d2bae5e81e09f2be8d8da3a618c8b58c3e0a6e3ca54ea0bc83bc4670b40ba0f2c58d96dfd3cbb97689b30968105e591e6d90c25
data/README.md CHANGED
@@ -44,11 +44,11 @@ rake db:migrate
44
44
  Invitational has three types of invitations:
45
45
 
46
46
  ## Entity
47
- An `Entity` invitation, as the name imples, is for a specific entity within the system. For example, in a contract management system, a user might be invited to a
47
+ An `Entity` invitation, as the name imples, is for a specific entity within the system. For example, in a contract management system, a user might be invited to a
48
48
  contract in the sytem with the role of 'Recipient' . They might then be able to read and to mark that specific contract as signed, but not access any other contracts in the system.
49
49
 
50
50
  ## System
51
- A `System` invitation is not related to a specific entity, but to the system overall. For example, in the contract management system mentioned above, another user might be
51
+ A `System` invitation is not related to a specific entity, but to the system overall. For example, in the contract management system mentioned above, another user might be
52
52
  invited to the sytem with the role of 'contract_manager'. They might then be able to manage *all* contracts within the system, but not have authority to invite other users.
53
53
 
54
54
  ## UberAdmin
@@ -58,9 +58,9 @@ effectively grants the associated user access to all parts of the system, as eve
58
58
  # Implementation
59
59
 
60
60
  ## invited_to
61
- The generator will setup your identity model (`User`) to include the `Invitational::InvitedTo` module. As part of the Invitational
62
- functionality it provides, the `invited_to` method is added to your user class along with the foundational has_many relationship to
63
- Invitation. This method accepts a list of the entity classes (as symbols)
61
+ The generator will setup your identity model (`User`) to include the `Invitational::InvitedTo` module. As part of the Invitational
62
+ functionality it provides, the `invited_to` method is added to your user class along with the foundational has_many relationship to
63
+ Invitation. This method accepts a list of the entity classes (as symbols)
64
64
  to which a user can be invited:
65
65
 
66
66
  ```
@@ -82,7 +82,7 @@ To configure an entity as able to accept invitations, use the `make_invitable` g
82
82
  rails generate invitational:make_invitable MODEL, ROLE1, ROLE2...
83
83
  ```
84
84
 
85
- Here, replace MODEL with the name of the entity class you are making invitable. Replace, ROLE1, ROLE2 with the
85
+ Here, replace MODEL with the name of the entity class you are making invitable. Replace, ROLE1, ROLE2 with the
86
86
  list of roles which are valid to this model, for example User, Admin. The generator will include the `Invitational::AcceptsInvitationAs`
87
87
  module, and will pre-populate the call to the `accepts_invitation_as` method with the list of roles supplied:
88
88
 
@@ -101,7 +101,7 @@ entity.admins
101
101
  You can then add this entity to the list of invitable classes on the `invited_to` call in your identity class.
102
102
 
103
103
  ## accepts_system_roles_as
104
- System roles are defined in the `Invitation` class. Simply add the list of system roles to the class method that has been defined for you by the
104
+ System roles are defined in the `Invitation` class. Simply add the list of system roles to the class method that has been defined for you by the
105
105
  generator:
106
106
 
107
107
  ```
@@ -139,8 +139,8 @@ To create an invitation to a system role:
139
139
  Invitation.invite_system_user "foo@bar.com", :contract_manager
140
140
  ```
141
141
 
142
- The method will return the Invitation. In the event that the email has already been invited to that entity or to the system role,
143
- an `Invitational::AlreadyInvitedError` will be raised. If the passed role is not valid for the given entity (based on its
142
+ The method will return the Invitation. In the event that the email has already been invited to that entity or to the system role,
143
+ an `Invitational::AlreadyInvitedError` will be raised. If the passed role is not valid for the given entity (based on its
144
144
  `accepts_invitation_as` call) or not a valid system role, an `Invitational::InvalidRoleError` will be raised.
145
145
 
146
146
 
@@ -172,14 +172,14 @@ Invitations can be claimed by passing their hash and the claiming user to the `c
172
172
  Invitation.claim claim_hash, current_user
173
173
  ```
174
174
 
175
- The method will return the claimed Invitation. In the event that the hash does match an existing invitation,
176
- an `Invitational::InvitationNotFoundError` will be raised. If the hash is found, but the invitation has already
175
+ The method will return the claimed Invitation. In the event that the hash does match an existing invitation,
176
+ an `Invitational::InvitationNotFoundError` will be raised. If the hash is found, but the invitation has already
177
177
  been claimed, an `Invitational::AlreadyClaimedError` will be raised.
178
178
 
179
179
  ## Checking for Invitations
180
180
 
181
- The `invited_to?` instance method that Invitational adds to your identity class provides an easy interface to
182
- check if a user has an accepted invitation to a specific entity. Your query can be general (invited in any role) or
181
+ The `invited_to?` instance method that Invitational adds to your identity class provides an easy interface to
182
+ check if a user has an accepted invitation to a specific entity. Your query can be general (invited in any role) or
183
183
  specifically for a supplied role:
184
184
 
185
185
  ```
@@ -203,8 +203,8 @@ current_user.invited_to_system? :contract_manager
203
203
  ## UberAdmin
204
204
 
205
205
  Invitational provides a special, system-wide, invitation and role called `:uberadmin`. A user that has
206
- claimed an UberAdmin invitation will always indicate they have been invited to a given role for a given entity.
207
- In other words, every call to `invited_to?` or `invited_to_system?` for an UberAdmin will return true.
206
+ claimed an UberAdmin invitation will always indicate they have been invited to a given role for a given entity.
207
+ In other words, every call to `invited_to?` or `invited_to_system?` for an UberAdmin will return true.
208
208
 
209
209
  To create an UberAdmin invitation:
210
210
 
@@ -221,7 +221,7 @@ Invitation.invite_uberadmin current_user
221
221
 
222
222
  The process to claim an UberAdmin invitation is the same as any other invitation.
223
223
 
224
- To make getting started with a brand new Invitational based environment easier, a rake task is provided to
224
+ To make getting started with a brand new Invitational based environment easier, a rake task is provided to
225
225
  create a new UberAdmin invitation.
226
226
 
227
227
  ```
@@ -239,8 +239,8 @@ current_user.uberadmin?
239
239
  ## CanCanCan
240
240
 
241
241
  Invitational adds a new condition key to CanCanCan's abilities, `:role`. This allows you to define the role(s)
242
- that a user must be invited into for a specific entity in order to perform the specified action. For example,
243
- to indicate that a user invited to a Parent entity in an admin role can manage the parent entity, but a user
242
+ that a user must be invited into for a specific entity in order to perform the specified action. For example,
243
+ to indicate that a user invited to a Parent entity in an admin role can manage the parent entity, but a user
244
244
  invited to a staff role can only read the parent entity, in your `ability.rb` file:
245
245
 
246
246
  ```
@@ -250,7 +250,7 @@ cannot :edit, Parent, roles: [:consultant]
250
250
  ```
251
251
 
252
252
  ### Wildcard Roles
253
- Often is is neccessary to indicate that a user invited in any role has a given permission. For example, to
253
+ Often is is neccessary to indicate that a user invited in any role has a given permission. For example, to
254
254
  indicate that any user invited to a Parent entity can view that Parent, regardless of their role:
255
255
 
256
256
  ```
@@ -262,13 +262,13 @@ can :view, Parent, roles: [:*]
262
262
  To specify system roles for a given ability, utilize the `system_roles` method inside a `roles:` array:
263
263
 
264
264
  ```
265
- can :manage, contract, roles: [system_roles(:contract_manager, :sales_manager)]
265
+ can :manage, contract, roles: [system_roles([:contract_manager, :sales_manager])]
266
266
  ```
267
267
 
268
268
 
269
269
  ### Invitation to a parent (or other attribute)
270
270
  To idenfitify abilities based upon invitations to a parent entity or other attribute, Invitational provides an
271
- ```attribute_roles``` method. The first argument is symbol indicating the attribute name of the parent entity,
271
+ ```attribute_roles``` method. The first argument is symbol indicating the attribute name of the parent entity,
272
272
  the second is an array of roles in which the user must be invited to the parent entity:
273
273
 
274
274
  ```
@@ -80,7 +80,7 @@ module Invitational
80
80
 
81
81
  def setup_hash
82
82
  self.date_sent = DateTime.now
83
- self.claim_hash = Digest::SHA1.hexdigest(email + date_sent.to_s)
83
+ self.claim_hash = SecureRandom.alphanumeric(40)
84
84
  end
85
85
 
86
86
  def standard_role?
@@ -1,3 +1,3 @@
1
1
  module Invitational
2
- VERSION = "1.4.3"
2
+ VERSION = "1.5.0"
3
3
  end
@@ -37681,3 +37681,1443 @@ Migrating to CreateInvitations (20130528220144)
37681
37681
   (0.1ms) RELEASE SAVEPOINT active_record_1
37682
37682
   (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37683
37683
   (0.1ms) rollback transaction
37684
+  (0.6ms) SELECT sqlite_version(*)
37685
+  (0.0ms) SELECT sqlite_version(*)
37686
+  (0.0ms) DROP TABLE IF EXISTS "users"
37687
+  (1.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
37688
+  (0.1ms) DROP TABLE IF EXISTS "grandparents"
37689
+  (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)
37690
+  (0.1ms) DROP TABLE IF EXISTS "entities"
37691
+  (1.7ms) 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)
37692
+  (0.1ms) DROP TABLE IF EXISTS "children"
37693
+  (2.4ms) 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)
37694
+  (0.1ms) DROP TABLE IF EXISTS "other_entities"
37695
+  (2.5ms) 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)
37696
+  (0.1ms) DROP TABLE IF EXISTS "system_things"
37697
+  (2.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)
37698
+  (2.2ms) 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)
37699
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
37700
+ TRANSACTION (0.0ms) begin transaction
37701
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-03-02 01:12:45.034325"], ["updated_at", "2021-03-02 01:12:45.034325"]]
37702
+ TRANSACTION (1.4ms) commit transaction
37703
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
37704
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
37705
+ Migrating to CreateInvitations (20130528220144)
37706
+ TRANSACTION (0.1ms) begin transaction
37707
+  (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)
37708
+  (0.1ms) CREATE INDEX "index_invitations_on_invitable_id" ON "invitations" ("invitable_id")
37709
+  (0.1ms) CREATE INDEX "index_invitations_on_invitable_type" ON "invitations" ("invitable_type")
37710
+  (0.1ms) CREATE INDEX "index_invitations_on_user_id" ON "invitations" ("user_id")
37711
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130528220144"]]
37712
+ TRANSACTION (1.9ms) commit transaction
37713
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
37714
+  (0.1ms) SELECT sqlite_version(*)
37715
+ TRANSACTION (0.0ms) begin transaction
37716
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
37717
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.225776"], ["updated_at", "2021-03-02 01:12:45.225776"]]
37718
+ TRANSACTION (0.5ms) RELEASE SAVEPOINT active_record_1
37719
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
37720
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.235792"], ["updated_at", "2021-03-02 01:12:45.235792"]]
37721
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37722
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
37723
+ 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-03-02 01:12:45.258901"], ["date_accepted", "2021-03-02 01:12:45.237762"], ["claim_hash", "5TKG0Zel8aFTO2Ize4WQxdnLeNPuXVOxYVundQGW"], ["created_at", "2021-03-02 01:12:45.258861"], ["updated_at", "2021-03-02 01:12:45.258861"]]
37724
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37725
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37726
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.260118"], ["updated_at", "2021-03-02 01:12:45.260118"]]
37727
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37728
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37729
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.260906"], ["updated_at", "2021-03-02 01:12:45.260906"]]
37730
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37731
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37732
+ 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-03-02 01:12:45.261836"], ["date_accepted", "2021-03-02 01:12:45.261537"], ["claim_hash", "LIw2RH60rAW8dqjJQvHn6x4tMin2iI7HqncAZXih"], ["created_at", "2021-03-02 01:12:45.261817"], ["updated_at", "2021-03-02 01:12:45.261817"]]
37733
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37734
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37735
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.262736"], ["updated_at", "2021-03-02 01:12:45.262736"]]
37736
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37737
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37738
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.267710"], ["updated_at", "2021-03-02 01:12:45.267710"]]
37739
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37740
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
37741
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.272814"], ["id", 2]]
37742
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37743
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37744
+ 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-03-02 01:12:45.274145"], ["date_accepted", "2021-03-02 01:12:45.273760"], ["claim_hash", "IMyRJISSUFqzRoj6aw1BleCB1wGOsJ0TjVcN9qCI"], ["created_at", "2021-03-02 01:12:45.274123"], ["updated_at", "2021-03-02 01:12:45.274123"]]
37745
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37746
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37747
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.275155"], ["updated_at", "2021-03-02 01:12:45.275155"]]
37748
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37749
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37750
+ 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-03-02 01:12:45.275988"], ["claim_hash", "4ZKMOq78Dp14ABnX6yxvWetTljHaXnQOG5qolcvR"], ["created_at", "2021-03-02 01:12:45.275968"], ["updated_at", "2021-03-02 01:12:45.275968"]]
37751
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37752
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37753
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.276817"], ["updated_at", "2021-03-02 01:12:45.276817"]]
37754
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37755
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37756
+ 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-03-02 01:12:45.277644"], ["claim_hash", "lFB6u5ekWfaU5YpOP20MkOIeKUc0IWcJCCICzmRL"], ["created_at", "2021-03-02 01:12:45.277626"], ["updated_at", "2021-03-02 01:12:45.277626"]]
37757
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37758
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37759
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
37760
+ 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]]
37761
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37762
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
37763
+ 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]]
37764
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37765
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
37766
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37767
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
37768
+ TRANSACTION (0.1ms) rollback transaction
37769
+ TRANSACTION (0.0ms) begin transaction
37770
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37771
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.287160"], ["updated_at", "2021-03-02 01:12:45.287160"]]
37772
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37773
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37774
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.288126"], ["updated_at", "2021-03-02 01:12:45.288126"]]
37775
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37776
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37777
+ 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-03-02 01:12:45.289091"], ["date_accepted", "2021-03-02 01:12:45.288752"], ["claim_hash", "cqKdzXR3JW79FxAOEoR8kQjFp2jl6yq79TuFTviy"], ["created_at", "2021-03-02 01:12:45.289071"], ["updated_at", "2021-03-02 01:12:45.289071"]]
37778
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37779
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37780
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.290027"], ["updated_at", "2021-03-02 01:12:45.290027"]]
37781
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37782
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37783
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.290830"], ["updated_at", "2021-03-02 01:12:45.290830"]]
37784
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37785
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37786
+ 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-03-02 01:12:45.291751"], ["date_accepted", "2021-03-02 01:12:45.291438"], ["claim_hash", "Rb9LMD9xzd5oWCxyDDqfsOo3a69j1MVzEiFg0UYS"], ["created_at", "2021-03-02 01:12:45.291732"], ["updated_at", "2021-03-02 01:12:45.291732"]]
37787
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37788
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37789
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.292612"], ["updated_at", "2021-03-02 01:12:45.292612"]]
37790
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37791
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37792
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.293347"], ["updated_at", "2021-03-02 01:12:45.293347"]]
37793
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37794
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37795
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.294320"], ["id", 2]]
37796
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37797
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37798
+ 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-03-02 01:12:45.295242"], ["date_accepted", "2021-03-02 01:12:45.294935"], ["claim_hash", "n36JoIaoeSL6CiFGccQw0re5DHrpvp1luOqI4pd8"], ["created_at", "2021-03-02 01:12:45.295224"], ["updated_at", "2021-03-02 01:12:45.295224"]]
37799
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37800
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37801
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.296122"], ["updated_at", "2021-03-02 01:12:45.296122"]]
37802
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37803
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37804
+ 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-03-02 01:12:45.296932"], ["claim_hash", "mBWlHNidh30TmnbrC1L1mMnlH5Sf7EWCHZEe9AK3"], ["created_at", "2021-03-02 01:12:45.296914"], ["updated_at", "2021-03-02 01:12:45.296914"]]
37805
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37806
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37807
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.297829"], ["updated_at", "2021-03-02 01:12:45.297829"]]
37808
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37809
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
37810
+ 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-03-02 01:12:45.298886"], ["claim_hash", "9UiVWh90D2l5tOsRiibhIimSDtLURhKIUDd790rB"], ["created_at", "2021-03-02 01:12:45.298862"], ["updated_at", "2021-03-02 01:12:45.298862"]]
37811
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37812
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37813
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
37814
+ 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]]
37815
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37816
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
37817
+ 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]]
37818
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37819
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
37820
+ 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]]
37821
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37822
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
37823
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37824
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
37825
+ TRANSACTION (0.1ms) rollback transaction
37826
+ TRANSACTION (0.0ms) begin transaction
37827
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37828
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.305898"], ["updated_at", "2021-03-02 01:12:45.305898"]]
37829
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37830
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37831
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.306909"], ["updated_at", "2021-03-02 01:12:45.306909"]]
37832
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37833
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37834
+ 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-03-02 01:12:45.307929"], ["date_accepted", "2021-03-02 01:12:45.307586"], ["claim_hash", "EWnhzrGe9sxkm15vsEeUew5LZ8umja2JeZ6VS3sx"], ["created_at", "2021-03-02 01:12:45.307909"], ["updated_at", "2021-03-02 01:12:45.307909"]]
37835
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37836
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37837
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.308894"], ["updated_at", "2021-03-02 01:12:45.308894"]]
37838
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37839
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37840
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.309653"], ["updated_at", "2021-03-02 01:12:45.309653"]]
37841
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37842
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37843
+ 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-03-02 01:12:45.310572"], ["date_accepted", "2021-03-02 01:12:45.310269"], ["claim_hash", "aZJ3xlJZIOn8oXOx13p86y2xVbpYSXpRtdPwfENw"], ["created_at", "2021-03-02 01:12:45.310554"], ["updated_at", "2021-03-02 01:12:45.310554"]]
37844
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37845
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37846
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.311475"], ["updated_at", "2021-03-02 01:12:45.311475"]]
37847
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37848
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37849
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.312239"], ["updated_at", "2021-03-02 01:12:45.312239"]]
37850
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37851
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
37852
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.313303"], ["id", 2]]
37853
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37854
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37855
+ 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-03-02 01:12:45.314622"], ["date_accepted", "2021-03-02 01:12:45.314186"], ["claim_hash", "HoNnvw3rSHO2uI4YHSFZ0W0HQkob0Yh70cVfss2Z"], ["created_at", "2021-03-02 01:12:45.314599"], ["updated_at", "2021-03-02 01:12:45.314599"]]
37856
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37857
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37858
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.315687"], ["updated_at", "2021-03-02 01:12:45.315687"]]
37859
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37860
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37861
+ 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-03-02 01:12:45.316556"], ["claim_hash", "uzmvTfD5Gmu0YTwhlozSwmW0pAXdeysTUHuI4vsf"], ["created_at", "2021-03-02 01:12:45.316537"], ["updated_at", "2021-03-02 01:12:45.316537"]]
37862
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37863
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37864
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.317393"], ["updated_at", "2021-03-02 01:12:45.317393"]]
37865
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37866
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37867
+ 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-03-02 01:12:45.318194"], ["claim_hash", "41huWlyw5gfcPbyIa2pFrPN9732yRQwp4QIDEO1R"], ["created_at", "2021-03-02 01:12:45.318176"], ["updated_at", "2021-03-02 01:12:45.318176"]]
37868
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37869
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37870
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
37871
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37872
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
37873
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
37874
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
37875
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37876
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
37877
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37878
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
37879
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
37880
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
37881
+ TRANSACTION (0.1ms) rollback transaction
37882
+ TRANSACTION (0.0ms) begin transaction
37883
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37884
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.324779"], ["updated_at", "2021-03-02 01:12:45.324779"]]
37885
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37886
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37887
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.325798"], ["updated_at", "2021-03-02 01:12:45.325798"]]
37888
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37889
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37890
+ 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-03-02 01:12:45.326812"], ["date_accepted", "2021-03-02 01:12:45.326466"], ["claim_hash", "zzdqpRQUn1l02HByTA8eatsgvPrm9W8LQ2XsNQ3N"], ["created_at", "2021-03-02 01:12:45.326793"], ["updated_at", "2021-03-02 01:12:45.326793"]]
37891
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37892
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37893
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.327735"], ["updated_at", "2021-03-02 01:12:45.327735"]]
37894
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37895
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37896
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.328479"], ["updated_at", "2021-03-02 01:12:45.328479"]]
37897
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37898
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37899
+ 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-03-02 01:12:45.329384"], ["date_accepted", "2021-03-02 01:12:45.329088"], ["claim_hash", "v9ukk5H6VQDKEUGXqektEl4CJwCzXcGfqZNpseiY"], ["created_at", "2021-03-02 01:12:45.329366"], ["updated_at", "2021-03-02 01:12:45.329366"]]
37900
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37901
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37902
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.330267"], ["updated_at", "2021-03-02 01:12:45.330267"]]
37903
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37904
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37905
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.331033"], ["updated_at", "2021-03-02 01:12:45.331033"]]
37906
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37907
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37908
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.331996"], ["id", 2]]
37909
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37910
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37911
+ 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-03-02 01:12:45.332913"], ["date_accepted", "2021-03-02 01:12:45.332610"], ["claim_hash", "6O5BEcl7IVG9IupS8ybI6Etk9PS5ZQv5Ht2SuPVb"], ["created_at", "2021-03-02 01:12:45.332894"], ["updated_at", "2021-03-02 01:12:45.332894"]]
37912
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37913
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37914
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.333796"], ["updated_at", "2021-03-02 01:12:45.333796"]]
37915
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37916
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37917
+ 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-03-02 01:12:45.334614"], ["claim_hash", "DmnAZLu3RIxpxa8sQWsuoCNUcXpEYSS0HHaZ0Yc4"], ["created_at", "2021-03-02 01:12:45.334596"], ["updated_at", "2021-03-02 01:12:45.334596"]]
37918
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37919
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37920
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.335431"], ["updated_at", "2021-03-02 01:12:45.335431"]]
37921
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37922
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37923
+ 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-03-02 01:12:45.336287"], ["claim_hash", "HKomtG3kFIKwbVCFnmQf7uopUR2MKDm50zzyPwGZ"], ["created_at", "2021-03-02 01:12:45.336268"], ["updated_at", "2021-03-02 01:12:45.336268"]]
37924
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37925
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37926
+ SystemThing Create (0.1ms) INSERT INTO "system_things" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A System Object"], ["created_at", "2021-03-02 01:12:45.339540"], ["updated_at", "2021-03-02 01:12:45.339540"]]
37927
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37928
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 5]]
37929
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 5]]
37930
+ TRANSACTION (0.1ms) rollback transaction
37931
+ TRANSACTION (0.0ms) begin transaction
37932
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37933
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.342459"], ["updated_at", "2021-03-02 01:12:45.342459"]]
37934
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37935
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37936
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.343442"], ["updated_at", "2021-03-02 01:12:45.343442"]]
37937
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37938
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
37939
+ 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-03-02 01:12:45.344780"], ["date_accepted", "2021-03-02 01:12:45.344312"], ["claim_hash", "ps4d45JWSFkOLi6TN0j5Rzn4p9WlPO2oCmKJVzUX"], ["created_at", "2021-03-02 01:12:45.344749"], ["updated_at", "2021-03-02 01:12:45.344749"]]
37940
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37941
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37942
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.346109"], ["updated_at", "2021-03-02 01:12:45.346109"]]
37943
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37944
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37945
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.346943"], ["updated_at", "2021-03-02 01:12:45.346943"]]
37946
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37947
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37948
+ 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-03-02 01:12:45.347861"], ["date_accepted", "2021-03-02 01:12:45.347549"], ["claim_hash", "HiySFrGoaRomblXP33XzCUyTz5cFCl7XhNmIHBL6"], ["created_at", "2021-03-02 01:12:45.347842"], ["updated_at", "2021-03-02 01:12:45.347842"]]
37949
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37950
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37951
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.348759"], ["updated_at", "2021-03-02 01:12:45.348759"]]
37952
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37953
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37954
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.349509"], ["updated_at", "2021-03-02 01:12:45.349509"]]
37955
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37956
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37957
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.350457"], ["id", 2]]
37958
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37959
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37960
+ 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-03-02 01:12:45.351390"], ["date_accepted", "2021-03-02 01:12:45.351084"], ["claim_hash", "nZ24p16vfoNV49rRei54nQIV0iQFKydls3dLaqFb"], ["created_at", "2021-03-02 01:12:45.351371"], ["updated_at", "2021-03-02 01:12:45.351371"]]
37961
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37962
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37963
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.352281"], ["updated_at", "2021-03-02 01:12:45.352281"]]
37964
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37965
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37966
+ 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-03-02 01:12:45.353103"], ["claim_hash", "pDF1kPVbheMjt2LBzkofJM2ZmZqA5UoO85QKoSUh"], ["created_at", "2021-03-02 01:12:45.353086"], ["updated_at", "2021-03-02 01:12:45.353086"]]
37967
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37968
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37969
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.353939"], ["updated_at", "2021-03-02 01:12:45.353939"]]
37970
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37971
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37972
+ 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-03-02 01:12:45.354766"], ["claim_hash", "3BDS9O63kPRCC99D3rLjbXelB6QB3gYFVqDyQElt"], ["created_at", "2021-03-02 01:12:45.354747"], ["updated_at", "2021-03-02 01:12:45.354747"]]
37973
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37974
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
37975
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
37976
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37977
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-03-02 01:12:45.359713"], ["updated_at", "2021-03-02 01:12:45.359713"]]
37978
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37979
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37980
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-03-02 01:12:45.361392"], ["id", 1]]
37981
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37982
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
37983
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37984
+ OtherEntity Create (0.1ms) INSERT INTO "other_entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test other entity"], ["created_at", "2021-03-02 01:12:45.364859"], ["updated_at", "2021-03-02 01:12:45.364859"]]
37985
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37986
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
37987
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37988
+ SystemThing Create (0.1ms) INSERT INTO "system_things" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A System Object"], ["created_at", "2021-03-02 01:12:45.366276"], ["updated_at", "2021-03-02 01:12:45.366276"]]
37989
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37990
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
37991
+ TRANSACTION (0.1ms) rollback transaction
37992
+ TRANSACTION (0.0ms) begin transaction
37993
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37994
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.368315"], ["updated_at", "2021-03-02 01:12:45.368315"]]
37995
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37996
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37997
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.369252"], ["updated_at", "2021-03-02 01:12:45.369252"]]
37998
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
37999
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38000
+ 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-03-02 01:12:45.370265"], ["date_accepted", "2021-03-02 01:12:45.369890"], ["claim_hash", "Zu9mDxtsPLf8y4Dem3IemgHd57d8FLY53S3hQWRj"], ["created_at", "2021-03-02 01:12:45.370244"], ["updated_at", "2021-03-02 01:12:45.370244"]]
38001
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38002
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38003
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.371213"], ["updated_at", "2021-03-02 01:12:45.371213"]]
38004
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38005
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38006
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.371974"], ["updated_at", "2021-03-02 01:12:45.371974"]]
38007
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38008
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38009
+ 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-03-02 01:12:45.372910"], ["date_accepted", "2021-03-02 01:12:45.372598"], ["claim_hash", "39PSRAOfG3BxeYo0ehJ2Lbi1ARp6g2vJhV3pfoIg"], ["created_at", "2021-03-02 01:12:45.372892"], ["updated_at", "2021-03-02 01:12:45.372892"]]
38010
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38011
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38012
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.373862"], ["updated_at", "2021-03-02 01:12:45.373862"]]
38013
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38014
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38015
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.374745"], ["updated_at", "2021-03-02 01:12:45.374745"]]
38016
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38017
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38018
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.376075"], ["id", 2]]
38019
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38020
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38021
+ 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-03-02 01:12:45.377141"], ["date_accepted", "2021-03-02 01:12:45.376785"], ["claim_hash", "y4JUa0kO1EEeHRnCZpEt7zaDt9Lh4bS9dKJkE2Ip"], ["created_at", "2021-03-02 01:12:45.377121"], ["updated_at", "2021-03-02 01:12:45.377121"]]
38022
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38023
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38024
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.378092"], ["updated_at", "2021-03-02 01:12:45.378092"]]
38025
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38026
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38027
+ 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-03-02 01:12:45.379019"], ["claim_hash", "q0EQtYHZsw0zBuqqCCxzlKJcK2YsvvdMz5SC2Gkp"], ["created_at", "2021-03-02 01:12:45.378992"], ["updated_at", "2021-03-02 01:12:45.378992"]]
38028
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38029
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38030
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.380139"], ["updated_at", "2021-03-02 01:12:45.380139"]]
38031
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38032
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38033
+ 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-03-02 01:12:45.380989"], ["claim_hash", "IWYMxGxxm1QIR8rtvPkKPvANOgjhVXoFXB3Hi1Nk"], ["created_at", "2021-03-02 01:12:45.380970"], ["updated_at", "2021-03-02 01:12:45.380970"]]
38034
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38035
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38036
+ OtherEntity Create (0.1ms) INSERT INTO "other_entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test other entity"], ["created_at", "2021-03-02 01:12:45.382009"], ["updated_at", "2021-03-02 01:12:45.382009"]]
38037
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38038
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 4]]
38039
+ TRANSACTION (0.1ms) rollback transaction
38040
+ TRANSACTION (0.0ms) begin transaction
38041
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38042
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.384281"], ["updated_at", "2021-03-02 01:12:45.384281"]]
38043
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38044
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38045
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.385176"], ["updated_at", "2021-03-02 01:12:45.385176"]]
38046
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38047
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38048
+ 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-03-02 01:12:45.386144"], ["date_accepted", "2021-03-02 01:12:45.385821"], ["claim_hash", "VhoYS6myyjfO2T5UMtRCzYoz1ijkWTlgWOVXHTHV"], ["created_at", "2021-03-02 01:12:45.386125"], ["updated_at", "2021-03-02 01:12:45.386125"]]
38049
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38050
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38051
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.387085"], ["updated_at", "2021-03-02 01:12:45.387085"]]
38052
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38053
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38054
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.387831"], ["updated_at", "2021-03-02 01:12:45.387831"]]
38055
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38056
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38057
+ 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-03-02 01:12:45.388723"], ["date_accepted", "2021-03-02 01:12:45.388437"], ["claim_hash", "OiGuamHtJKrCDi52lCo7v68KSRVvwSLi2kN9uS6r"], ["created_at", "2021-03-02 01:12:45.388704"], ["updated_at", "2021-03-02 01:12:45.388704"]]
38058
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38059
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38060
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.389653"], ["updated_at", "2021-03-02 01:12:45.389653"]]
38061
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38062
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38063
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.390487"], ["updated_at", "2021-03-02 01:12:45.390487"]]
38064
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38065
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38066
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.391507"], ["id", 2]]
38067
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38068
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38069
+ 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-03-02 01:12:45.392575"], ["date_accepted", "2021-03-02 01:12:45.392217"], ["claim_hash", "HO5jmrgImEDXS2KVD98UtKPK2T1H3c2tOylPzvcE"], ["created_at", "2021-03-02 01:12:45.392554"], ["updated_at", "2021-03-02 01:12:45.392554"]]
38070
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38071
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38072
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.393524"], ["updated_at", "2021-03-02 01:12:45.393524"]]
38073
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38074
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38075
+ 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-03-02 01:12:45.394378"], ["claim_hash", "L9nllm1VKwZ7tBgBHttIsCgIggqWE4hSBKQsh6vS"], ["created_at", "2021-03-02 01:12:45.394360"], ["updated_at", "2021-03-02 01:12:45.394360"]]
38076
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38077
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38078
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.395217"], ["updated_at", "2021-03-02 01:12:45.395217"]]
38079
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38080
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38081
+ 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-03-02 01:12:45.396025"], ["claim_hash", "WTRL0RpLuvKK3HjoZzxNjOVrWWJHQBAvKqLz09gO"], ["created_at", "2021-03-02 01:12:45.396008"], ["updated_at", "2021-03-02 01:12:45.396008"]]
38082
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38083
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38084
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-03-02 01:12:45.397037"], ["updated_at", "2021-03-02 01:12:45.397037"]]
38085
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38086
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38087
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-03-02 01:12:45.397965"], ["id", 1]]
38088
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38089
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
38090
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 2]]
38091
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
38092
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 2]]
38093
+ 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]]
38094
+ TRANSACTION (0.1ms) rollback transaction
38095
+ TRANSACTION (0.0ms) begin transaction
38096
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38097
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.401678"], ["updated_at", "2021-03-02 01:12:45.401678"]]
38098
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38099
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38100
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.402652"], ["updated_at", "2021-03-02 01:12:45.402652"]]
38101
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38102
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38103
+ 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-03-02 01:12:45.403651"], ["date_accepted", "2021-03-02 01:12:45.403295"], ["claim_hash", "jBx3ePySqdoveXHFytqOeQkLL2VCoa9VQp3IqWMk"], ["created_at", "2021-03-02 01:12:45.403631"], ["updated_at", "2021-03-02 01:12:45.403631"]]
38104
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38105
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38106
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.404571"], ["updated_at", "2021-03-02 01:12:45.404571"]]
38107
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38108
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38109
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.405325"], ["updated_at", "2021-03-02 01:12:45.405325"]]
38110
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38111
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
38112
+ 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-03-02 01:12:45.406495"], ["date_accepted", "2021-03-02 01:12:45.405970"], ["claim_hash", "Now42odg3DFQLirUyyJyHmKuATSgpKq4PMJzWoFG"], ["created_at", "2021-03-02 01:12:45.406468"], ["updated_at", "2021-03-02 01:12:45.406468"]]
38113
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38114
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38115
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.407803"], ["updated_at", "2021-03-02 01:12:45.407803"]]
38116
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38117
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38118
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.408595"], ["updated_at", "2021-03-02 01:12:45.408595"]]
38119
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38120
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38121
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.409572"], ["id", 2]]
38122
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38123
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38124
+ 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-03-02 01:12:45.410534"], ["date_accepted", "2021-03-02 01:12:45.410199"], ["claim_hash", "2m6w0edF2vmPj6EYOonhwXu6M9lEF9d2zfTutmBf"], ["created_at", "2021-03-02 01:12:45.410514"], ["updated_at", "2021-03-02 01:12:45.410514"]]
38125
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38126
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38127
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.411463"], ["updated_at", "2021-03-02 01:12:45.411463"]]
38128
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38129
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38130
+ 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-03-02 01:12:45.412379"], ["claim_hash", "tf9IArbAXZM7k4JuyEUzdAWpm1o8PuRogxG7jRw8"], ["created_at", "2021-03-02 01:12:45.412350"], ["updated_at", "2021-03-02 01:12:45.412350"]]
38131
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38132
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38133
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.413385"], ["updated_at", "2021-03-02 01:12:45.413385"]]
38134
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38135
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38136
+ 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-03-02 01:12:45.414243"], ["claim_hash", "gaPgtly6uPMIFyi0NhdBsyW06D55Q58FcNNeEl0z"], ["created_at", "2021-03-02 01:12:45.414223"], ["updated_at", "2021-03-02 01:12:45.414223"]]
38137
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38138
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38139
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-03-02 01:12:45.415300"], ["updated_at", "2021-03-02 01:12:45.415300"]]
38140
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38141
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38142
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-03-02 01:12:45.416245"], ["id", 1]]
38143
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38144
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
38145
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 3]]
38146
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
38147
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 3]]
38148
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
38149
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 3]]
38150
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
38151
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 3]]
38152
+ 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]]
38153
+ TRANSACTION (0.1ms) rollback transaction
38154
+ TRANSACTION (0.0ms) begin transaction
38155
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38156
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.421101"], ["updated_at", "2021-03-02 01:12:45.421101"]]
38157
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38158
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38159
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.422033"], ["updated_at", "2021-03-02 01:12:45.422033"]]
38160
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38161
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38162
+ 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-03-02 01:12:45.423085"], ["date_accepted", "2021-03-02 01:12:45.422728"], ["claim_hash", "IZ0p3NymTcQv1VGO7Pp3EwVN8Q0AshZ63RsxgS4S"], ["created_at", "2021-03-02 01:12:45.423064"], ["updated_at", "2021-03-02 01:12:45.423064"]]
38163
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38164
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38165
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.424028"], ["updated_at", "2021-03-02 01:12:45.424028"]]
38166
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38167
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38168
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.424783"], ["updated_at", "2021-03-02 01:12:45.424783"]]
38169
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38170
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38171
+ 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-03-02 01:12:45.425729"], ["date_accepted", "2021-03-02 01:12:45.425424"], ["claim_hash", "6rbCBnLSUxbP2rTZAepThpJWwbmWbN3K9bbZvJr9"], ["created_at", "2021-03-02 01:12:45.425710"], ["updated_at", "2021-03-02 01:12:45.425710"]]
38172
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38173
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38174
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test5@d-i.co"], ["created_at", "2021-03-02 01:12:45.426641"], ["updated_at", "2021-03-02 01:12:45.426641"]]
38175
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38176
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38177
+ Grandparent Create (0.1ms) INSERT INTO "grandparents" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "A Grandparent"], ["created_at", "2021-03-02 01:12:45.427395"], ["updated_at", "2021-03-02 01:12:45.427395"]]
38178
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38179
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38180
+ Entity Update (0.1ms) UPDATE "entities" SET "grandparent_id" = ?, "updated_at" = ? WHERE "entities"."id" = ? [["grandparent_id", 1], ["updated_at", "2021-03-02 01:12:45.428383"], ["id", 2]]
38181
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38182
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38183
+ 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-03-02 01:12:45.429314"], ["date_accepted", "2021-03-02 01:12:45.429002"], ["claim_hash", "eWjGWIEXYeCa1bbIntwAlNIp7t3oHTusK5pmCEof"], ["created_at", "2021-03-02 01:12:45.429295"], ["updated_at", "2021-03-02 01:12:45.429295"]]
38184
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38185
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38186
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.430197"], ["updated_at", "2021-03-02 01:12:45.430197"]]
38187
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38188
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38189
+ 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-03-02 01:12:45.431017"], ["claim_hash", "CeZTbwMeEz4Z2rENQq5lsMYtGXDJDNwSfnfl1XJz"], ["created_at", "2021-03-02 01:12:45.430999"], ["updated_at", "2021-03-02 01:12:45.430999"]]
38190
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38191
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38192
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.431841"], ["updated_at", "2021-03-02 01:12:45.431841"]]
38193
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38194
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38195
+ 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-03-02 01:12:45.432671"], ["claim_hash", "qNhm1Xs6sEafQYSh4Z6Lc5GJpMtBn6H5Qr8B28dA"], ["created_at", "2021-03-02 01:12:45.432653"], ["updated_at", "2021-03-02 01:12:45.432653"]]
38196
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38197
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38198
+ Child Create (0.1ms) INSERT INTO "children" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Child 1"], ["created_at", "2021-03-02 01:12:45.433682"], ["updated_at", "2021-03-02 01:12:45.433682"]]
38199
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38200
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38201
+ Child Update (0.1ms) UPDATE "children" SET "entity_id" = ?, "updated_at" = ? WHERE "children"."id" = ? [["entity_id", 2], ["updated_at", "2021-03-02 01:12:45.434597"], ["id", 1]]
38202
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38203
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38204
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 1]]
38205
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38206
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
38207
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38208
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
38209
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38210
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 1]]
38211
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38212
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Child' AND invitable_id = 1) [["user_id", 1]]
38213
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38214
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
38215
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38216
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 2) [["user_id", 1]]
38217
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38218
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Grandparent' AND invitable_id = 1) [["user_id", 1]]
38219
+ TRANSACTION (0.1ms) rollback transaction
38220
+ TRANSACTION (0.0ms) begin transaction
38221
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38222
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38223
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.442409"], ["updated_at", "2021-03-02 01:12:45.442409"]]
38224
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38225
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38226
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.443404"], ["updated_at", "2021-03-02 01:12:45.443404"]]
38227
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38228
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38229
+ 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-03-02 01:12:45.444399"], ["date_accepted", "2021-03-02 01:12:45.444037"], ["claim_hash", "z7FHZPZo0yTTfNHvNSqz43oqRMsrVPfhKa9iHZUh"], ["created_at", "2021-03-02 01:12:45.444379"], ["updated_at", "2021-03-02 01:12:45.444379"]]
38230
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38231
+ 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]]
38232
+ TRANSACTION (0.1ms) rollback transaction
38233
+ TRANSACTION (0.0ms) begin transaction
38234
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38235
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38236
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.451881"], ["updated_at", "2021-03-02 01:12:45.451881"]]
38237
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38238
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38239
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.452844"], ["updated_at", "2021-03-02 01:12:45.452844"]]
38240
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38241
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38242
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38243
+ 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-03-02 01:12:45.454405"], ["date_accepted", "2021-03-02 01:12:45.454189"], ["claim_hash", "cHOLPKnyblhDVpv0MKhh9JN49PHQYk90gStyZTXL"], ["created_at", "2021-03-02 01:12:45.454383"], ["updated_at", "2021-03-02 01:12:45.454383"]]
38244
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38245
+ TRANSACTION (0.1ms) rollback transaction
38246
+ TRANSACTION (0.0ms) begin transaction
38247
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38248
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38249
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.456393"], ["updated_at", "2021-03-02 01:12:45.456393"]]
38250
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38251
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38252
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.457304"], ["updated_at", "2021-03-02 01:12:45.457304"]]
38253
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38254
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38255
+ 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-03-02 01:12:45.458286"], ["date_accepted", "2021-03-02 01:12:45.457953"], ["claim_hash", "EyzbApyrbpqixy4HUQOLV9PbD643Ef7Hj9wOjf5d"], ["created_at", "2021-03-02 01:12:45.458263"], ["updated_at", "2021-03-02 01:12:45.458263"]]
38256
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38257
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38258
+ TRANSACTION (0.1ms) rollback transaction
38259
+ TRANSACTION (0.0ms) begin transaction
38260
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38261
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38262
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.460943"], ["updated_at", "2021-03-02 01:12:45.460943"]]
38263
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38264
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38265
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.461880"], ["updated_at", "2021-03-02 01:12:45.461880"]]
38266
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38267
+ TRANSACTION (0.1ms) rollback transaction
38268
+ TRANSACTION (0.0ms) begin transaction
38269
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38270
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38271
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.463671"], ["updated_at", "2021-03-02 01:12:45.463671"]]
38272
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38273
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38274
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.464519"], ["updated_at", "2021-03-02 01:12:45.464519"]]
38275
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38276
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38277
+ 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-03-02 01:12:45.465483"], ["date_accepted", "2021-03-02 01:12:45.465147"], ["claim_hash", "E7CLvGMfkhvKeo9d4IWSgvajKCO20mG9tSw8QZLZ"], ["created_at", "2021-03-02 01:12:45.465463"], ["updated_at", "2021-03-02 01:12:45.465463"]]
38278
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38279
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38280
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."invitable_id" = ? AND "invitations"."invitable_type" = ? [["invitable_id", 1], ["invitable_type", "Entity"]]
38281
+ Invitation Destroy (0.1ms) DELETE FROM "invitations" WHERE "invitations"."id" = ? [["id", 1]]
38282
+ Entity Destroy (0.0ms) DELETE FROM "entities" WHERE "entities"."id" = ? [["id", 1]]
38283
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38284
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
38285
+ TRANSACTION (0.1ms) rollback transaction
38286
+ TRANSACTION (0.0ms) begin transaction
38287
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38288
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38289
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.470163"], ["updated_at", "2021-03-02 01:12:45.470163"]]
38290
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38291
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38292
+ 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-03-02 01:12:45.471290"], ["claim_hash", "zAdwhsGHPCWGou0y3npl2hFrd7cKO49I4mhoPoSq"], ["created_at", "2021-03-02 01:12:45.471270"], ["updated_at", "2021-03-02 01:12:45.471270"]]
38293
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38294
+ TRANSACTION (0.1ms) rollback transaction
38295
+ TRANSACTION (0.0ms) begin transaction
38296
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38297
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38298
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.473266"], ["updated_at", "2021-03-02 01:12:45.473266"]]
38299
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38300
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38301
+ 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-03-02 01:12:45.474407"], ["claim_hash", "6iDLDh7FBw6ZvcD92HMaNYrw6sgOvt7JO4pc9hcI"], ["created_at", "2021-03-02 01:12:45.474386"], ["updated_at", "2021-03-02 01:12:45.474386"]]
38302
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38303
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38304
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.475333"], ["updated_at", "2021-03-02 01:12:45.475333"]]
38305
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38306
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38307
+ 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-03-02 01:12:45.476202"], ["claim_hash", "v9JtwHW3Q8ExjDeYPtbInXgByuV86AU44UTUHzYR"], ["created_at", "2021-03-02 01:12:45.476183"], ["updated_at", "2021-03-02 01:12:45.476183"]]
38308
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38309
+ TRANSACTION (0.1ms) rollback transaction
38310
+ TRANSACTION (0.0ms) begin transaction
38311
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38312
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38313
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.478069"], ["updated_at", "2021-03-02 01:12:45.478069"]]
38314
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38315
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38316
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.478986"], ["updated_at", "2021-03-02 01:12:45.478986"]]
38317
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38318
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38319
+ 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-03-02 01:12:45.480086"], ["claim_hash", "MixFXw3Wwhuy1ABTGG41RHu4zEvM3yKtQWEPbuyB"], ["created_at", "2021-03-02 01:12:45.480065"], ["updated_at", "2021-03-02 01:12:45.480065"]]
38320
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38321
+ TRANSACTION (0.1ms) rollback transaction
38322
+ TRANSACTION (0.0ms) begin transaction
38323
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38324
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38325
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.482054"], ["updated_at", "2021-03-02 01:12:45.482054"]]
38326
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38327
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38328
+ 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-03-02 01:12:45.483030"], ["claim_hash", "nKlIyGw0zVAFc6mab65Q5UgBDkqUghJFKhMAra4n"], ["created_at", "2021-03-02 01:12:45.483011"], ["updated_at", "2021-03-02 01:12:45.483011"]]
38329
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38330
+ TRANSACTION (0.1ms) rollback transaction
38331
+ TRANSACTION (0.0ms) begin transaction
38332
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38333
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38334
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.484843"], ["updated_at", "2021-03-02 01:12:45.484843"]]
38335
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38336
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38337
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.485704"], ["updated_at", "2021-03-02 01:12:45.485704"]]
38338
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38339
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38340
+ 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-03-02 01:12:45.486623"], ["claim_hash", "iikQ59HAjcqd7AGo0iW14vjDiBmqVJVzCx6byCIo"], ["created_at", "2021-03-02 01:12:45.486604"], ["updated_at", "2021-03-02 01:12:45.486604"]]
38341
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38342
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38343
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.487544"], ["updated_at", "2021-03-02 01:12:45.487544"]]
38344
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38345
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38346
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.488283"], ["updated_at", "2021-03-02 01:12:45.488283"]]
38347
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38348
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38349
+ 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-03-02 01:12:45.489182"], ["date_accepted", "2021-03-02 01:12:45.488891"], ["claim_hash", "SCXnvei8U9TKzIT1tj90hiVvBSPquSDidka1qfZZ"], ["created_at", "2021-03-02 01:12:45.489164"], ["updated_at", "2021-03-02 01:12:45.489164"]]
38350
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38351
+ TRANSACTION (0.1ms) rollback transaction
38352
+ TRANSACTION (0.0ms) begin transaction
38353
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38354
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38355
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.491216"], ["updated_at", "2021-03-02 01:12:45.491216"]]
38356
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38357
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38358
+ 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-03-02 01:12:45.492316"], ["claim_hash", "PpoNwem71ruhtVPMI3SMPvfJon3DwZpLfV2m0EVE"], ["created_at", "2021-03-02 01:12:45.492295"], ["updated_at", "2021-03-02 01:12:45.492295"]]
38359
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38360
+ TRANSACTION (0.1ms) rollback transaction
38361
+ TRANSACTION (0.0ms) begin transaction
38362
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38363
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38364
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.494314"], ["updated_at", "2021-03-02 01:12:45.494314"]]
38365
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38366
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38367
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.495207"], ["updated_at", "2021-03-02 01:12:45.495207"]]
38368
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38369
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38370
+ 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-03-02 01:12:45.496120"], ["claim_hash", "p0ZciZVm1DAGemT3BeQ8h0iM3V4tfsJDSEUFQSuS"], ["created_at", "2021-03-02 01:12:45.496100"], ["updated_at", "2021-03-02 01:12:45.496100"]]
38371
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38372
+ TRANSACTION (0.1ms) rollback transaction
38373
+ TRANSACTION (0.0ms) begin transaction
38374
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38375
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38376
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.497953"], ["updated_at", "2021-03-02 01:12:45.497953"]]
38377
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38378
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38379
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.498866"], ["updated_at", "2021-03-02 01:12:45.498866"]]
38380
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38381
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38382
+ 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-03-02 01:12:45.500237"], ["date_accepted", "2021-03-02 01:12:45.499782"], ["claim_hash", "P9lTKsLtFSL4yYxToemppYi8unqRgImCENj7DrCf"], ["created_at", "2021-03-02 01:12:45.500211"], ["updated_at", "2021-03-02 01:12:45.500211"]]
38383
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38384
+ TRANSACTION (0.1ms) rollback transaction
38385
+ TRANSACTION (0.0ms) begin transaction
38386
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38387
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38388
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.510383"], ["updated_at", "2021-03-02 01:12:45.510383"]]
38389
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38390
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38391
+ Entity Create (1.4ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.511376"], ["updated_at", "2021-03-02 01:12:45.511376"]]
38392
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38393
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38394
+ 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-03-02 01:12:45.513815"], ["claim_hash", "T2rTumnM6yPfi8mcLrDL1qRsi1tfkVC7QDOax3XN"], ["created_at", "2021-03-02 01:12:45.513792"], ["updated_at", "2021-03-02 01:12:45.513792"]]
38395
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38396
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'T2rTumnM6yPfi8mcLrDL1qRsi1tfkVC7QDOax3XN') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
38397
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38398
+ Entity Load (0.1ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
38399
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-03-02 01:12:45.515195"], ["updated_at", "2021-03-02 01:12:45.516207"], ["id", 1]]
38400
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38401
+ 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]]
38402
+ TRANSACTION (0.1ms) rollback transaction
38403
+ TRANSACTION (0.0ms) begin transaction
38404
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38405
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38406
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.518692"], ["updated_at", "2021-03-02 01:12:45.518692"]]
38407
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38408
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38409
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 3"], ["created_at", "2021-03-02 01:12:45.519607"], ["updated_at", "2021-03-02 01:12:45.519607"]]
38410
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38411
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38412
+ 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-03-02 01:12:45.520529"], ["claim_hash", "xXk21sbHb1jK1fCG70MT1LHDUj6neuzmWZQj4Imf"], ["created_at", "2021-03-02 01:12:45.520509"], ["updated_at", "2021-03-02 01:12:45.520509"]]
38413
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38414
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test4@d-i.co' AND user_id IS NULL)
38415
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38416
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
38417
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-03-02 01:12:45.521639"], ["updated_at", "2021-03-02 01:12:45.522328"], ["id", 1]]
38418
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38419
+ 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]]
38420
+ TRANSACTION (0.1ms) rollback transaction
38421
+ TRANSACTION (0.0ms) begin transaction
38422
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38423
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38424
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.525342"], ["updated_at", "2021-03-02 01:12:45.525342"]]
38425
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38426
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test4@d-i.co')
38427
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38428
+ 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-03-02 01:12:45.526692"], ["claim_hash", "5sdjHdxCMZOiVqwClOblLfQCgi5lQiAL3EriVqDn"], ["created_at", "2021-03-02 01:12:45.526671"], ["updated_at", "2021-03-02 01:12:45.526671"]]
38429
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38430
+ TRANSACTION (0.1ms) rollback transaction
38431
+ TRANSACTION (0.0ms) begin transaction
38432
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38433
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38434
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.528574"], ["updated_at", "2021-03-02 01:12:45.528574"]]
38435
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38436
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38437
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
38438
+ 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-03-02 01:12:45.530354"], ["date_accepted", "2021-03-02 01:12:45.530119"], ["claim_hash", "twCnFd5pqJzFsV0x2ZMmEfix9npwVhP5Nt4ZEk7l"], ["created_at", "2021-03-02 01:12:45.530327"], ["updated_at", "2021-03-02 01:12:45.530327"]]
38439
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38440
+ TRANSACTION (0.1ms) rollback transaction
38441
+ TRANSACTION (0.0ms) begin transaction
38442
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38443
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38444
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.532766"], ["updated_at", "2021-03-02 01:12:45.532766"]]
38445
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38446
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38447
+ 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-03-02 01:12:45.533806"], ["claim_hash", "WjFQDEqPNRltgsvynWL5IMDOc1bi5cCOlaPscOSN"], ["created_at", "2021-03-02 01:12:45.533786"], ["updated_at", "2021-03-02 01:12:45.533786"]]
38448
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38449
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38450
+ TRANSACTION (0.1ms) rollback transaction
38451
+ TRANSACTION (0.0ms) begin transaction
38452
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38453
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38454
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.536317"], ["updated_at", "2021-03-02 01:12:45.536317"]]
38455
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38456
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test4@d-i.co')
38457
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38458
+ 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-03-02 01:12:45.537608"], ["claim_hash", "lv1dx3dxlAHqe5oMN63H8HCXpDlOuLH35hw9NAfQ"], ["created_at", "2021-03-02 01:12:45.537588"], ["updated_at", "2021-03-02 01:12:45.537588"]]
38459
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38460
+ TRANSACTION (0.1ms) rollback transaction
38461
+ TRANSACTION (0.0ms) begin transaction
38462
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38463
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38464
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.539532"], ["updated_at", "2021-03-02 01:12:45.539532"]]
38465
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38466
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
38467
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38468
+ 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-03-02 01:12:45.541138"], ["date_accepted", "2021-03-02 01:12:45.540959"], ["claim_hash", "dyiKEqrZnlmHjwrN3NteUMyrSTLOKTK2BUSYeUFh"], ["created_at", "2021-03-02 01:12:45.541117"], ["updated_at", "2021-03-02 01:12:45.541117"]]
38469
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38470
+ TRANSACTION (0.1ms) rollback transaction
38471
+ TRANSACTION (0.0ms) begin transaction
38472
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38473
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38474
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test4@d-i.co"], ["created_at", "2021-03-02 01:12:45.543239"], ["updated_at", "2021-03-02 01:12:45.543239"]]
38475
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38476
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38477
+ 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-03-02 01:12:45.544217"], ["claim_hash", "cj1XPoOdMzyXvfpZtwd0s1FAYs5bxRc6RiCZQHnG"], ["created_at", "2021-03-02 01:12:45.544197"], ["updated_at", "2021-03-02 01:12:45.544197"]]
38478
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38479
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
38480
+ TRANSACTION (0.1ms) rollback transaction
38481
+ TRANSACTION (0.0ms) begin transaction
38482
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38483
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38484
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.546792"], ["updated_at", "2021-03-02 01:12:45.546792"]]
38485
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38486
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38487
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.547686"], ["updated_at", "2021-03-02 01:12:45.547686"]]
38488
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38489
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38490
+ 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-03-02 01:12:45.548661"], ["date_accepted", "2021-03-02 01:12:45.548330"], ["claim_hash", "HskEOjVvcyjyEfIzd2iko0T9fmRtO94Gi33Ai6PH"], ["created_at", "2021-03-02 01:12:45.548642"], ["updated_at", "2021-03-02 01:12:45.548642"]]
38491
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38492
+ 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]]
38493
+  (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"]]
38494
+ TRANSACTION (0.1ms) rollback transaction
38495
+ TRANSACTION (0.0ms) begin transaction
38496
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38497
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38498
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.553445"], ["updated_at", "2021-03-02 01:12:45.553445"]]
38499
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38500
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38501
+ 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-03-02 01:12:45.554494"], ["claim_hash", "34qTsaXnkKtvxBpscAjrjWzP78xhTdTuxE0dKahJ"], ["created_at", "2021-03-02 01:12:45.554474"], ["updated_at", "2021-03-02 01:12:45.554474"]]
38502
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38503
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38504
+ TRANSACTION (0.1ms) rollback transaction
38505
+ TRANSACTION (0.0ms) begin transaction
38506
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38507
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38508
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.556931"], ["updated_at", "2021-03-02 01:12:45.556931"]]
38509
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38510
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38511
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.557908"], ["updated_at", "2021-03-02 01:12:45.557908"]]
38512
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38513
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38514
+ 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-03-02 01:12:45.558926"], ["date_accepted", "2021-03-02 01:12:45.558592"], ["claim_hash", "DbiBmFBIKj6qaFF4UxfdESyNbeb4ApDJJij7aCjp"], ["created_at", "2021-03-02 01:12:45.558905"], ["updated_at", "2021-03-02 01:12:45.558905"]]
38515
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38516
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38517
+ TRANSACTION (0.1ms) rollback transaction
38518
+ TRANSACTION (0.0ms) begin transaction
38519
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38520
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
38521
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.561792"], ["updated_at", "2021-03-02 01:12:45.561792"]]
38522
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38523
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38524
+ 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-03-02 01:12:45.563218"], ["claim_hash", "pXHo9KxIir3aM4Uwlm9LtHoj5Av2PH0K8SZ08lMh"], ["created_at", "2021-03-02 01:12:45.563195"], ["updated_at", "2021-03-02 01:12:45.563195"]]
38525
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38526
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
38527
+ TRANSACTION (0.1ms) rollback transaction
38528
+ TRANSACTION (0.0ms) begin transaction
38529
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38530
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38531
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.565750"], ["updated_at", "2021-03-02 01:12:45.565750"]]
38532
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38533
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38534
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.566661"], ["updated_at", "2021-03-02 01:12:45.566661"]]
38535
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38536
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38537
+ 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-03-02 01:12:45.567630"], ["date_accepted", "2021-03-02 01:12:45.567301"], ["claim_hash", "6824hEk1Y0brO2f5x5SAWJVRD5qNzuTqC7PD0JqV"], ["created_at", "2021-03-02 01:12:45.567609"], ["updated_at", "2021-03-02 01:12:45.567609"]]
38538
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38539
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
38540
+ TRANSACTION (0.1ms) rollback transaction
38541
+ TRANSACTION (0.0ms) begin transaction
38542
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38543
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38544
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.570086"], ["updated_at", "2021-03-02 01:12:45.570086"]]
38545
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38546
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38547
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.570998"], ["updated_at", "2021-03-02 01:12:45.570998"]]
38548
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38549
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38550
+ 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-03-02 01:12:45.571955"], ["date_accepted", "2021-03-02 01:12:45.571643"], ["claim_hash", "t8gAJoGCuzcGJq2z2ByERKCxDIiZhSghIsmfv5wb"], ["created_at", "2021-03-02 01:12:45.571936"], ["updated_at", "2021-03-02 01:12:45.571936"]]
38551
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38552
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38553
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38554
+ TRANSACTION (0.1ms) rollback transaction
38555
+ TRANSACTION (0.1ms) begin transaction
38556
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38557
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
38558
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.575911"], ["updated_at", "2021-03-02 01:12:45.575911"]]
38559
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38560
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38561
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.577131"], ["updated_at", "2021-03-02 01:12:45.577131"]]
38562
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38563
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38564
+ 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-03-02 01:12:45.578257"], ["date_accepted", "2021-03-02 01:12:45.577872"], ["claim_hash", "Cm1horHRqEqpl4X9m8cK91iOiapYWA4SDoNlrOje"], ["created_at", "2021-03-02 01:12:45.578235"], ["updated_at", "2021-03-02 01:12:45.578235"]]
38565
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38566
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38567
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.579311"], ["updated_at", "2021-03-02 01:12:45.579311"]]
38568
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38569
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
38570
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
38571
+ TRANSACTION (0.1ms) rollback transaction
38572
+ TRANSACTION (0.0ms) begin transaction
38573
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38574
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38575
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.582100"], ["updated_at", "2021-03-02 01:12:45.582100"]]
38576
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38577
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38578
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.583094"], ["updated_at", "2021-03-02 01:12:45.583094"]]
38579
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38580
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38581
+ 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-03-02 01:12:45.584129"], ["date_accepted", "2021-03-02 01:12:45.583773"], ["claim_hash", "6Po5bCZehrefIgBSqdYj8DFdKzfhK1vg8fUCjC6E"], ["created_at", "2021-03-02 01:12:45.584107"], ["updated_at", "2021-03-02 01:12:45.584107"]]
38582
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38583
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38584
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38585
+ 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]]
38586
+ TRANSACTION (0.1ms) rollback transaction
38587
+ TRANSACTION (0.0ms) begin transaction
38588
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38589
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38590
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.587508"], ["updated_at", "2021-03-02 01:12:45.587508"]]
38591
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38592
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38593
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.588530"], ["updated_at", "2021-03-02 01:12:45.588530"]]
38594
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38595
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38596
+ 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-03-02 01:12:45.589693"], ["date_accepted", "2021-03-02 01:12:45.589307"], ["claim_hash", "WXZbzn3reOp1yBaVl5w0VnmXU4IsIPLXxeGT7o2m"], ["created_at", "2021-03-02 01:12:45.589670"], ["updated_at", "2021-03-02 01:12:45.589670"]]
38597
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38598
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38599
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.590811"], ["updated_at", "2021-03-02 01:12:45.590811"]]
38600
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38601
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
38602
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 2]]
38603
+ TRANSACTION (0.1ms) rollback transaction
38604
+ TRANSACTION (0.0ms) begin transaction
38605
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38606
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38607
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.594293"], ["updated_at", "2021-03-02 01:12:45.594293"]]
38608
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38609
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38610
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.595416"], ["updated_at", "2021-03-02 01:12:45.595416"]]
38611
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38612
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38613
+ 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-03-02 01:12:45.596735"], ["date_accepted", "2021-03-02 01:12:45.596308"], ["claim_hash", "mmtwGNKUDUfr3um6a3jnR25UVhOOKSyR2DLh5A7U"], ["created_at", "2021-03-02 01:12:45.596711"], ["updated_at", "2021-03-02 01:12:45.596711"]]
38614
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38615
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38616
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38617
+ 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]]
38618
+ TRANSACTION (0.1ms) rollback transaction
38619
+ TRANSACTION (0.0ms) begin transaction
38620
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38621
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38622
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.600393"], ["updated_at", "2021-03-02 01:12:45.600393"]]
38623
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38624
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38625
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.601371"], ["updated_at", "2021-03-02 01:12:45.601371"]]
38626
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38627
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38628
+ 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-03-02 01:12:45.602388"], ["date_accepted", "2021-03-02 01:12:45.602025"], ["claim_hash", "YWhoG8G1njSfHSWApX0f0nYG2e3r87bbByCTiZ4d"], ["created_at", "2021-03-02 01:12:45.602367"], ["updated_at", "2021-03-02 01:12:45.602367"]]
38629
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38630
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38631
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
38632
+ Invitation Destroy (0.1ms) DELETE FROM "invitations" WHERE "invitations"."id" = ? [["id", 1]]
38633
+ User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
38634
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38635
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
38636
+ TRANSACTION (0.1ms) rollback transaction
38637
+ TRANSACTION (0.0ms) begin transaction
38638
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38639
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38640
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.606574"], ["updated_at", "2021-03-02 01:12:45.606574"]]
38641
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38642
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38643
+ 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-03-02 01:12:45.607827"], ["claim_hash", "NnJ8bD3EopAMkbCKJh8cUb8TTRUg0b4uUWM00AMd"], ["created_at", "2021-03-02 01:12:45.607804"], ["updated_at", "2021-03-02 01:12:45.607804"]]
38644
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38645
+ 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]]
38646
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38647
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.610581"], ["updated_at", "2021-03-02 01:12:45.610581"]]
38648
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38649
+ 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]]
38650
+ 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')
38651
+ TRANSACTION (0.1ms) rollback transaction
38652
+ TRANSACTION (0.0ms) begin transaction
38653
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38654
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38655
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.613787"], ["updated_at", "2021-03-02 01:12:45.613787"]]
38656
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38657
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38658
+ 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-03-02 01:12:45.614905"], ["claim_hash", "4qeK4gxax16Z10r0DC44cHqAHwXM0DVeeS98DDH0"], ["created_at", "2021-03-02 01:12:45.614876"], ["updated_at", "2021-03-02 01:12:45.614876"]]
38659
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38660
+ 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]]
38661
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
38662
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.616868"], ["updated_at", "2021-03-02 01:12:45.616868"]]
38663
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38664
+ 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]]
38665
+ 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')
38666
+ TRANSACTION (0.1ms) rollback transaction
38667
+ TRANSACTION (0.0ms) begin transaction
38668
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38669
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38670
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.620474"], ["updated_at", "2021-03-02 01:12:45.620474"]]
38671
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38672
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38673
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.621492"], ["updated_at", "2021-03-02 01:12:45.621492"]]
38674
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38675
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
38676
+ 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-03-02 01:12:45.622644"], ["date_accepted", "2021-03-02 01:12:45.622220"], ["claim_hash", "402xnfoEPryIO495RFV6DAXFeGPzhxGGU8ZeK5Mw"], ["created_at", "2021-03-02 01:12:45.622614"], ["updated_at", "2021-03-02 01:12:45.622614"]]
38677
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38678
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38679
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.624245"], ["updated_at", "2021-03-02 01:12:45.624245"]]
38680
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38681
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38682
+ 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-03-02 01:12:45.625342"], ["claim_hash", "uEgl68xdIQSyhABGZiOy54ZZQdnLMOpwECJd6a5i"], ["created_at", "2021-03-02 01:12:45.625319"], ["updated_at", "2021-03-02 01:12:45.625319"]]
38683
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38684
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38685
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38686
+ TRANSACTION (0.1ms) rollback transaction
38687
+ TRANSACTION (0.0ms) begin transaction
38688
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38689
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38690
+ User Create (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.628408"], ["updated_at", "2021-03-02 01:12:45.628408"]]
38691
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38692
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38693
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.629547"], ["updated_at", "2021-03-02 01:12:45.629547"]]
38694
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38695
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38696
+ 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-03-02 01:12:45.630728"], ["date_accepted", "2021-03-02 01:12:45.630355"], ["claim_hash", "epFAe3zTxyaHVFTZ9kS1bZ3OMOGbP8FglxmqbEWf"], ["created_at", "2021-03-02 01:12:45.630703"], ["updated_at", "2021-03-02 01:12:45.630703"]]
38697
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38698
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38699
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.631702"], ["updated_at", "2021-03-02 01:12:45.631702"]]
38700
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38701
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38702
+ 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-03-02 01:12:45.632523"], ["claim_hash", "Jj2zmPdai2kBvumXHzHeDwOHa7wvYbPTB71KXQ1K"], ["created_at", "2021-03-02 01:12:45.632505"], ["updated_at", "2021-03-02 01:12:45.632505"]]
38703
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38704
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38705
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.633410"], ["updated_at", "2021-03-02 01:12:45.633410"]]
38706
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38707
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
38708
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
38709
+ TRANSACTION (0.1ms) rollback transaction
38710
+ TRANSACTION (0.0ms) begin transaction
38711
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38712
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38713
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.636063"], ["updated_at", "2021-03-02 01:12:45.636063"]]
38714
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38715
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38716
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.636924"], ["updated_at", "2021-03-02 01:12:45.636924"]]
38717
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38718
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38719
+ 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-03-02 01:12:45.637890"], ["date_accepted", "2021-03-02 01:12:45.637561"], ["claim_hash", "Lc6klOnx1w2ecIvtPGDX4mv6d71mJk0eFsww2W7K"], ["created_at", "2021-03-02 01:12:45.637870"], ["updated_at", "2021-03-02 01:12:45.637870"]]
38720
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38721
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38722
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.638830"], ["updated_at", "2021-03-02 01:12:45.638830"]]
38723
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38724
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38725
+ 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-03-02 01:12:45.639631"], ["claim_hash", "u25XLZYQ4WJwwO6IMgeeFICXl3x6Q6LswX28q1Bk"], ["created_at", "2021-03-02 01:12:45.639613"], ["updated_at", "2021-03-02 01:12:45.639613"]]
38726
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38727
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
38728
+ TRANSACTION (0.1ms) rollback transaction
38729
+ TRANSACTION (0.0ms) begin transaction
38730
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
38731
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38732
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.642247"], ["updated_at", "2021-03-02 01:12:45.642247"]]
38733
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38734
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38735
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.643209"], ["updated_at", "2021-03-02 01:12:45.643209"]]
38736
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38737
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38738
+ 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-03-02 01:12:45.644207"], ["date_accepted", "2021-03-02 01:12:45.643850"], ["claim_hash", "apwuJkfmLxcDqmELXWnixJZ6FVNgUiV11qw1c5Cq"], ["created_at", "2021-03-02 01:12:45.644186"], ["updated_at", "2021-03-02 01:12:45.644186"]]
38739
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38740
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38741
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.645143"], ["updated_at", "2021-03-02 01:12:45.645143"]]
38742
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38743
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38744
+ 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-03-02 01:12:45.645990"], ["claim_hash", "cSDDGDXCentb6xou5AZUXrIoSXLD2vGSUB2iiMu3"], ["created_at", "2021-03-02 01:12:45.645972"], ["updated_at", "2021-03-02 01:12:45.645972"]]
38745
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38746
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38747
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38748
+ 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]]
38749
+ TRANSACTION (0.1ms) rollback transaction
38750
+ TRANSACTION (0.0ms) begin transaction
38751
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38752
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38753
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.649167"], ["updated_at", "2021-03-02 01:12:45.649167"]]
38754
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38755
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38756
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.650055"], ["updated_at", "2021-03-02 01:12:45.650055"]]
38757
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38758
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38759
+ 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-03-02 01:12:45.651019"], ["date_accepted", "2021-03-02 01:12:45.650693"], ["claim_hash", "E9fsGaCvEY6LKd9Vf2e01mcf8HahHFRFLkG3DakE"], ["created_at", "2021-03-02 01:12:45.650999"], ["updated_at", "2021-03-02 01:12:45.650999"]]
38760
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38761
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38762
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.651926"], ["updated_at", "2021-03-02 01:12:45.651926"]]
38763
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38764
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38765
+ 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-03-02 01:12:45.652728"], ["claim_hash", "TzyKIS4lEoyYF4Pd46UvdvycaWur7Q07IlqTzLJv"], ["created_at", "2021-03-02 01:12:45.652709"], ["updated_at", "2021-03-02 01:12:45.652709"]]
38766
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38767
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38768
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38769
+ 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]]
38770
+ TRANSACTION (0.1ms) rollback transaction
38771
+ TRANSACTION (0.1ms) begin transaction
38772
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38773
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38774
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.656577"], ["updated_at", "2021-03-02 01:12:45.656577"]]
38775
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38776
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38777
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.657546"], ["updated_at", "2021-03-02 01:12:45.657546"]]
38778
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38779
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38780
+ 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-03-02 01:12:45.658534"], ["date_accepted", "2021-03-02 01:12:45.658174"], ["claim_hash", "FrrE58NvDOVomrWJ4ywcfNu9bVFDY2d4ojYfwKcm"], ["created_at", "2021-03-02 01:12:45.658514"], ["updated_at", "2021-03-02 01:12:45.658514"]]
38781
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38782
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38783
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.659440"], ["updated_at", "2021-03-02 01:12:45.659440"]]
38784
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38785
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38786
+ 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-03-02 01:12:45.660234"], ["claim_hash", "ayJ7JO4d1UjTj46dJtP2NV6yNrIrGonHlEqeoIum"], ["created_at", "2021-03-02 01:12:45.660216"], ["updated_at", "2021-03-02 01:12:45.660216"]]
38787
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38788
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38789
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.661057"], ["updated_at", "2021-03-02 01:12:45.661057"]]
38790
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38791
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
38792
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
38793
+ TRANSACTION (0.1ms) rollback transaction
38794
+ TRANSACTION (0.0ms) begin transaction
38795
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38796
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38797
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.663807"], ["updated_at", "2021-03-02 01:12:45.663807"]]
38798
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38799
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38800
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.664697"], ["updated_at", "2021-03-02 01:12:45.664697"]]
38801
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38802
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38803
+ 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-03-02 01:12:45.665645"], ["date_accepted", "2021-03-02 01:12:45.665319"], ["claim_hash", "9Xz62bn50ABY1BnJZkGGXF5zhL9MmtUQyFjIJJuC"], ["created_at", "2021-03-02 01:12:45.665625"], ["updated_at", "2021-03-02 01:12:45.665625"]]
38804
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38805
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38806
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.666562"], ["updated_at", "2021-03-02 01:12:45.666562"]]
38807
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38808
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38809
+ 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-03-02 01:12:45.667353"], ["claim_hash", "L2j3SrrmbJ5KD9SXZq8E6G49kRJAvrBXO9naAk2t"], ["created_at", "2021-03-02 01:12:45.667335"], ["updated_at", "2021-03-02 01:12:45.667335"]]
38810
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38811
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
38812
+ TRANSACTION (0.1ms) rollback transaction
38813
+ TRANSACTION (0.0ms) begin transaction
38814
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38815
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38816
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.669660"], ["updated_at", "2021-03-02 01:12:45.669660"]]
38817
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38818
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38819
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.670524"], ["updated_at", "2021-03-02 01:12:45.670524"]]
38820
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38821
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38822
+ 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-03-02 01:12:45.671447"], ["date_accepted", "2021-03-02 01:12:45.671141"], ["claim_hash", "fKETjeDlXAFNfL0bMtrbXKCaFsXIqFlIlCuIFqh5"], ["created_at", "2021-03-02 01:12:45.671428"], ["updated_at", "2021-03-02 01:12:45.671428"]]
38823
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38824
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38825
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.672339"], ["updated_at", "2021-03-02 01:12:45.672339"]]
38826
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38827
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38828
+ 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-03-02 01:12:45.673226"], ["claim_hash", "etyIwL3pk3lXWWJ52g69glla5IgL7yldGzDkx19K"], ["created_at", "2021-03-02 01:12:45.673207"], ["updated_at", "2021-03-02 01:12:45.673207"]]
38829
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38830
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38831
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38832
+ 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]]
38833
+ TRANSACTION (0.1ms) rollback transaction
38834
+ TRANSACTION (0.0ms) begin transaction
38835
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38836
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38837
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.676551"], ["updated_at", "2021-03-02 01:12:45.676551"]]
38838
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38839
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38840
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.677493"], ["updated_at", "2021-03-02 01:12:45.677493"]]
38841
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38842
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38843
+ 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-03-02 01:12:45.678475"], ["date_accepted", "2021-03-02 01:12:45.678116"], ["claim_hash", "vnDLTgrdvLd8iNx48mj5MbPnVzijPe7PPwOzCKmg"], ["created_at", "2021-03-02 01:12:45.678454"], ["updated_at", "2021-03-02 01:12:45.678454"]]
38844
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38845
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38846
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.679385"], ["updated_at", "2021-03-02 01:12:45.679385"]]
38847
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38848
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38849
+ 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-03-02 01:12:45.680185"], ["claim_hash", "xTkPPc9YHOZHxovI3dxrHabYUjMh8OnAYGE2qPt5"], ["created_at", "2021-03-02 01:12:45.680168"], ["updated_at", "2021-03-02 01:12:45.680168"]]
38850
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38851
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
38852
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
38853
+ 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]]
38854
+ TRANSACTION (0.1ms) rollback transaction
38855
+ TRANSACTION (0.0ms) begin transaction
38856
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38857
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38858
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.683346"], ["updated_at", "2021-03-02 01:12:45.683346"]]
38859
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38860
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38861
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.684236"], ["updated_at", "2021-03-02 01:12:45.684236"]]
38862
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38863
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38864
+ 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-03-02 01:12:45.685351"], ["date_accepted", "2021-03-02 01:12:45.684920"], ["claim_hash", "NoI0vL2GDu1Je0vnmxUgFXqZnotQmQykHcYVjErc"], ["created_at", "2021-03-02 01:12:45.685330"], ["updated_at", "2021-03-02 01:12:45.685330"]]
38865
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38866
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38867
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.686641"], ["updated_at", "2021-03-02 01:12:45.686641"]]
38868
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38869
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38870
+ 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-03-02 01:12:45.687550"], ["claim_hash", "5CWoyOoYAaxL0azAIfmx89qKibc6Zwhr3KyQeJpc"], ["created_at", "2021-03-02 01:12:45.687531"], ["updated_at", "2021-03-02 01:12:45.687531"]]
38871
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38872
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38873
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.688386"], ["updated_at", "2021-03-02 01:12:45.688386"]]
38874
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38875
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 3]]
38876
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 3]]
38877
+ TRANSACTION (0.1ms) rollback transaction
38878
+ TRANSACTION (0.0ms) begin transaction
38879
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38880
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38881
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test1@d-i.co"], ["created_at", "2021-03-02 01:12:45.691193"], ["updated_at", "2021-03-02 01:12:45.691193"]]
38882
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38883
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38884
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.692073"], ["updated_at", "2021-03-02 01:12:45.692073"]]
38885
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38886
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38887
+ 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-03-02 01:12:45.693018"], ["date_accepted", "2021-03-02 01:12:45.692694"], ["claim_hash", "ygH6Sh0EVkOFvsKyCys9J3RTmMiS7a2hQ78GIjaL"], ["created_at", "2021-03-02 01:12:45.692998"], ["updated_at", "2021-03-02 01:12:45.692998"]]
38888
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38889
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38890
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test3@d-i.co"], ["created_at", "2021-03-02 01:12:45.693959"], ["updated_at", "2021-03-02 01:12:45.693959"]]
38891
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38892
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38893
+ 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-03-02 01:12:45.694790"], ["claim_hash", "0BH2S5jarwis6pZcsNZSTu3qTMhxw7vlyyFBgESO"], ["created_at", "2021-03-02 01:12:45.694771"], ["updated_at", "2021-03-02 01:12:45.694771"]]
38894
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38895
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 2]]
38896
+ TRANSACTION (0.1ms) rollback transaction
38897
+ TRANSACTION (0.0ms) begin transaction
38898
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38899
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38900
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.697340"], ["updated_at", "2021-03-02 01:12:45.697340"]]
38901
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38902
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38903
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.698295"], ["updated_at", "2021-03-02 01:12:45.698295"]]
38904
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38905
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38906
+ 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-03-02 01:12:45.699196"], ["claim_hash", "0z2SOr1GmrEJibXZ8J184wIy4w4X4sAPCsFpIgPU"], ["created_at", "2021-03-02 01:12:45.699176"], ["updated_at", "2021-03-02 01:12:45.699176"]]
38907
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38908
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38909
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 2"], ["created_at", "2021-03-02 01:12:45.700064"], ["updated_at", "2021-03-02 01:12:45.700064"]]
38910
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38911
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38912
+ 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-03-02 01:12:45.700888"], ["claim_hash", "LgF2EHhXmHzMZLShFoeLfJHMVWRzATIZvKoM8VKk"], ["created_at", "2021-03-02 01:12:45.700869"], ["updated_at", "2021-03-02 01:12:45.700869"]]
38913
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38914
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test@d-i.co' AND user_id IS NULL)
38915
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38916
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
38917
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-03-02 01:12:45.701938"], ["updated_at", "2021-03-02 01:12:45.702635"], ["id", 1]]
38918
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38919
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38920
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
38921
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-03-02 01:12:45.703265"], ["updated_at", "2021-03-02 01:12:45.703850"], ["id", 2]]
38922
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38923
+ 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]]
38924
+ 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]]
38925
+ TRANSACTION (0.1ms) rollback transaction
38926
+ TRANSACTION (0.0ms) begin transaction
38927
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38928
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38929
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity 1"], ["created_at", "2021-03-02 01:12:45.706368"], ["updated_at", "2021-03-02 01:12:45.706368"]]
38930
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38931
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38932
+ 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-03-02 01:12:45.707423"], ["claim_hash", "4sZgsYkreQmXNZlDjfwMqnPK0xEVVdH3yw5QvTze"], ["created_at", "2021-03-02 01:12:45.707402"], ["updated_at", "2021-03-02 01:12:45.707402"]]
38933
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38934
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38935
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.708337"], ["updated_at", "2021-03-02 01:12:45.708337"]]
38936
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38937
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (email = 'test@d-i.co' AND user_id IS NULL)
38938
+ 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]]
38939
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
38940
+ TRANSACTION (0.1ms) rollback transaction
38941
+ TRANSACTION (0.0ms) begin transaction
38942
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38943
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38944
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.711355"], ["updated_at", "2021-03-02 01:12:45.711355"]]
38945
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38946
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38947
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.712279"], ["updated_at", "2021-03-02 01:12:45.712279"]]
38948
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38949
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38950
+ 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-03-02 01:12:45.713329"], ["claim_hash", "NZrLjdlKBINwZpGZuwYJxxyTntjbowAwuEFU9JUF"], ["created_at", "2021-03-02 01:12:45.713300"], ["updated_at", "2021-03-02 01:12:45.713300"]]
38951
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38952
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'NZrLjdlKBINwZpGZuwYJxxyTntjbowAwuEFU9JUF') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
38953
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38954
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
38955
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-03-02 01:12:45.714803"], ["updated_at", "2021-03-02 01:12:45.715547"], ["id", 1]]
38956
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38957
+ 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]]
38958
+ TRANSACTION (0.1ms) rollback transaction
38959
+ TRANSACTION (0.0ms) begin transaction
38960
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38961
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38962
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.718435"], ["updated_at", "2021-03-02 01:12:45.718435"]]
38963
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38964
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38965
+ 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-03-02 01:12:45.719496"], ["claim_hash", "h4KNjBcd6afTvVwNkihUkBKtUc8PyDhkPj97qaXl"], ["created_at", "2021-03-02 01:12:45.719475"], ["updated_at", "2021-03-02 01:12:45.719475"]]
38966
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38967
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38968
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.720388"], ["updated_at", "2021-03-02 01:12:45.720388"]]
38969
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38970
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'h4KNjBcd6afTvVwNkihUkBKtUc8PyDhkPj97qaXl') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
38971
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38972
+ Entity Load (0.0ms) SELECT "entities".* FROM "entities" WHERE "entities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
38973
+ Invitation Update (0.1ms) UPDATE "invitations" SET "user_id" = ?, "date_accepted" = ?, "updated_at" = ? WHERE "invitations"."id" = ? [["user_id", 1], ["date_accepted", "2021-03-02 01:12:45.721435"], ["updated_at", "2021-03-02 01:12:45.722122"], ["id", 1]]
38974
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38975
+ 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]]
38976
+ TRANSACTION (0.1ms) rollback transaction
38977
+ TRANSACTION (0.0ms) begin transaction
38978
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38979
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38980
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2021-03-02 01:12:45.724456"], ["updated_at", "2021-03-02 01:12:45.724456"]]
38981
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38982
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38983
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.725352"], ["updated_at", "2021-03-02 01:12:45.725352"]]
38984
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38985
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38986
+ 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-03-02 01:12:45.726317"], ["date_accepted", "2021-03-02 01:12:45.725982"], ["claim_hash", "tpHlPpnnpo8cJ5OEpB5sNtstd6lzJHwxN8bA7wTq"], ["created_at", "2021-03-02 01:12:45.726298"], ["updated_at", "2021-03-02 01:12:45.726298"]]
38987
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38988
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38989
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.727221"], ["updated_at", "2021-03-02 01:12:45.727221"]]
38990
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
38991
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'tpHlPpnnpo8cJ5OEpB5sNtstd6lzJHwxN8bA7wTq') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
38992
+ 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]]
38993
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 2]]
38994
+ TRANSACTION (0.1ms) rollback transaction
38995
+ TRANSACTION (0.0ms) begin transaction
38996
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
38997
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38998
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.730458"], ["updated_at", "2021-03-02 01:12:45.730458"]]
38999
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39000
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39001
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test entity"], ["created_at", "2021-03-02 01:12:45.731384"], ["updated_at", "2021-03-02 01:12:45.731384"]]
39002
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39003
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39004
+ 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-03-02 01:12:45.732280"], ["claim_hash", "7DoqsHwh4dQuwlwj7SGy1aU6dSzsVyJnxC1rgYb0"], ["created_at", "2021-03-02 01:12:45.732261"], ["updated_at", "2021-03-02 01:12:45.732261"]]
39005
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39006
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations" WHERE (claim_hash = 'THIS_IS_A_BAD_HASH') ORDER BY "invitations"."id" ASC LIMIT ? [["LIMIT", 1]]
39007
+ 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]]
39008
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations" WHERE "invitations"."user_id" = ? [["user_id", 1]]
39009
+ TRANSACTION (0.1ms) rollback transaction
39010
+ TRANSACTION (0.0ms) begin transaction
39011
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39012
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39013
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-03-02 01:12:45.735469"], ["updated_at", "2021-03-02 01:12:45.735469"]]
39014
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39015
+  (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"]]
39016
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39017
+ 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-03-02 01:12:45.737081"], ["claim_hash", "nvI8awLFG5ZCubxthtnWpkpnY2NglTAIUna3Yc7V"], ["created_at", "2021-03-02 01:12:45.737060"], ["updated_at", "2021-03-02 01:12:45.737060"]]
39018
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39019
+ TRANSACTION (0.1ms) rollback transaction
39020
+ TRANSACTION (0.0ms) begin transaction
39021
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39022
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39023
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-03-02 01:12:45.739040"], ["updated_at", "2021-03-02 01:12:45.739040"]]
39024
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39025
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39026
+ 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-03-02 01:12:45.740055"], ["claim_hash", "0FtdZrFYNeYun2pvybX0VscXXzBuv5XJguIsrsZc"], ["created_at", "2021-03-02 01:12:45.740035"], ["updated_at", "2021-03-02 01:12:45.740035"]]
39027
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39028
+  (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"]]
39029
+ TRANSACTION (0.1ms) rollback transaction
39030
+ TRANSACTION (0.0ms) begin transaction
39031
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39032
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39033
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-03-02 01:12:45.742846"], ["updated_at", "2021-03-02 01:12:45.742846"]]
39034
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39035
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39036
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.743780"], ["updated_at", "2021-03-02 01:12:45.743780"]]
39037
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39038
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39039
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39040
+ 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-03-02 01:12:45.745277"], ["date_accepted", "2021-03-02 01:12:45.745082"], ["claim_hash", "CauHVG3wGNpliVKzpbzU4SX5kTBwrNuFnc2ZkH8u"], ["created_at", "2021-03-02 01:12:45.745257"], ["updated_at", "2021-03-02 01:12:45.745257"]]
39041
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39042
+ TRANSACTION (0.1ms) rollback transaction
39043
+ TRANSACTION (0.0ms) begin transaction
39044
+ Invitation Load (0.1ms) SELECT "invitations".* FROM "invitations"
39045
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39046
+ Entity Create (0.1ms) INSERT INTO "entities" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Test Entity"], ["created_at", "2021-03-02 01:12:45.747538"], ["updated_at", "2021-03-02 01:12:45.747538"]]
39047
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39048
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39049
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@d-i.co"], ["created_at", "2021-03-02 01:12:45.748785"], ["updated_at", "2021-03-02 01:12:45.748785"]]
39050
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39051
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39052
+ 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-03-02 01:12:45.750045"], ["claim_hash", "fZVlsUEYtse6pQPIaPj7A7wC9MVMEDMPcV0b2oDC"], ["created_at", "2021-03-02 01:12:45.750021"], ["updated_at", "2021-03-02 01:12:45.750021"]]
39053
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39054
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_type = 'Entity' AND invitable_id = 1) [["user_id", 1]]
39055
+ TRANSACTION (0.1ms) rollback transaction
39056
+ TRANSACTION (0.0ms) begin transaction
39057
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39058
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test@d-i.co')
39059
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39060
+ 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-03-02 01:12:45.753165"], ["claim_hash", "ByXje6W5ZLUPTSjzrpnZUaPTKMXXxPZX5DL3ja9w"], ["created_at", "2021-03-02 01:12:45.753145"], ["updated_at", "2021-03-02 01:12:45.753145"]]
39061
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39062
+ TRANSACTION (0.1ms) rollback transaction
39063
+ TRANSACTION (0.0ms) begin transaction
39064
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39065
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39066
+ 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-03-02 01:12:45.755108"], ["claim_hash", "S01HqRVAArBgMzeD1iJNSDFIFQBYKqnAUcEXjPCu"], ["created_at", "2021-03-02 01:12:45.755090"], ["updated_at", "2021-03-02 01:12:45.755090"]]
39067
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39068
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'employer') AND (email = 'test@d-i.co')
39069
+ TRANSACTION (0.1ms) rollback transaction
39070
+ TRANSACTION (0.0ms) begin transaction
39071
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39072
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39073
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.757440"], ["updated_at", "2021-03-02 01:12:45.757440"]]
39074
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39075
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
39076
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39077
+ 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-03-02 01:12:45.759041"], ["date_accepted", "2021-03-02 01:12:45.758868"], ["claim_hash", "AcJHlmAeVBmfBQ1oXIBl0snodD0ssJYlhuQc6djd"], ["created_at", "2021-03-02 01:12:45.759019"], ["updated_at", "2021-03-02 01:12:45.759019"]]
39078
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39079
+ TRANSACTION (0.1ms) rollback transaction
39080
+ TRANSACTION (0.0ms) begin transaction
39081
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39082
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39083
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.761007"], ["updated_at", "2021-03-02 01:12:45.761007"]]
39084
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39085
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39086
+ 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-03-02 01:12:45.761923"], ["claim_hash", "KPoYrnUOIYoPwsq8EbnhDqvR7GBPJi2IYVXzy1Ld"], ["created_at", "2021-03-02 01:12:45.761904"], ["updated_at", "2021-03-02 01:12:45.761904"]]
39087
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39088
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'employer') [["user_id", 1]]
39089
+ TRANSACTION (0.1ms) rollback transaction
39090
+ TRANSACTION (0.0ms) begin transaction
39091
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39092
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test@d-i.co')
39093
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39094
+ 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-03-02 01:12:45.764750"], ["claim_hash", "XFXBhZ5bp7sPplren8GRZiPq5IbetcZF6sUreD8D"], ["created_at", "2021-03-02 01:12:45.764731"], ["updated_at", "2021-03-02 01:12:45.764731"]]
39095
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39096
+ TRANSACTION (0.1ms) rollback transaction
39097
+ TRANSACTION (0.0ms) begin transaction
39098
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39099
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39100
+ 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-03-02 01:12:45.766676"], ["claim_hash", "m7lYRjC0ULaMJeqmkfDEIczm2KITva629fEkxJqQ"], ["created_at", "2021-03-02 01:12:45.766658"], ["updated_at", "2021-03-02 01:12:45.766658"]]
39101
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39102
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE (invitable_id IS NULL AND role = 'uberadmin') AND (email = 'test@d-i.co')
39103
+ TRANSACTION (0.1ms) rollback transaction
39104
+ TRANSACTION (0.0ms) begin transaction
39105
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39106
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39107
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.769006"], ["updated_at", "2021-03-02 01:12:45.769006"]]
39108
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39109
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39110
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39111
+ 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-03-02 01:12:45.770569"], ["date_accepted", "2021-03-02 01:12:45.770403"], ["claim_hash", "VrdB83u8HyjVAxkuJhheQZ8x4oBJUyIB9NiY6kTp"], ["created_at", "2021-03-02 01:12:45.770549"], ["updated_at", "2021-03-02 01:12:45.770549"]]
39112
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39113
+ TRANSACTION (0.1ms) rollback transaction
39114
+ TRANSACTION (0.0ms) begin transaction
39115
+ Invitation Load (0.0ms) SELECT "invitations".* FROM "invitations"
39116
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39117
+ User Create (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test2@d-i.co"], ["created_at", "2021-03-02 01:12:45.772521"], ["updated_at", "2021-03-02 01:12:45.772521"]]
39118
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39119
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
39120
+ 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-03-02 01:12:45.773525"], ["claim_hash", "e6nHT0ldmhjApJFqABhQ2np7lsgc2TXWVHv4MM2p"], ["created_at", "2021-03-02 01:12:45.773504"], ["updated_at", "2021-03-02 01:12:45.773504"]]
39121
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39122
+  (0.1ms) SELECT COUNT(*) FROM "invitations" WHERE "invitations"."user_id" = ? AND (invitable_id IS NULL AND role = 'uberadmin') [["user_id", 1]]
39123
+ TRANSACTION (0.1ms) rollback transaction