arel-helpers 2.12.0 → 2.12.1

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: d792fc6a4945a79243f3e4b9720c9f10ce21f5a044328f56f2b381045183589a
4
- data.tar.gz: becca530d9ecfd5a25594ce0363cbde8d792d564358d2394a36d7040e6341384
3
+ metadata.gz: 20ee0a4bd3c483dbe5dc58fa930700f36a09e593faf1982f0c578e5adb4736e4
4
+ data.tar.gz: 26195a43b12121bb2ef5d4bbee9ebe9e95ce70769e24206892a04cd04d76cc25
5
5
  SHA512:
6
- metadata.gz: 2d825413e0dc2f3caff9ddcbc93a4eadbb1d8814196bc515fd13b3a759969db970a9fe2df911da86def2125d724d5c651e5a39eba2d9cf873d573c913b6a51f5
7
- data.tar.gz: 70bea7795e9bcd75058dad5aaee877f6fb1d00e40f9e62b0db8b908d1a1f0656654fe67170a1024e1776b2a458ea11622fad399cda001ffd127c5f35f8197824
6
+ metadata.gz: 6e40a55ba798ac3c094a44aaf0d9dce31cf6ce12adca9a5e2b45f225696f69dfcbc1cb8b517ea984113ad888392b519b4d98538fd904f3cb4bdbfe7772cac5c7
7
+ data.tar.gz: 409ebbdbaedef2216bc68579f562dcfa44dfb2dcf7b0b4275599fee2c11f3e165674237cf882c4aef31e651069079649a04e583ac15a06a9ebfc39c3b0b48b98
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
-
1
+ ![Unit Tests](https://github.com/camertron/arel-helpers/actions/workflows/unit_tests.yml/badge.svg?branch=master)
2
2
 
3
3
  ## arel-helpers [![Build Status](https://secure.travis-ci.org/camertron/arel-helpers.png?branch=master)](http://travis-ci.org/camertron/arel-helpers)
4
4
 
@@ -215,7 +215,7 @@ This can become repetitive, and as an alternative you can choose to prepend `not
215
215
 
216
216
  ## Requirements
217
217
 
218
- Requires ActiveRecord >= 3.1.0, < 6, tested against Ruby 2.2.4. Depends on SQLite for testing purposes.
218
+ Requires ActiveRecord >= 3.1.0, < 7. Depends on SQLite for testing purposes.
219
219
 
220
220
  ## Running Tests
221
221
 
@@ -18,8 +18,8 @@ module ArelHelpers
18
18
 
19
19
  def self.not_nil(name)
20
20
  mod = Module.new do
21
- define_method(name) do |*args|
22
- if (value = super(*args))
21
+ define_method(name) do |*args, **kwargs|
22
+ if (value = super(*args, **kwargs))
23
23
  value
24
24
  else
25
25
  reflect(query)
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ArelHelpers
4
- VERSION = '2.12.0'
4
+ VERSION = '2.12.1'
5
5
  end
@@ -1,2979 +1,393 @@
1
-  (0.9ms) SELECT sqlite_version(*)
2
-  (0.0ms) SELECT sqlite_version(*)
3
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
4
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
5
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
6
-  (0.8ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
7
-  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
8
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
9
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
10
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
11
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
12
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
13
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
14
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
15
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
16
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
17
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
18
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
19
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
20
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
21
- TRANSACTION (0.0ms) begin transaction
22
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:05:54.092252"], ["updated_at", "2020-12-22 20:05:54.092252"]]
23
- TRANSACTION (0.6ms) commit transaction
24
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
25
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
26
-  (0.0ms) SELECT sqlite_version(*)
27
-  (0.0ms) PRAGMA foreign_keys
28
-  (0.0ms) PRAGMA defer_foreign_keys
29
-  (0.0ms) PRAGMA defer_foreign_keys = ON
30
-  (0.0ms) PRAGMA foreign_keys = OFF
31
-  (0.8ms) DELETE FROM "posts";
32
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
33
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
34
-  (0.7ms) DELETE FROM "comments";
35
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
36
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
37
-  (0.6ms) DELETE FROM "authors";
38
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
39
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
40
-  (0.6ms) DELETE FROM "favorites";
41
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
42
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
43
-  (0.5ms) DELETE FROM "collab_posts";
44
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
45
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
46
-  (0.8ms) DELETE FROM "cards";
47
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
48
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
49
-  (0.7ms) DELETE FROM "card_locations";
50
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
51
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
52
-  (0.6ms) DELETE FROM "locations";
53
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
54
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
55
-  (0.5ms) DELETE FROM "community_tickets";
56
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
57
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
58
-  (0.0ms) PRAGMA defer_foreign_keys = 0
59
-  (0.0ms) PRAGMA foreign_keys = 1
60
- TRANSACTION (0.0ms) begin transaction
61
-  (0.8ms) SELECT sqlite_version(*)
62
-  (0.0ms) SELECT sqlite_version(*)
63
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
64
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
65
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
66
-  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
67
-  (1.0ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
68
-  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
69
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
70
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
71
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
72
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
73
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
74
-  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
75
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
76
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
77
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
78
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
79
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
80
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
81
- TRANSACTION (0.0ms) begin transaction
82
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:07:37.898230"], ["updated_at", "2020-12-22 20:07:37.898230"]]
83
- TRANSACTION (0.5ms) commit transaction
84
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
85
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
86
-  (0.0ms) SELECT sqlite_version(*)
87
-  (0.0ms) PRAGMA foreign_keys
88
-  (0.0ms) PRAGMA defer_foreign_keys
89
-  (0.1ms) PRAGMA defer_foreign_keys = ON
90
-  (0.0ms) PRAGMA foreign_keys = OFF
91
-  (0.8ms) DELETE FROM "posts";
92
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
93
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
94
-  (0.7ms) DELETE FROM "comments";
95
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
96
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
97
-  (0.6ms) DELETE FROM "authors";
98
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
99
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
100
-  (0.8ms) DELETE FROM "favorites";
101
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
102
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
103
-  (0.6ms) DELETE FROM "collab_posts";
104
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
105
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
106
-  (0.8ms) DELETE FROM "cards";
107
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
108
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
109
-  (0.8ms) DELETE FROM "card_locations";
110
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
111
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
112
-  (0.6ms) DELETE FROM "locations";
113
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
114
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
115
-  (0.6ms) DELETE FROM "community_tickets";
116
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
117
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
118
-  (0.0ms) PRAGMA defer_foreign_keys = 0
119
-  (0.0ms) PRAGMA foreign_keys = 1
120
- TRANSACTION (0.0ms) begin transaction
121
-  (0.8ms) SELECT sqlite_version(*)
122
-  (0.0ms) SELECT sqlite_version(*)
123
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
124
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
125
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
126
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
127
-  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
128
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
129
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
130
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
131
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
132
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
133
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
134
-  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
135
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
136
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
137
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
138
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
139
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1
+  (1.9ms) SELECT sqlite_version(*)
2
+  (0.1ms) SELECT sqlite_version(*)
3
+  (1.5ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
4
+  (1.3ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
5
+  (1.3ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
6
+  (1.2ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
7
+  (1.3ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
8
+  (1.4ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
9
+  (1.1ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
10
+  (1.1ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
11
+  (0.9ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
12
+  (1.0ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
13
+  (1.0ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
14
+  (1.0ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
15
+  (0.9ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
16
+  (1.0ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
17
+  (0.9ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
18
+  (0.9ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
19
+  (1.0ms) 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)
140
20
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
141
21
  TRANSACTION (0.0ms) begin transaction
142
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:08:18.767864"], ["updated_at", "2020-12-22 20:08:18.767864"]]
143
- TRANSACTION (0.8ms) commit transaction
144
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
22
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-08-26 17:33:23.741476"], ["updated_at", "2021-08-26 17:33:23.741476"]]
23
+ TRANSACTION (0.9ms) commit transaction
24
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
145
25
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
146
26
   (0.1ms) SELECT sqlite_version(*)
147
27
   (0.0ms) PRAGMA foreign_keys
148
-  (0.0ms) PRAGMA defer_foreign_keys
149
-  (0.0ms) PRAGMA defer_foreign_keys = ON
28
+  (0.1ms) PRAGMA defer_foreign_keys
29
+  (0.1ms) PRAGMA defer_foreign_keys = ON
150
30
   (0.0ms) PRAGMA foreign_keys = OFF
151
-  (0.6ms) DELETE FROM "posts";
31
+  (1.1ms) DELETE FROM "posts";
152
32
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
153
33
   (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
154
-  (0.8ms) DELETE FROM "comments";
34
+  (1.2ms) DELETE FROM "comments";
155
35
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
156
36
   (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
157
-  (0.8ms) DELETE FROM "authors";
37
+  (1.1ms) DELETE FROM "authors";
158
38
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
159
39
   (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
160
-  (0.5ms) DELETE FROM "favorites";
40
+  (1.0ms) DELETE FROM "favorites";
161
41
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
162
42
   (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
163
-  (0.6ms) DELETE FROM "collab_posts";
43
+  (1.0ms) DELETE FROM "collab_posts";
164
44
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
165
45
   (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
166
-  (0.7ms) DELETE FROM "cards";
46
+  (0.9ms) DELETE FROM "cards";
167
47
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
168
48
   (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
169
-  (0.6ms) DELETE FROM "card_locations";
49
+  (1.0ms) DELETE FROM "card_locations";
170
50
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
171
51
   (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
172
-  (0.5ms) DELETE FROM "locations";
52
+  (0.9ms) DELETE FROM "locations";
173
53
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
174
54
   (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
175
-  (0.5ms) DELETE FROM "community_tickets";
55
+  (0.8ms) DELETE FROM "community_tickets";
176
56
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
177
57
   (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
178
-  (0.1ms) PRAGMA defer_foreign_keys = 0
58
+  (0.0ms) PRAGMA defer_foreign_keys = 0
179
59
   (0.0ms) PRAGMA foreign_keys = 1
180
60
  TRANSACTION (0.0ms) begin transaction
181
- TRANSACTION (0.0ms) rollback transaction
182
- TRANSACTION (0.0ms) begin transaction
183
- TRANSACTION (0.0ms) rollback transaction
61
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
62
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "I'm a little teapot"]]
63
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
64
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]]
65
+ TRANSACTION (0.2ms) rollback transaction
184
66
  TRANSACTION (0.0ms) begin transaction
185
- TRANSACTION (0.0ms) rollback transaction
67
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
68
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "I'm a little teapot"]]
69
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
70
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
71
+ Comment Create (0.2ms) INSERT INTO "comments" ("post_id") VALUES (?) [["post_id", 1]]
72
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
73
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
74
+ Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]]
75
+ TRANSACTION (0.4ms) rollback transaction
186
76
  TRANSACTION (0.0ms) begin transaction
77
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
78
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
79
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "foo"]]
80
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
81
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
82
+ TRANSACTION (0.4ms) rollback transaction
83
+ TRANSACTION (0.1ms) begin transaction
187
84
  TRANSACTION (0.0ms) rollback transaction
188
- TRANSACTION (0.0ms) begin transaction
85
+ TRANSACTION (0.1ms) begin transaction
189
86
  TRANSACTION (0.0ms) rollback transaction
190
- TRANSACTION (0.0ms) begin transaction
87
+ TRANSACTION (0.1ms) begin transaction
88
+ TRANSACTION (0.1ms) rollback transaction
89
+ TRANSACTION (0.1ms) begin transaction
191
90
  TRANSACTION (0.0ms) SAVEPOINT active_record_1
192
- Location Create (0.2ms) INSERT INTO "locations" DEFAULT VALUES
91
+ Location Create (0.4ms) INSERT INTO "locations" DEFAULT VALUES
193
92
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
194
93
  TRANSACTION (0.0ms) SAVEPOINT active_record_1
195
94
  CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
196
95
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
197
96
  TRANSACTION (0.1ms) SAVEPOINT active_record_1
198
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
199
- TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
97
+ CardLocation Create (0.3ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
98
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
200
99
   (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
201
100
  Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
101
+ TRANSACTION (0.5ms) rollback transaction
102
+ TRANSACTION (0.0ms) begin transaction
103
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
104
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
105
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
106
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
202
107
  TRANSACTION (0.3ms) rollback transaction
108
+ TRANSACTION (0.1ms) begin transaction
109
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
110
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
111
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
112
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
113
+ TRANSACTION (0.4ms) rollback transaction
114
+ TRANSACTION (0.0ms) begin transaction
115
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
116
+ Post Create (0.5ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
117
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
118
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
119
+ TRANSACTION (0.3ms) rollback transaction
120
+ TRANSACTION (0.1ms) begin transaction
121
+  (0.1ms) SELECT COUNT(*) FROM "posts"
122
+ TRANSACTION (0.1ms) rollback transaction
123
+ TRANSACTION (0.1ms) begin transaction
124
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ? [["LIMIT", 1]]
125
+ TRANSACTION (0.1ms) rollback transaction
126
+ TRANSACTION (0.1ms) begin transaction
127
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ? [["LIMIT", 1]]
128
+ TRANSACTION (0.0ms) rollback transaction
203
129
  TRANSACTION (0.0ms) begin transaction
130
+  (0.1ms) SELECT "posts".* FROM "posts"
204
131
  TRANSACTION (0.0ms) rollback transaction
205
-  (0.8ms) SELECT sqlite_version(*)
206
-  (0.0ms) SELECT sqlite_version(*)
207
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
208
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
209
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
210
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
211
-  (1.0ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
212
-  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
213
-  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
214
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
215
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
216
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
217
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
218
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
219
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
220
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
221
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
222
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
223
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
132
+  (1.2ms) SELECT sqlite_version(*)
133
+  (0.1ms) SELECT sqlite_version(*)
134
+  (1.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
135
+  (1.2ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
136
+  (1.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
137
+  (1.1ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
138
+  (1.1ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
139
+  (1.0ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
140
+  (1.0ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
141
+  (1.0ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
142
+  (1.1ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
143
+  (1.1ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
144
+  (1.1ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
145
+  (1.2ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
146
+  (1.2ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
147
+  (1.1ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
148
+  (1.2ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
149
+  (1.0ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
150
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
224
151
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
225
152
  TRANSACTION (0.0ms) begin transaction
226
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:09:09.539332"], ["updated_at", "2020-12-22 20:09:09.539332"]]
227
- TRANSACTION (0.7ms) commit transaction
228
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
153
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-08-26 17:55:10.184260"], ["updated_at", "2021-08-26 17:55:10.184260"]]
154
+ TRANSACTION (1.0ms) commit transaction
155
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
229
156
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
230
-  (0.0ms) SELECT sqlite_version(*)
157
+  (0.1ms) SELECT sqlite_version(*)
231
158
   (0.0ms) PRAGMA foreign_keys
232
159
   (0.0ms) PRAGMA defer_foreign_keys
233
160
   (0.0ms) PRAGMA defer_foreign_keys = ON
234
161
   (0.0ms) PRAGMA foreign_keys = OFF
235
-  (0.5ms) DELETE FROM "posts";
162
+  (1.1ms) DELETE FROM "posts";
236
163
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
237
164
   (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
238
-  (0.5ms) DELETE FROM "comments";
165
+  (1.2ms) DELETE FROM "comments";
239
166
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240
167
   (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
241
-  (0.5ms) DELETE FROM "authors";
168
+  (1.1ms) DELETE FROM "authors";
242
169
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
243
170
   (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
244
-  (0.6ms) DELETE FROM "favorites";
171
+  (1.0ms) DELETE FROM "favorites";
245
172
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
246
173
   (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
247
-  (0.6ms) DELETE FROM "collab_posts";
174
+  (1.1ms) DELETE FROM "collab_posts";
175
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
176
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
177
+  (1.0ms) DELETE FROM "cards";
248
178
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
249
-  (0.0ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
250
-  (0.6ms) DELETE FROM "cards";
251
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252
179
   (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
253
-  (0.6ms) DELETE FROM "card_locations";
180
+  (1.0ms) DELETE FROM "card_locations";
254
181
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
255
182
   (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
256
-  (0.5ms) DELETE FROM "locations";
183
+  (0.8ms) DELETE FROM "locations";
257
184
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
258
185
   (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
259
-  (0.5ms) DELETE FROM "community_tickets";
186
+  (1.0ms) DELETE FROM "community_tickets";
260
187
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
261
-  (0.0ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
188
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
262
189
   (0.0ms) PRAGMA defer_foreign_keys = 0
263
190
   (0.0ms) PRAGMA foreign_keys = 1
264
191
  TRANSACTION (0.0ms) begin transaction
265
- TRANSACTION (0.0ms) rollback transaction
266
- TRANSACTION (0.0ms) begin transaction
267
- TRANSACTION (0.0ms) rollback transaction
268
- TRANSACTION (0.0ms) begin transaction
269
- TRANSACTION (0.0ms) rollback transaction
270
- TRANSACTION (0.0ms) begin transaction
271
- TRANSACTION (0.0ms) rollback transaction
192
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
193
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "I'm a little teapot"]]
194
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
195
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]]
196
+ TRANSACTION (0.3ms) rollback transaction
197
+ TRANSACTION (0.1ms) begin transaction
198
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
199
+ Post Create (0.5ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "I'm a little teapot"]]
200
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
201
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
202
+ Comment Create (0.2ms) INSERT INTO "comments" ("post_id") VALUES (?) [["post_id", 1]]
203
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
204
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
205
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]]
206
+ TRANSACTION (0.3ms) rollback transaction
272
207
  TRANSACTION (0.0ms) begin transaction
208
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
209
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
210
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "foo"]]
211
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
212
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
213
+ TRANSACTION (0.4ms) rollback transaction
214
+ TRANSACTION (0.1ms) begin transaction
273
215
  TRANSACTION (0.0ms) rollback transaction
274
216
  TRANSACTION (0.0ms) begin transaction
217
+ TRANSACTION (0.1ms) rollback transaction
218
+ TRANSACTION (0.1ms) begin transaction
219
+ TRANSACTION (0.1ms) rollback transaction
220
+ TRANSACTION (0.1ms) begin transaction
275
221
  TRANSACTION (0.0ms) SAVEPOINT active_record_1
276
- Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
222
+ Location Create (0.4ms) INSERT INTO "locations" DEFAULT VALUES
277
223
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
278
224
  TRANSACTION (0.0ms) SAVEPOINT active_record_1
279
225
  CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
280
226
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
281
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
282
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
227
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
228
+ CardLocation Create (0.2ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
283
229
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
284
230
   (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
285
231
  Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
232
+ TRANSACTION (0.4ms) rollback transaction
233
+ TRANSACTION (0.1ms) begin transaction
234
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
235
+ Post Create (0.5ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
236
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
237
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
238
+ TRANSACTION (0.4ms) rollback transaction
239
+ TRANSACTION (0.1ms) begin transaction
240
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
241
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
242
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
243
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
286
244
  TRANSACTION (0.3ms) rollback transaction
287
245
  TRANSACTION (0.0ms) begin transaction
246
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
247
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
248
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
249
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
250
+ TRANSACTION (0.3ms) rollback transaction
251
+ TRANSACTION (0.1ms) begin transaction
252
+  (0.2ms) SELECT COUNT(*) FROM "posts"
288
253
  TRANSACTION (0.1ms) rollback transaction
289
-  (0.8ms) SELECT sqlite_version(*)
290
-  (0.0ms) SELECT sqlite_version(*)
291
-  (0.9ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
292
-  (0.8ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
293
-  (0.9ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
294
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
254
+ TRANSACTION (0.0ms) begin transaction
255
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ? [["LIMIT", 1]]
256
+ TRANSACTION (0.0ms) rollback transaction
257
+ TRANSACTION (0.0ms) begin transaction
258
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ? [["LIMIT", 1]]
259
+ TRANSACTION (0.0ms) rollback transaction
260
+ TRANSACTION (0.0ms) begin transaction
261
+  (0.1ms) SELECT "posts".* FROM "posts"
262
+ TRANSACTION (0.0ms) rollback transaction
263
+  (1.5ms) SELECT sqlite_version(*)
264
+  (0.1ms) SELECT sqlite_version(*)
265
+  (1.4ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
266
+  (1.0ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
267
+  (1.0ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
268
+  (0.9ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
295
269
   (1.0ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
296
-  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
297
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
298
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
299
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
300
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
301
-  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
302
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
303
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
304
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
305
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
306
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
307
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
270
+  (1.0ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
271
+  (0.9ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
272
+  (0.9ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
273
+  (1.0ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
274
+  (0.9ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
275
+  (0.9ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
276
+  (0.9ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
277
+  (0.9ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
278
+  (0.9ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
279
+  (0.9ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
280
+  (1.0ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
281
+  (1.0ms) 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)
308
282
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
309
283
  TRANSACTION (0.0ms) begin transaction
310
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:09:51.558825"], ["updated_at", "2020-12-22 20:09:51.558825"]]
284
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-08-26 17:57:07.842116"], ["updated_at", "2021-08-26 17:57:07.842116"]]
311
285
  TRANSACTION (0.8ms) commit transaction
312
286
   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
313
287
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
314
-  (0.0ms) SELECT sqlite_version(*)
288
+  (0.1ms) SELECT sqlite_version(*)
315
289
   (0.0ms) PRAGMA foreign_keys
316
290
   (0.0ms) PRAGMA defer_foreign_keys
317
291
   (0.0ms) PRAGMA defer_foreign_keys = ON
318
292
   (0.0ms) PRAGMA foreign_keys = OFF
319
-  (0.6ms) DELETE FROM "posts";
293
+  (0.9ms) DELETE FROM "posts";
320
294
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
321
295
   (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
322
296
   (0.8ms) DELETE FROM "comments";
323
297
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
324
298
   (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
325
-  (0.5ms) DELETE FROM "authors";
299
+  (0.8ms) DELETE FROM "authors";
326
300
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
327
301
   (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
328
-  (0.6ms) DELETE FROM "favorites";
302
+  (0.8ms) DELETE FROM "favorites";
329
303
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
330
304
   (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
331
-  (0.5ms) DELETE FROM "collab_posts";
305
+  (0.6ms) DELETE FROM "collab_posts";
332
306
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
333
307
   (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
334
-  (0.7ms) DELETE FROM "cards";
308
+  (0.8ms) DELETE FROM "cards";
335
309
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
336
310
   (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
337
-  (0.6ms) DELETE FROM "card_locations";
311
+  (1.0ms) DELETE FROM "card_locations";
338
312
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
339
313
   (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
340
-  (0.5ms) DELETE FROM "locations";
314
+  (0.6ms) DELETE FROM "locations";
341
315
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
342
316
   (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
343
-  (0.6ms) DELETE FROM "community_tickets";
317
+  (1.0ms) DELETE FROM "community_tickets";
344
318
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
345
319
   (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
346
320
   (0.0ms) PRAGMA defer_foreign_keys = 0
347
321
   (0.0ms) PRAGMA foreign_keys = 1
348
322
  TRANSACTION (0.0ms) begin transaction
349
- TRANSACTION (0.0ms) rollback transaction
350
- TRANSACTION (0.0ms) begin transaction
351
- TRANSACTION (0.0ms) rollback transaction
352
- TRANSACTION (0.0ms) begin transaction
353
- TRANSACTION (0.0ms) rollback transaction
323
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
324
+ Post Create (0.3ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "I'm a little teapot"]]
325
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
326
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]]
327
+ TRANSACTION (0.3ms) rollback transaction
328
+ TRANSACTION (0.1ms) begin transaction
329
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
330
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "I'm a little teapot"]]
331
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
332
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
333
+ Comment Create (0.2ms) INSERT INTO "comments" ("post_id") VALUES (?) [["post_id", 1]]
334
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
335
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
336
+ Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]]
337
+ TRANSACTION (0.4ms) rollback transaction
354
338
  TRANSACTION (0.0ms) begin transaction
339
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
340
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
341
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "foo"]]
342
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
343
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
344
+ TRANSACTION (0.2ms) rollback transaction
345
+ TRANSACTION (0.1ms) begin transaction
355
346
  TRANSACTION (0.0ms) rollback transaction
356
- TRANSACTION (0.0ms) begin transaction
347
+ TRANSACTION (0.1ms) begin transaction
357
348
  TRANSACTION (0.0ms) rollback transaction
358
349
  TRANSACTION (0.0ms) begin transaction
350
+ TRANSACTION (0.1ms) rollback transaction
351
+ TRANSACTION (0.1ms) begin transaction
359
352
  TRANSACTION (0.0ms) SAVEPOINT active_record_1
360
- Location Create (0.2ms) INSERT INTO "locations" DEFAULT VALUES
361
- TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
353
+ Location Create (0.4ms) INSERT INTO "locations" DEFAULT VALUES
354
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
362
355
  TRANSACTION (0.0ms) SAVEPOINT active_record_1
363
356
  CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
364
357
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
365
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
366
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
358
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
359
+ CardLocation Create (0.3ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
367
360
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
368
361
   (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
369
362
  Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
363
+ TRANSACTION (0.4ms) rollback transaction
364
+ TRANSACTION (0.1ms) begin transaction
365
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
366
+ Post Create (0.5ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
367
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
368
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
370
369
  TRANSACTION (0.2ms) rollback transaction
371
370
  TRANSACTION (0.0ms) begin transaction
372
- TRANSACTION (0.1ms) rollback transaction
373
-  (0.8ms) SELECT sqlite_version(*)
374
-  (0.0ms) SELECT sqlite_version(*)
375
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
376
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
377
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
378
-  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
379
-  (1.2ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
380
-  (0.6ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
381
-  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
382
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
383
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
384
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
385
-  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
386
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
387
-  (0.8ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
388
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
389
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
390
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
391
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
392
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
371
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
372
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
373
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
374
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
375
+ TRANSACTION (0.3ms) rollback transaction
376
+ TRANSACTION (0.0ms) begin transaction
377
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
378
+ Post Create (0.4ms) INSERT INTO "posts" ("title") VALUES (?) [["title", "Foobar"]]
379
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
380
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
381
+ TRANSACTION (0.2ms) rollback transaction
393
382
  TRANSACTION (0.1ms) begin transaction
394
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:10:18.044181"], ["updated_at", "2020-12-22 20:10:18.044181"]]
395
- TRANSACTION (0.7ms) commit transaction
396
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
397
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
398
-  (0.0ms) SELECT sqlite_version(*)
399
-  (0.0ms) PRAGMA foreign_keys
400
-  (0.0ms) PRAGMA defer_foreign_keys
401
-  (0.0ms) PRAGMA defer_foreign_keys = ON
402
-  (0.0ms) PRAGMA foreign_keys = OFF
403
-  (0.5ms) DELETE FROM "posts";
404
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
405
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
406
-  (0.5ms) DELETE FROM "comments";
407
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
408
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
409
-  (0.8ms) DELETE FROM "authors";
410
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
411
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
412
-  (0.5ms) DELETE FROM "favorites";
413
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
414
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
415
-  (0.6ms) DELETE FROM "collab_posts";
416
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
417
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
418
-  (0.6ms) DELETE FROM "cards";
419
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
420
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
421
-  (0.7ms) DELETE FROM "card_locations";
422
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
423
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
424
-  (0.5ms) DELETE FROM "locations";
425
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
426
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
427
-  (0.5ms) DELETE FROM "community_tickets";
428
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
429
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
430
-  (0.0ms) PRAGMA defer_foreign_keys = 0
431
-  (0.0ms) PRAGMA foreign_keys = 1
432
- TRANSACTION (0.0ms) begin transaction
433
- TRANSACTION (0.0ms) rollback transaction
434
- TRANSACTION (0.0ms) begin transaction
435
- TRANSACTION (0.0ms) rollback transaction
436
- TRANSACTION (0.0ms) begin transaction
437
- TRANSACTION (0.0ms) rollback transaction
438
- TRANSACTION (0.0ms) begin transaction
439
- TRANSACTION (0.0ms) rollback transaction
440
- TRANSACTION (0.0ms) begin transaction
441
- TRANSACTION (0.0ms) rollback transaction
442
- TRANSACTION (0.0ms) begin transaction
443
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
444
- Location Create (0.2ms) INSERT INTO "locations" DEFAULT VALUES
445
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
446
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
447
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
448
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
449
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
450
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
451
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
452
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
453
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
454
- TRANSACTION (0.3ms) rollback transaction
455
- TRANSACTION (0.0ms) begin transaction
456
- TRANSACTION (0.1ms) rollback transaction
457
-  (0.8ms) SELECT sqlite_version(*)
458
-  (0.0ms) SELECT sqlite_version(*)
459
-  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
460
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
461
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
462
-  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
463
-  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
464
-  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
465
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
466
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
467
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
468
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
469
-  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
470
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
471
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
472
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
473
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
474
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
475
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
476
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
477
- TRANSACTION (0.0ms) begin transaction
478
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:10:28.406929"], ["updated_at", "2020-12-22 20:10:28.406929"]]
479
- TRANSACTION (0.6ms) commit transaction
480
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
481
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
482
-  (0.0ms) SELECT sqlite_version(*)
483
-  (0.0ms) PRAGMA foreign_keys
484
-  (0.0ms) PRAGMA defer_foreign_keys
485
-  (0.1ms) PRAGMA defer_foreign_keys = ON
486
-  (0.0ms) PRAGMA foreign_keys = OFF
487
-  (0.9ms) DELETE FROM "posts";
488
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
489
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
490
-  (0.6ms) DELETE FROM "comments";
491
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
492
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
493
-  (0.6ms) DELETE FROM "authors";
494
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
495
-  (0.2ms) DELETE FROM sqlite_sequence where name = 'authors';
496
-  (0.9ms) DELETE FROM "favorites";
497
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
498
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
499
-  (0.7ms) DELETE FROM "collab_posts";
500
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
501
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
502
-  (0.6ms) DELETE FROM "cards";
503
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
504
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
505
-  (0.7ms) DELETE FROM "card_locations";
506
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
507
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
508
-  (0.6ms) DELETE FROM "locations";
509
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
510
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
511
-  (0.5ms) DELETE FROM "community_tickets";
512
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
513
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
514
-  (0.0ms) PRAGMA defer_foreign_keys = 0
515
-  (0.0ms) PRAGMA foreign_keys = 1
516
- TRANSACTION (0.0ms) begin transaction
517
- TRANSACTION (0.0ms) rollback transaction
518
- TRANSACTION (0.0ms) begin transaction
519
- TRANSACTION (0.0ms) rollback transaction
520
- TRANSACTION (0.1ms) begin transaction
521
- TRANSACTION (0.0ms) rollback transaction
522
- TRANSACTION (0.0ms) begin transaction
523
- TRANSACTION (0.0ms) rollback transaction
524
- TRANSACTION (0.0ms) begin transaction
525
- TRANSACTION (0.0ms) rollback transaction
526
- TRANSACTION (0.0ms) begin transaction
527
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
528
- Location Create (0.2ms) INSERT INTO "locations" DEFAULT VALUES
529
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
530
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
531
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
532
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
533
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
534
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
535
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
536
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
537
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
538
- TRANSACTION (0.6ms) rollback transaction
539
- TRANSACTION (0.0ms) begin transaction
540
- TRANSACTION (0.1ms) rollback transaction
541
-  (0.7ms) SELECT sqlite_version(*)
542
-  (0.0ms) SELECT sqlite_version(*)
543
-  (1.0ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
544
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
545
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
546
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
547
-  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
548
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
549
-  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
550
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
551
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
552
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
553
-  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
554
-  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
555
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
556
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
557
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
558
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
559
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
560
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
561
- TRANSACTION (0.0ms) begin transaction
562
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:11:00.477121"], ["updated_at", "2020-12-22 20:11:00.477121"]]
563
- TRANSACTION (0.6ms) commit transaction
564
-  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
565
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
566
-  (0.0ms) SELECT sqlite_version(*)
567
-  (0.0ms) PRAGMA foreign_keys
568
-  (0.0ms) PRAGMA defer_foreign_keys
569
-  (0.1ms) PRAGMA defer_foreign_keys = ON
570
-  (0.0ms) PRAGMA foreign_keys = OFF
571
-  (0.9ms) DELETE FROM "posts";
572
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
573
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
574
-  (0.5ms) DELETE FROM "comments";
575
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
576
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
577
-  (0.6ms) DELETE FROM "authors";
578
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
579
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
580
-  (0.5ms) DELETE FROM "favorites";
581
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
582
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
583
-  (0.9ms) DELETE FROM "collab_posts";
584
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
585
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
586
-  (0.6ms) DELETE FROM "cards";
587
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
588
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
589
-  (0.9ms) DELETE FROM "card_locations";
590
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
591
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
592
-  (0.5ms) DELETE FROM "locations";
593
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
594
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
595
-  (0.7ms) DELETE FROM "community_tickets";
596
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
597
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
598
-  (0.1ms) PRAGMA defer_foreign_keys = 0
599
-  (0.0ms) PRAGMA foreign_keys = 1
600
- TRANSACTION (0.0ms) begin transaction
601
- TRANSACTION (0.0ms) rollback transaction
602
- TRANSACTION (0.0ms) begin transaction
603
- TRANSACTION (0.0ms) rollback transaction
604
- TRANSACTION (0.0ms) begin transaction
605
- TRANSACTION (0.1ms) rollback transaction
606
- TRANSACTION (0.1ms) begin transaction
607
- TRANSACTION (0.0ms) rollback transaction
608
- TRANSACTION (0.0ms) begin transaction
609
- TRANSACTION (0.0ms) rollback transaction
610
- TRANSACTION (0.0ms) begin transaction
611
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
612
- Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
613
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
614
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
615
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
616
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
617
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
618
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
619
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
620
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
621
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
622
- TRANSACTION (0.3ms) rollback transaction
623
- TRANSACTION (0.0ms) begin transaction
624
- TRANSACTION (0.0ms) rollback transaction
625
-  (0.7ms) SELECT sqlite_version(*)
626
-  (0.0ms) SELECT sqlite_version(*)
627
-  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
628
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
629
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
630
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
631
-  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
632
-  (1.0ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
633
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
634
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
635
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
636
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
637
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
638
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
639
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
640
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
641
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
642
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
643
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
644
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
645
- TRANSACTION (0.0ms) begin transaction
646
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:11:10.495968"], ["updated_at", "2020-12-22 20:11:10.495968"]]
647
- TRANSACTION (0.5ms) commit transaction
648
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
649
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
650
-  (0.0ms) SELECT sqlite_version(*)
651
-  (0.0ms) PRAGMA foreign_keys
652
-  (0.0ms) PRAGMA defer_foreign_keys
653
-  (0.0ms) PRAGMA defer_foreign_keys = ON
654
-  (0.0ms) PRAGMA foreign_keys = OFF
655
-  (1.0ms) DELETE FROM "posts";
656
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
657
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
658
-  (0.6ms) DELETE FROM "comments";
659
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
660
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
661
-  (0.6ms) DELETE FROM "authors";
662
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
663
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
664
-  (0.6ms) DELETE FROM "favorites";
665
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
666
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
667
-  (0.6ms) DELETE FROM "collab_posts";
668
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
669
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
670
-  (0.6ms) DELETE FROM "cards";
671
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
672
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
673
-  (0.5ms) DELETE FROM "card_locations";
674
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
675
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
676
-  (0.6ms) DELETE FROM "locations";
677
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
678
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
679
-  (0.5ms) DELETE FROM "community_tickets";
680
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
681
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
682
-  (0.0ms) PRAGMA defer_foreign_keys = 0
683
-  (0.0ms) PRAGMA foreign_keys = 1
684
- TRANSACTION (0.0ms) begin transaction
685
- TRANSACTION (0.0ms) rollback transaction
686
- TRANSACTION (0.0ms) begin transaction
687
- TRANSACTION (0.0ms) rollback transaction
688
- TRANSACTION (0.0ms) begin transaction
689
- TRANSACTION (0.0ms) rollback transaction
690
- TRANSACTION (0.0ms) begin transaction
691
- TRANSACTION (0.0ms) rollback transaction
692
- TRANSACTION (0.0ms) begin transaction
693
- TRANSACTION (0.0ms) rollback transaction
694
- TRANSACTION (0.0ms) begin transaction
695
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
696
- Location Create (0.2ms) INSERT INTO "locations" DEFAULT VALUES
697
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
698
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
699
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
700
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
701
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
702
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
703
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
704
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
705
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
706
- TRANSACTION (0.3ms) rollback transaction
707
- TRANSACTION (0.0ms) begin transaction
708
- TRANSACTION (0.0ms) rollback transaction
709
-  (1.6ms) SELECT sqlite_version(*)
710
-  (0.1ms) SELECT sqlite_version(*)
711
-  (1.4ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
712
-  (1.0ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
713
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
714
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
715
-  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
716
-  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
717
-  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
718
-  (0.8ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
719
-  (0.8ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
720
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
721
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
722
-  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
723
-  (0.8ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
724
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
725
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
726
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
727
-  (0.8ms) 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)
728
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
729
- TRANSACTION (0.0ms) begin transaction
730
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:13:01.421873"], ["updated_at", "2020-12-22 20:13:01.421873"]]
731
- TRANSACTION (0.6ms) commit transaction
732
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
733
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
734
-  (0.1ms) SELECT sqlite_version(*)
735
-  (0.0ms) PRAGMA foreign_keys
736
-  (0.0ms) PRAGMA defer_foreign_keys
737
-  (0.0ms) PRAGMA defer_foreign_keys = ON
738
-  (0.0ms) PRAGMA foreign_keys = OFF
739
-  (0.7ms) DELETE FROM "posts";
740
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
741
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
742
-  (0.6ms) DELETE FROM "comments";
743
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
744
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
745
-  (0.6ms) DELETE FROM "authors";
746
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
747
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
748
-  (0.6ms) DELETE FROM "favorites";
749
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
750
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
751
-  (0.6ms) DELETE FROM "collab_posts";
752
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
753
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
754
-  (0.6ms) DELETE FROM "cards";
755
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
756
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
757
-  (0.7ms) DELETE FROM "card_locations";
758
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
759
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
760
-  (0.5ms) DELETE FROM "locations";
761
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
762
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
763
-  (0.8ms) DELETE FROM "community_tickets";
764
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
765
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
766
-  (0.0ms) PRAGMA defer_foreign_keys = 0
767
-  (0.0ms) PRAGMA foreign_keys = 1
768
- TRANSACTION (0.0ms) begin transaction
769
- TRANSACTION (0.0ms) rollback transaction
770
- TRANSACTION (0.0ms) begin transaction
771
- TRANSACTION (0.0ms) rollback transaction
772
- TRANSACTION (0.0ms) begin transaction
773
- TRANSACTION (0.0ms) rollback transaction
774
- TRANSACTION (0.0ms) begin transaction
775
- TRANSACTION (0.0ms) rollback transaction
776
- TRANSACTION (0.0ms) begin transaction
777
- TRANSACTION (0.0ms) rollback transaction
778
- TRANSACTION (0.0ms) begin transaction
779
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
780
- Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
781
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
782
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
783
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
784
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
785
- TRANSACTION (0.1ms) SAVEPOINT active_record_1
786
- CardLocation Create (0.2ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
787
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
788
-  (0.2ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
789
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
790
- TRANSACTION (0.4ms) rollback transaction
791
- TRANSACTION (0.4ms) begin transaction
792
- TRANSACTION (0.1ms) rollback transaction
793
-  (1.0ms) SELECT sqlite_version(*)
794
-  (0.0ms) SELECT sqlite_version(*)
795
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
796
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
797
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
798
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
799
-  (1.3ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
800
-  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
801
-  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
802
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
803
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
804
-  (0.8ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
805
-  (1.0ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
806
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
807
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
808
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
809
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
810
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
811
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
812
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
813
- TRANSACTION (0.0ms) begin transaction
814
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:14:23.182654"], ["updated_at", "2020-12-22 20:14:23.182654"]]
815
- TRANSACTION (0.5ms) commit transaction
816
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
817
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
818
-  (0.0ms) SELECT sqlite_version(*)
819
-  (0.0ms) PRAGMA foreign_keys
820
-  (0.0ms) PRAGMA defer_foreign_keys
821
-  (0.0ms) PRAGMA defer_foreign_keys = ON
822
-  (0.0ms) PRAGMA foreign_keys = OFF
823
-  (0.6ms) DELETE FROM "posts";
824
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
825
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
826
-  (0.6ms) DELETE FROM "comments";
827
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
828
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
829
-  (0.6ms) DELETE FROM "authors";
830
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
831
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
832
-  (0.6ms) DELETE FROM "favorites";
833
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
834
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
835
-  (0.6ms) DELETE FROM "collab_posts";
836
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
837
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
838
-  (0.6ms) DELETE FROM "cards";
839
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
840
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
841
-  (0.8ms) DELETE FROM "card_locations";
842
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
843
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
844
-  (0.6ms) DELETE FROM "locations";
845
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
846
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
847
-  (0.5ms) DELETE FROM "community_tickets";
848
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
849
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
850
-  (0.0ms) PRAGMA defer_foreign_keys = 0
851
-  (0.0ms) PRAGMA foreign_keys = 1
852
- TRANSACTION (0.0ms) begin transaction
853
- TRANSACTION (0.0ms) rollback transaction
854
- TRANSACTION (0.0ms) begin transaction
855
- TRANSACTION (0.0ms) rollback transaction
856
- TRANSACTION (0.0ms) begin transaction
857
- TRANSACTION (0.0ms) rollback transaction
858
- TRANSACTION (0.0ms) begin transaction
859
- TRANSACTION (0.0ms) rollback transaction
860
- TRANSACTION (0.1ms) begin transaction
861
- TRANSACTION (0.0ms) rollback transaction
862
- TRANSACTION (0.0ms) begin transaction
863
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
864
- Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
865
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
866
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
867
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
868
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
869
- TRANSACTION (0.1ms) SAVEPOINT active_record_1
870
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
871
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
872
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
873
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
874
- TRANSACTION (0.3ms) rollback transaction
875
- TRANSACTION (0.0ms) begin transaction
876
- TRANSACTION (0.0ms) rollback transaction
877
-  (0.7ms) SELECT sqlite_version(*)
878
-  (0.0ms) SELECT sqlite_version(*)
879
-  (1.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
880
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
881
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
882
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
883
-  (0.9ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
884
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
885
-  (1.1ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
886
-  (0.9ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
887
-  (0.9ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
888
-  (0.9ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
889
-  (0.9ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
890
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
891
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
892
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
893
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
894
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
895
-  (0.6ms) 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)
896
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
897
- TRANSACTION (0.0ms) begin transaction
898
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:15:20.495374"], ["updated_at", "2020-12-22 20:15:20.495374"]]
899
- TRANSACTION (0.5ms) commit transaction
900
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
901
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
902
-  (0.1ms) SELECT sqlite_version(*)
903
-  (0.0ms) PRAGMA foreign_keys
904
-  (0.0ms) PRAGMA defer_foreign_keys
905
-  (0.0ms) PRAGMA defer_foreign_keys = ON
906
-  (0.0ms) PRAGMA foreign_keys = OFF
907
-  (1.1ms) DELETE FROM "posts";
908
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
909
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
910
-  (0.8ms) DELETE FROM "comments";
911
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
912
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
913
-  (0.5ms) DELETE FROM "authors";
914
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
915
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
916
-  (0.8ms) DELETE FROM "favorites";
917
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
918
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
919
-  (0.6ms) DELETE FROM "collab_posts";
920
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
921
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
922
-  (0.7ms) DELETE FROM "cards";
923
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
924
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
925
-  (0.8ms) DELETE FROM "card_locations";
926
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
927
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
928
-  (0.6ms) DELETE FROM "locations";
929
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
930
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
931
-  (0.8ms) DELETE FROM "community_tickets";
932
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
933
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
934
-  (0.0ms) PRAGMA defer_foreign_keys = 0
935
-  (0.1ms) PRAGMA foreign_keys = 1
936
- TRANSACTION (0.0ms) begin transaction
937
- TRANSACTION (0.0ms) rollback transaction
938
- TRANSACTION (0.0ms) begin transaction
939
- TRANSACTION (0.1ms) rollback transaction
940
- TRANSACTION (0.0ms) begin transaction
941
- TRANSACTION (0.0ms) rollback transaction
942
- TRANSACTION (0.0ms) begin transaction
943
- TRANSACTION (0.0ms) rollback transaction
944
- TRANSACTION (0.0ms) begin transaction
945
- TRANSACTION (0.0ms) rollback transaction
946
- TRANSACTION (0.1ms) begin transaction
947
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
948
- Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
949
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
950
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
951
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
952
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
953
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
954
- CardLocation Create (4.8ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
955
- TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
956
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
957
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
958
- TRANSACTION (0.3ms) rollback transaction
959
- TRANSACTION (0.0ms) begin transaction
960
- TRANSACTION (0.0ms) rollback transaction
961
-  (0.9ms) SELECT sqlite_version(*)
962
-  (0.1ms) SELECT sqlite_version(*)
963
-  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
964
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
965
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
966
-  (0.9ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
967
-  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
968
-  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
969
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
970
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
971
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
972
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
973
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
974
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
975
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
976
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
977
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
978
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
979
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
980
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
981
- TRANSACTION (0.0ms) begin transaction
982
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:16:35.143849"], ["updated_at", "2020-12-22 20:16:35.143849"]]
983
- TRANSACTION (0.6ms) commit transaction
984
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
985
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
986
-  (0.1ms) SELECT sqlite_version(*)
987
-  (0.0ms) PRAGMA foreign_keys
988
-  (0.0ms) PRAGMA defer_foreign_keys
989
-  (0.0ms) PRAGMA defer_foreign_keys = ON
990
-  (0.0ms) PRAGMA foreign_keys = OFF
991
-  (0.7ms) DELETE FROM "posts";
992
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
993
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
994
-  (0.6ms) DELETE FROM "comments";
995
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
996
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
997
-  (0.7ms) DELETE FROM "authors";
998
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
999
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1000
-  (0.6ms) DELETE FROM "favorites";
1001
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1002
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1003
-  (0.5ms) DELETE FROM "collab_posts";
1004
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1005
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1006
-  (0.6ms) DELETE FROM "cards";
1007
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1008
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1009
-  (0.6ms) DELETE FROM "card_locations";
1010
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1011
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1012
-  (0.6ms) DELETE FROM "locations";
1013
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1014
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1015
-  (0.5ms) DELETE FROM "community_tickets";
1016
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1017
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1018
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1019
-  (0.0ms) PRAGMA foreign_keys = 1
1020
- TRANSACTION (0.0ms) begin transaction
1021
- TRANSACTION (0.0ms) rollback transaction
1022
- TRANSACTION (0.0ms) begin transaction
1023
- TRANSACTION (0.0ms) rollback transaction
1024
- TRANSACTION (0.0ms) begin transaction
1025
- TRANSACTION (0.0ms) rollback transaction
1026
- TRANSACTION (0.0ms) begin transaction
1027
- TRANSACTION (0.0ms) rollback transaction
1028
- TRANSACTION (0.0ms) begin transaction
1029
- TRANSACTION (0.0ms) rollback transaction
1030
- TRANSACTION (0.0ms) begin transaction
1031
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
1032
- Location Create (0.2ms) INSERT INTO "locations" DEFAULT VALUES
1033
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1034
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
1035
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
1036
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1037
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
1038
- CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
1039
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1040
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
1041
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
1042
- TRANSACTION (2.1ms) rollback transaction
1043
- TRANSACTION (0.0ms) begin transaction
1044
- TRANSACTION (0.0ms) rollback transaction
1045
-  (0.8ms) SELECT sqlite_version(*)
1046
-  (0.0ms) SELECT sqlite_version(*)
1047
-  (0.7ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1048
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1049
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1050
-  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1051
-  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1052
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1053
-  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1054
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1055
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1056
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1057
-  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1058
-  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1059
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1060
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1061
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1062
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1063
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1064
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1065
- TRANSACTION (0.0ms) begin transaction
1066
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:16:50.768579"], ["updated_at", "2020-12-22 20:16:50.768579"]]
1067
- TRANSACTION (0.7ms) commit transaction
1068
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1069
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1070
-  (0.0ms) SELECT sqlite_version(*)
1071
-  (0.1ms) PRAGMA foreign_keys
1072
-  (0.0ms) PRAGMA defer_foreign_keys
1073
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1074
-  (0.0ms) PRAGMA foreign_keys = OFF
1075
-  (0.7ms) DELETE FROM "posts";
1076
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1077
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1078
-  (0.8ms) DELETE FROM "comments";
1079
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1080
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1081
-  (0.6ms) DELETE FROM "authors";
1082
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1083
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1084
-  (0.6ms) DELETE FROM "favorites";
1085
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1086
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1087
-  (0.6ms) DELETE FROM "collab_posts";
1088
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1089
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1090
-  (0.6ms) DELETE FROM "cards";
1091
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1092
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1093
-  (0.6ms) DELETE FROM "card_locations";
1094
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1095
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1096
-  (0.6ms) DELETE FROM "locations";
1097
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1098
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1099
-  (0.5ms) DELETE FROM "community_tickets";
1100
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1101
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1102
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1103
-  (0.0ms) PRAGMA foreign_keys = 1
1104
- TRANSACTION (0.0ms) begin transaction
1105
- TRANSACTION (0.0ms) rollback transaction
1106
- TRANSACTION (0.0ms) begin transaction
1107
- TRANSACTION (0.0ms) rollback transaction
1108
- TRANSACTION (0.0ms) begin transaction
1109
- TRANSACTION (0.0ms) rollback transaction
1110
- TRANSACTION (0.0ms) begin transaction
1111
- TRANSACTION (0.0ms) rollback transaction
1112
- TRANSACTION (0.0ms) begin transaction
1113
- TRANSACTION (0.0ms) rollback transaction
1114
- TRANSACTION (0.0ms) begin transaction
1115
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
1116
- Location Create (0.4ms) INSERT INTO "locations" DEFAULT VALUES
1117
- TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1118
- TRANSACTION (0.0ms) SAVEPOINT active_record_1
1119
- CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
1120
- TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1121
- TRANSACTION (0.6ms) SAVEPOINT active_record_1
1122
- CardLocation Create (15.3ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
1123
- TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1124
-  (0.1ms) SELECT COUNT(*) FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
1125
- Location Load (0.1ms) SELECT "locations".* FROM "locations" INNER JOIN "card_locations" ON "card_locations"."card_type" = ? AND "card_locations"."location_id" = "locations"."id" INNER JOIN "community_tickets" ON "community_tickets"."id" = "card_locations"."card_id" [["card_type", "CommunityTicket"]]
1126
- TRANSACTION (0.3ms) rollback transaction
1127
- TRANSACTION (0.0ms) begin transaction
1128
- TRANSACTION (0.0ms) rollback transaction
1129
-  (0.9ms) SELECT sqlite_version(*)
1130
-  (0.0ms) SELECT sqlite_version(*)
1131
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1132
-  (0.8ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1133
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1134
-  (1.0ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1135
-  (0.9ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1136
-  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1137
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1138
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1139
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1140
-  (0.9ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1141
-  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1142
-  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1143
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1144
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1145
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1146
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1147
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1148
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1149
- TRANSACTION (0.0ms) begin transaction
1150
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:19:12.468921"], ["updated_at", "2020-12-22 20:19:12.468921"]]
1151
- TRANSACTION (0.9ms) commit transaction
1152
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1153
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1154
-  (0.1ms) SELECT sqlite_version(*)
1155
-  (0.0ms) PRAGMA foreign_keys
1156
-  (0.1ms) PRAGMA defer_foreign_keys
1157
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1158
-  (0.0ms) PRAGMA foreign_keys = OFF
1159
-  (0.8ms) DELETE FROM "posts";
1160
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1161
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1162
-  (0.5ms) DELETE FROM "comments";
1163
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1164
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1165
-  (0.5ms) DELETE FROM "authors";
1166
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1167
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1168
-  (0.7ms) DELETE FROM "favorites";
1169
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1170
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1171
-  (0.6ms) DELETE FROM "collab_posts";
1172
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1173
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1174
-  (0.7ms) DELETE FROM "cards";
1175
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1176
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1177
-  (0.6ms) DELETE FROM "card_locations";
1178
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1179
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1180
-  (0.6ms) DELETE FROM "locations";
1181
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1182
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1183
-  (0.5ms) DELETE FROM "community_tickets";
1184
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1185
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1186
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1187
-  (0.0ms) PRAGMA foreign_keys = 1
1188
- TRANSACTION (0.1ms) begin transaction
1189
-  (0.8ms) SELECT sqlite_version(*)
1190
-  (0.0ms) SELECT sqlite_version(*)
1191
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1192
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1193
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1194
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1195
-  (1.0ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1196
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1197
-  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1198
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1199
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1200
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1201
-  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1202
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1203
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1204
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1205
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1206
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1207
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1208
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1209
- TRANSACTION (0.0ms) begin transaction
1210
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:21:35.675253"], ["updated_at", "2020-12-22 20:21:35.675253"]]
1211
- TRANSACTION (0.6ms) commit transaction
1212
-  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1213
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1214
-  (0.0ms) SELECT sqlite_version(*)
1215
-  (0.0ms) PRAGMA foreign_keys
1216
-  (0.0ms) PRAGMA defer_foreign_keys
1217
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1218
-  (0.0ms) PRAGMA foreign_keys = OFF
1219
-  (0.6ms) DELETE FROM "posts";
1220
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1221
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1222
-  (0.9ms) DELETE FROM "comments";
1223
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1224
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1225
-  (0.6ms) DELETE FROM "authors";
1226
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1227
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1228
-  (0.7ms) DELETE FROM "favorites";
1229
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1230
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1231
-  (0.6ms) DELETE FROM "collab_posts";
1232
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1233
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1234
-  (0.6ms) DELETE FROM "cards";
1235
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1236
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1237
-  (0.7ms) DELETE FROM "card_locations";
1238
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1239
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1240
-  (0.5ms) DELETE FROM "locations";
1241
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1242
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1243
-  (0.6ms) DELETE FROM "community_tickets";
1244
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1245
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1246
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1247
-  (0.0ms) PRAGMA foreign_keys = 1
1248
- TRANSACTION (0.0ms) begin transaction
1249
- TRANSACTION (0.0ms) rollback transaction
1250
-  (0.7ms) SELECT sqlite_version(*)
1251
-  (0.0ms) SELECT sqlite_version(*)
1252
-  (1.0ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1253
-  (0.8ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1254
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1255
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1256
-  (1.0ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1257
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1258
-  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1259
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1260
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1261
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1262
-  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1263
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1264
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1265
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1266
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1267
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1268
-  (0.8ms) 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)
1269
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1270
- TRANSACTION (0.0ms) begin transaction
1271
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:21:47.484549"], ["updated_at", "2020-12-22 20:21:47.484549"]]
1272
- TRANSACTION (0.6ms) commit transaction
1273
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1274
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1275
-  (0.0ms) SELECT sqlite_version(*)
1276
-  (0.0ms) PRAGMA foreign_keys
1277
-  (0.0ms) PRAGMA defer_foreign_keys
1278
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1279
-  (0.0ms) PRAGMA foreign_keys = OFF
1280
-  (0.7ms) DELETE FROM "posts";
1281
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1282
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1283
-  (0.6ms) DELETE FROM "comments";
1284
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1285
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1286
-  (0.6ms) DELETE FROM "authors";
1287
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1288
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1289
-  (0.7ms) DELETE FROM "favorites";
1290
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1291
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1292
-  (0.8ms) DELETE FROM "collab_posts";
1293
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1294
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1295
-  (0.6ms) DELETE FROM "cards";
1296
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1297
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1298
-  (0.7ms) DELETE FROM "card_locations";
1299
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1300
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1301
-  (0.5ms) DELETE FROM "locations";
1302
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1303
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1304
-  (0.6ms) DELETE FROM "community_tickets";
1305
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1306
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1307
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1308
-  (0.0ms) PRAGMA foreign_keys = 1
1309
- TRANSACTION (0.0ms) begin transaction
1310
- TRANSACTION (0.1ms) rollback transaction
1311
-  (0.8ms) SELECT sqlite_version(*)
1312
-  (0.0ms) SELECT sqlite_version(*)
1313
-  (1.0ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1314
-  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1315
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1316
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1317
-  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1318
-  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1319
-  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1320
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1321
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1322
-  (0.8ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1323
-  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1324
-  (0.8ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1325
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1326
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1327
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1328
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1329
-  (0.9ms) 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)
1330
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1331
- TRANSACTION (0.0ms) begin transaction
1332
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:24:00.530999"], ["updated_at", "2020-12-22 20:24:00.530999"]]
1333
- TRANSACTION (0.5ms) commit transaction
1334
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1335
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1336
-  (0.1ms) SELECT sqlite_version(*)
1337
-  (0.0ms) PRAGMA foreign_keys
1338
-  (0.0ms) PRAGMA defer_foreign_keys
1339
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1340
-  (0.0ms) PRAGMA foreign_keys = OFF
1341
-  (0.9ms) DELETE FROM "posts";
1342
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1343
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1344
-  (0.6ms) DELETE FROM "comments";
1345
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1346
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1347
-  (0.7ms) DELETE FROM "authors";
1348
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1349
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1350
-  (0.7ms) DELETE FROM "favorites";
1351
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1352
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1353
-  (0.6ms) DELETE FROM "collab_posts";
1354
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1355
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1356
-  (0.6ms) DELETE FROM "cards";
1357
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1358
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1359
-  (0.7ms) DELETE FROM "card_locations";
1360
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1361
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1362
-  (0.6ms) DELETE FROM "locations";
1363
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1364
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1365
-  (0.5ms) DELETE FROM "community_tickets";
1366
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1367
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1368
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1369
-  (0.0ms) PRAGMA foreign_keys = 1
1370
- TRANSACTION (0.0ms) begin transaction
1371
- TRANSACTION (0.0ms) rollback transaction
1372
-  (0.7ms) SELECT sqlite_version(*)
1373
-  (0.0ms) SELECT sqlite_version(*)
1374
-  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1375
-  (0.9ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1376
-  (1.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1377
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1378
-  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1379
-  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1380
-  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1381
-  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1382
-  (0.8ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1383
-  (0.9ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1384
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1385
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1386
-  (0.8ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1387
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1388
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1389
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1390
-  (0.8ms) 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)
1391
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1392
- TRANSACTION (0.0ms) begin transaction
1393
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:26:08.741220"], ["updated_at", "2020-12-22 20:26:08.741220"]]
1394
- TRANSACTION (0.8ms) commit transaction
1395
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1396
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1397
-  (0.0ms) SELECT sqlite_version(*)
1398
-  (0.0ms) PRAGMA foreign_keys
1399
-  (0.0ms) PRAGMA defer_foreign_keys
1400
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1401
-  (0.0ms) PRAGMA foreign_keys = OFF
1402
-  (0.9ms) DELETE FROM "posts";
1403
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1404
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1405
-  (0.6ms) DELETE FROM "comments";
1406
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1407
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1408
-  (0.6ms) DELETE FROM "authors";
1409
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1410
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1411
-  (0.8ms) DELETE FROM "favorites";
1412
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1413
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1414
-  (0.5ms) DELETE FROM "collab_posts";
1415
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1416
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1417
-  (0.7ms) DELETE FROM "cards";
1418
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1419
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1420
-  (0.6ms) DELETE FROM "card_locations";
1421
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1422
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1423
-  (0.7ms) DELETE FROM "locations";
1424
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1425
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1426
-  (0.6ms) DELETE FROM "community_tickets";
1427
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1428
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1429
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1430
-  (0.0ms) PRAGMA foreign_keys = 1
1431
-  (0.8ms) SELECT sqlite_version(*)
1432
-  (0.0ms) SELECT sqlite_version(*)
1433
-  (1.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1434
-  (0.8ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1435
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1436
-  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1437
-  (1.1ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1438
-  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1439
-  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1440
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1441
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1442
-  (0.8ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1443
-  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1444
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1445
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1446
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1447
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1448
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1449
-  (0.6ms) 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)
1450
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1451
- TRANSACTION (0.0ms) begin transaction
1452
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:27:22.045731"], ["updated_at", "2020-12-22 20:27:22.045731"]]
1453
- TRANSACTION (0.6ms) commit transaction
1454
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1455
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1456
-  (0.1ms) SELECT sqlite_version(*)
1457
-  (0.1ms) PRAGMA foreign_keys
1458
-  (0.0ms) PRAGMA defer_foreign_keys
1459
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1460
-  (0.0ms) PRAGMA foreign_keys = OFF
1461
-  (1.0ms) DELETE FROM "posts";
1462
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1463
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1464
-  (0.7ms) DELETE FROM "comments";
1465
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1466
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1467
-  (0.7ms) DELETE FROM "authors";
1468
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1469
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1470
-  (0.7ms) DELETE FROM "favorites";
1471
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1472
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1473
-  (0.6ms) DELETE FROM "collab_posts";
1474
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1475
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1476
-  (0.5ms) DELETE FROM "cards";
1477
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1478
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1479
-  (0.7ms) DELETE FROM "card_locations";
1480
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1481
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1482
-  (0.5ms) DELETE FROM "locations";
1483
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1484
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1485
-  (0.6ms) DELETE FROM "community_tickets";
1486
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1487
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1488
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1489
-  (0.0ms) PRAGMA foreign_keys = 1
1490
-  (0.8ms) SELECT sqlite_version(*)
1491
-  (0.0ms) SELECT sqlite_version(*)
1492
-  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1493
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1494
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1495
-  (0.5ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1496
-  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1497
-  (1.0ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1498
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1499
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1500
-  (1.1ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1501
-  (0.9ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1502
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1503
-  (0.8ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1504
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1505
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1506
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1507
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1508
-  (0.8ms) 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)
1509
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1510
- TRANSACTION (0.0ms) begin transaction
1511
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:30:56.870836"], ["updated_at", "2020-12-22 20:30:56.870836"]]
1512
- TRANSACTION (0.5ms) commit transaction
1513
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1514
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1515
-  (0.0ms) SELECT sqlite_version(*)
1516
-  (0.0ms) PRAGMA foreign_keys
1517
-  (0.0ms) PRAGMA defer_foreign_keys
1518
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1519
-  (0.0ms) PRAGMA foreign_keys = OFF
1520
-  (0.7ms) DELETE FROM "posts";
1521
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1522
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1523
-  (1.0ms) DELETE FROM "comments";
1524
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1525
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1526
-  (0.6ms) DELETE FROM "authors";
1527
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1528
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1529
-  (0.5ms) DELETE FROM "favorites";
1530
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1531
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1532
-  (0.8ms) DELETE FROM "collab_posts";
1533
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1534
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1535
-  (0.6ms) DELETE FROM "cards";
1536
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1537
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1538
-  (0.6ms) DELETE FROM "card_locations";
1539
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1540
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1541
-  (0.6ms) DELETE FROM "locations";
1542
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1543
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1544
-  (0.7ms) DELETE FROM "community_tickets";
1545
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1546
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1547
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1548
-  (0.0ms) PRAGMA foreign_keys = 1
1549
-  (0.8ms) SELECT sqlite_version(*)
1550
-  (0.0ms) SELECT sqlite_version(*)
1551
-  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1552
-  (0.8ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1553
-  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1554
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1555
-  (1.1ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1556
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1557
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1558
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1559
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1560
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1561
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1562
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1563
-  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1564
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1565
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1566
-  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1567
-  (0.8ms) 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)
1568
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1569
- TRANSACTION (0.0ms) begin transaction
1570
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:31:23.483593"], ["updated_at", "2020-12-22 20:31:23.483593"]]
1571
- TRANSACTION (0.7ms) commit transaction
1572
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1573
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1574
-  (0.0ms) SELECT sqlite_version(*)
1575
-  (0.0ms) PRAGMA foreign_keys
1576
-  (0.0ms) PRAGMA defer_foreign_keys
1577
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1578
-  (0.0ms) PRAGMA foreign_keys = OFF
1579
-  (0.9ms) DELETE FROM "posts";
1580
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1581
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1582
-  (0.5ms) DELETE FROM "comments";
1583
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1584
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1585
-  (1.0ms) DELETE FROM "authors";
1586
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1587
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1588
-  (0.6ms) DELETE FROM "favorites";
1589
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1590
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1591
-  (0.6ms) DELETE FROM "collab_posts";
1592
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1593
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1594
-  (0.6ms) DELETE FROM "cards";
1595
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1596
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1597
-  (0.9ms) DELETE FROM "card_locations";
1598
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1599
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1600
-  (0.6ms) DELETE FROM "locations";
1601
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1602
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1603
-  (0.5ms) DELETE FROM "community_tickets";
1604
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1605
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1606
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1607
-  (0.0ms) PRAGMA foreign_keys = 1
1608
- TRANSACTION (0.1ms) begin transaction
1609
-  (1.6ms) SELECT sqlite_version(*)
1610
-  (0.0ms) SELECT sqlite_version(*)
1611
-  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1612
-  (0.9ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1613
-  (0.9ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1614
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1615
-  (0.6ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1616
-  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1617
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1618
-  (0.8ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1619
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1620
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1621
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1622
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1623
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1624
-  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1625
-  (0.8ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1626
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1627
-  (0.8ms) 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)
1628
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1629
- TRANSACTION (0.0ms) begin transaction
1630
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:32:29.393236"], ["updated_at", "2020-12-22 20:32:29.393236"]]
1631
- TRANSACTION (0.9ms) commit transaction
1632
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1633
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1634
-  (0.0ms) SELECT sqlite_version(*)
1635
-  (0.0ms) PRAGMA foreign_keys
1636
-  (0.0ms) PRAGMA defer_foreign_keys
1637
-  (0.1ms) PRAGMA defer_foreign_keys = ON
1638
-  (0.0ms) PRAGMA foreign_keys = OFF
1639
-  (1.0ms) DELETE FROM "posts";
1640
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1641
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1642
-  (0.7ms) DELETE FROM "comments";
1643
-  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1644
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1645
-  (0.7ms) DELETE FROM "authors";
1646
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1647
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1648
-  (0.6ms) DELETE FROM "favorites";
1649
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1650
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1651
-  (0.5ms) DELETE FROM "collab_posts";
1652
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1653
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1654
-  (0.9ms) DELETE FROM "cards";
1655
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1656
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1657
-  (0.6ms) DELETE FROM "card_locations";
1658
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1659
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1660
-  (0.7ms) DELETE FROM "locations";
1661
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1662
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1663
-  (0.8ms) DELETE FROM "community_tickets";
1664
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1665
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1666
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1667
-  (0.0ms) PRAGMA foreign_keys = 1
1668
-  (0.7ms) SELECT sqlite_version(*)
1669
-  (0.0ms) SELECT sqlite_version(*)
1670
-  (1.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1671
-  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1672
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1673
-  (0.5ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1674
-  (0.6ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1675
-  (1.2ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1676
-  (0.9ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1677
-  (0.9ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1678
-  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1679
-  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1680
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1681
-  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1682
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1683
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1684
-  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1685
-  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1686
-  (0.8ms) 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)
1687
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1688
- TRANSACTION (0.0ms) begin transaction
1689
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:32:37.036111"], ["updated_at", "2020-12-22 20:32:37.036111"]]
1690
- TRANSACTION (0.5ms) commit transaction
1691
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1692
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1693
-  (0.0ms) SELECT sqlite_version(*)
1694
-  (0.0ms) PRAGMA foreign_keys
1695
-  (0.0ms) PRAGMA defer_foreign_keys
1696
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1697
-  (0.0ms) PRAGMA foreign_keys = OFF
1698
-  (1.0ms) DELETE FROM "posts";
1699
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1700
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1701
-  (0.6ms) DELETE FROM "comments";
1702
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1703
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1704
-  (0.6ms) DELETE FROM "authors";
1705
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1706
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1707
-  (0.6ms) DELETE FROM "favorites";
1708
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1709
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1710
-  (0.5ms) DELETE FROM "collab_posts";
1711
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1712
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1713
-  (0.6ms) DELETE FROM "cards";
1714
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1715
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1716
-  (0.7ms) DELETE FROM "card_locations";
1717
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1718
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1719
-  (0.5ms) DELETE FROM "locations";
1720
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1721
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1722
-  (0.5ms) DELETE FROM "community_tickets";
1723
-  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1724
-  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1725
-  (0.0ms) PRAGMA defer_foreign_keys = 0
1726
-  (0.0ms) PRAGMA foreign_keys = 1
1727
-  (0.7ms) SELECT sqlite_version(*)
1728
-  (0.0ms) SELECT sqlite_version(*)
1729
-  (1.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1730
-  (0.9ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1731
-  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1732
-  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1733
-  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1734
-  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1735
-  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1736
-  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1737
-  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1738
-  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1739
-  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1740
-  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1741
-  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1742
-  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1743
-  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1744
-  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1745
-  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
1746
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1747
- TRANSACTION (0.0ms) begin transaction
1748
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:32:50.504618"], ["updated_at", "2020-12-22 20:32:50.504618"]]
1749
- TRANSACTION (0.6ms) commit transaction
1750
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1751
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1752
-  (0.1ms) SELECT sqlite_version(*)
1753
-  (0.0ms) PRAGMA foreign_keys
1754
-  (0.0ms) PRAGMA defer_foreign_keys
1755
-  (0.0ms) PRAGMA defer_foreign_keys = ON
1756
-  (0.0ms) PRAGMA foreign_keys = OFF
1757
-  (1.0ms) DELETE FROM "posts";
1758
-  (0.1ms) SELECT name FROM sql