arel-helpers 2.11.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b15a810e483ddccf300cec2e2926a44b05be707e557fa7f89d432fa6542ddc72
4
- data.tar.gz: 8acaece31ba468798d127deab33ac06c8569b71d51e0a813902f398a5f3efbcc
3
+ metadata.gz: d792fc6a4945a79243f3e4b9720c9f10ce21f5a044328f56f2b381045183589a
4
+ data.tar.gz: becca530d9ecfd5a25594ce0363cbde8d792d564358d2394a36d7040e6341384
5
5
  SHA512:
6
- metadata.gz: 265f9cd3e9cbc2d8e3b4c4aa6cb4d2b3cbab4ab8cba267a7088ec56da4cc038271da0ca51d3e2d2d3923cf04d04fc4c8ee79fda0cd571f2b59561677b8dba6d2
7
- data.tar.gz: 60de9c7c46e7d1ed33f8d5ac9466613075e8ab1fd0b9a3335a1f88c6ccc19b64a388297c151578fb23d090c58847151a01c4af5a3365702941fb607c9f0512c5
6
+ metadata.gz: 2d825413e0dc2f3caff9ddcbc93a4eadbb1d8814196bc515fd13b3a759969db970a9fe2df911da86def2125d724d5c651e5a39eba2d9cf873d573c913b6a51f5
7
+ data.tar.gz: 70bea7795e9bcd75058dad5aaee877f6fb1d00e40f9e62b0db8b908d1a1f0656654fe67170a1024e1776b2a458ea11622fad399cda001ffd127c5f35f8197824
data/Gemfile CHANGED
@@ -1,2 +1,3 @@
1
- ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile-rails-6.0.x', __FILE__)
2
- Bundler.load
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -1,23 +1,26 @@
1
- $:.unshift File.join(File.dirname(__FILE__), 'lib')
1
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')
2
2
  require 'arel-helpers/version'
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "arel-helpers"
5
+ s.name = 'arel-helpers'
6
6
  s.version = ::ArelHelpers::VERSION
7
- s.authors = ["Cameron Dutro"]
8
- s.email = ["camertron@gmail.com"]
9
- s.homepage = "https://github.com/camertron/arel-helpers"
7
+ s.authors = ['Cameron Dutro']
8
+ s.email = ['camertron@gmail.com']
9
+ s.homepage = 'https://github.com/camertron/arel-helpers'
10
10
  s.license = 'MIT'
11
- s.description = s.summary = "Useful tools to help construct database queries with ActiveRecord and Arel."
11
+ s.description = s.summary = 'Useful tools to help construct database queries with ActiveRecord and Arel.'
12
12
 
13
13
  s.platform = Gem::Platform::RUBY
14
14
 
15
15
  s.add_dependency 'activerecord', '>= 3.1.0', '< 7'
16
16
 
17
+ s.add_development_dependency 'appraisal'
18
+ s.add_development_dependency 'combustion', '~> 1.3'
19
+ s.add_development_dependency 'database_cleaner', '~> 1.8'
17
20
  s.add_development_dependency 'rake', '~> 10.0'
18
- s.add_development_dependency 'rspec', '~> 2.11'
19
- s.add_development_dependency 'rr', '~> 1.0'
21
+ s.add_development_dependency 'rspec', '~> 3'
22
+ s.add_development_dependency 'sqlite3', '~> 1.4.0'
20
23
 
21
24
  s.require_path = 'lib'
22
- s.files = Dir["{lib,spec}/**/*", "Gemfile", "History.txt", "README.md", "Rakefile", "arel-helpers.gemspec"]
25
+ s.files = Dir['{lib,spec}/**/*', 'Gemfile', 'History.txt', 'README.md', 'Rakefile', 'arel-helpers.gemspec']
23
26
  end
@@ -18,7 +18,9 @@ module ArelHelpers
18
18
  # This method encapsulates that functionality and yields an intermediate object for chaining.
19
19
  # It also allows you to use an outer join instead of the default inner via the join_type arg.
20
20
  def join_association(table, association, join_type = Arel::Nodes::InnerJoin, options = {}, &block)
21
- if version >= '6.0.0'
21
+ if version >= '6.1.0'
22
+ join_association_6_1_0(table, association, join_type, options, &block)
23
+ elsif version >= '6.0.0'
22
24
  join_association_6_0_0(table, association, join_type, options, &block)
23
25
  elsif version >= '5.2.1'
24
26
  join_association_5_2_1(table, association, join_type, options, &block)
@@ -42,7 +44,7 @@ module ArelHelpers
42
44
  end
43
45
 
44
46
  def join_association_3_1(table, association, join_type, options = {})
45
- aliases = options.fetch(:aliases, {})
47
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
46
48
  associations = association.is_a?(Array) ? association : [association]
47
49
  join_dependency = ActiveRecord::Associations::JoinDependency.new(table, associations, [])
48
50
  manager = Arel::SelectManager.new(table)
@@ -53,12 +55,9 @@ module ArelHelpers
53
55
  end
54
56
 
55
57
  manager.join_sources.map do |assoc|
56
- if found_alias = find_alias(assoc.left.name, aliases)
57
- assoc.left.table_alias = found_alias.name
58
- end
58
+ assoc.left.table_alias = aliases[assoc.left.name].name if aliases.key?(assoc.left.name)
59
59
 
60
60
  if block_given?
61
- # yield |assoc_name, join_conditions|
62
61
  right = yield assoc.left.name.to_sym, assoc.right
63
62
  assoc.class.new(assoc.left, right)
64
63
  else
@@ -68,7 +67,7 @@ module ArelHelpers
68
67
  end
69
68
 
70
69
  def join_association_4_1(table, association, join_type, options = {})
71
- aliases = options.fetch(:aliases, {})
70
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
72
71
  associations = association.is_a?(Array) ? association : [association]
73
72
  join_dependency = ActiveRecord::Associations::JoinDependency.new(table, associations, [])
74
73
 
@@ -79,9 +78,7 @@ module ArelHelpers
79
78
  constraint.right
80
79
  end
81
80
 
82
- if found_alias = find_alias(constraint.left.name, aliases)
83
- constraint.left.table_alias = found_alias.name
84
- end
81
+ constraint.left.table_alias = aliases[constraint.left.name].name if aliases.key?(constraint.left.name)
85
82
 
86
83
  join_type.new(constraint.left, right)
87
84
  end
@@ -93,7 +90,7 @@ module ArelHelpers
93
90
  # dynamically. To get around the problem, this method must return
94
91
  # a string.
95
92
  def join_association_4_2(table, association, join_type, options = {})
96
- aliases = options.fetch(:aliases, [])
93
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
97
94
  associations = association.is_a?(Array) ? association : [association]
98
95
  join_dependency = ActiveRecord::Associations::JoinDependency.new(table, associations, [])
99
96
 
@@ -111,9 +108,7 @@ module ArelHelpers
111
108
  join.right
112
109
  end
113
110
 
114
- if found_alias = find_alias(join.left.name, aliases)
115
- join.left.table_alias = found_alias.name
116
- end
111
+ join.left.table_alias = aliases[join.left.name].name if aliases.key?(join.left.name)
117
112
 
118
113
  join_type.new(join.left, right)
119
114
  end
@@ -127,7 +122,7 @@ module ArelHelpers
127
122
  end
128
123
 
129
124
  def join_association_5_0(table, association, join_type, options = {})
130
- aliases = options.fetch(:aliases, [])
125
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
131
126
  associations = association.is_a?(Array) ? association : [association]
132
127
  join_dependency = ActiveRecord::Associations::JoinDependency.new(table, associations, [])
133
128
 
@@ -146,9 +141,7 @@ module ArelHelpers
146
141
  join.right
147
142
  end
148
143
 
149
- if found_alias = find_alias(join.left.name, aliases)
150
- join.left.table_alias = found_alias.name
151
- end
144
+ join.left.table_alias = aliases[join.left.name].name if aliases.key?(join.left.name)
152
145
 
153
146
  join_type.new(join.left, right)
154
147
  end
@@ -162,7 +155,7 @@ module ArelHelpers
162
155
  end
163
156
 
164
157
  def join_association_5_2(table, association, join_type, options = {})
165
- aliases = options.fetch(:aliases, [])
158
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
166
159
  associations = association.is_a?(Array) ? association : [association]
167
160
 
168
161
  alias_tracker = ActiveRecord::Associations::AliasTracker.create(
@@ -182,16 +175,14 @@ module ArelHelpers
182
175
  join.right
183
176
  end
184
177
 
185
- if found_alias = find_alias(join.left.name, aliases)
186
- join.left.table_alias = found_alias.name
187
- end
178
+ join.left.table_alias = aliases[join.left.name].name if aliases.key?(join.left.name)
188
179
 
189
180
  join_type.new(join.left, right)
190
181
  end
191
182
  end
192
183
 
193
184
  def join_association_5_2_1(table, association, join_type, options = {})
194
- aliases = options.fetch(:aliases, [])
185
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
195
186
  associations = association.is_a?(Array) ? association : [association]
196
187
 
197
188
  alias_tracker = ActiveRecord::Associations::AliasTracker.create(
@@ -211,16 +202,14 @@ module ArelHelpers
211
202
  join.right
212
203
  end
213
204
 
214
- if found_alias = find_alias(join.left.name, aliases)
215
- join.left.table_alias = found_alias.name
216
- end
205
+ join.left.table_alias = aliases[join.left.name].name if aliases.key?(join.left.name)
217
206
 
218
207
  join_type.new(join.left, right)
219
208
  end
220
209
  end
221
210
 
222
211
  def join_association_6_0_0(table, association, join_type, options = {})
223
- aliases = options.fetch(:aliases, [])
212
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
224
213
  associations = association.is_a?(Array) ? association : [association]
225
214
 
226
215
  alias_tracker = ActiveRecord::Associations::AliasTracker.create(
@@ -240,14 +229,56 @@ module ArelHelpers
240
229
  join.right
241
230
  end
242
231
 
243
- if found_alias = find_alias(join.left.name, aliases)
244
- join.left.table_alias = found_alias.name
245
- end
232
+ join.left.table_alias = aliases[join.left.name].name if aliases.key?(join.left.name)
246
233
 
247
234
  join_type.new(join.left, right)
248
235
  end
249
236
  end
250
237
 
238
+ def join_association_6_1_0(table, association, join_type, options = {})
239
+ aliases = options.fetch(:aliases, []).index_by(&:table_name)
240
+ associations = association.is_a?(Array) ? association : [association]
241
+
242
+ alias_tracker = ActiveRecord::Associations::AliasTracker.create(
243
+ table.connection, table.name, {}
244
+ )
245
+
246
+ join_dependency = ActiveRecord::Associations::JoinDependency.new(
247
+ table, table.arel_table, associations, join_type
248
+ )
249
+
250
+ constraints = join_dependency.join_constraints([], alias_tracker, [])
251
+
252
+ constraints.map do |join|
253
+ apply_aliases(join, aliases)
254
+
255
+ right = if block_given?
256
+ yield join.left.name.to_sym, join.right
257
+ else
258
+ join.right
259
+ end
260
+
261
+ join_type.new(join.left, right)
262
+ end
263
+ end
264
+
265
+ def apply_aliases(node, aliases)
266
+ case node
267
+ when Arel::Nodes::Join
268
+ node.left = aliases[node.left.name] || node.left
269
+ apply_aliases(node.right, aliases)
270
+ when Arel::Attributes::Attribute
271
+ node.relation = aliases[node.relation.name] || node.relation
272
+ when Arel::Nodes::And
273
+ node.children.each { |child| apply_aliases(child, aliases) }
274
+ when Arel::Nodes::Unary
275
+ apply_aliases(node.value, aliases)
276
+ when Arel::Nodes::Binary
277
+ apply_aliases(node.left, aliases)
278
+ apply_aliases(node.right, aliases)
279
+ end
280
+ end
281
+
251
282
  private
252
283
 
253
284
  def to_sql(node, table, binds)
@@ -255,10 +286,6 @@ module ArelHelpers
255
286
  collect = visitor.accept(node, Arel::Collectors::Bind.new)
256
287
  collect.substitute_binds(binds).join
257
288
  end
258
-
259
- def find_alias(name, aliases)
260
- aliases.find { |a| a.table_name == name }
261
- end
262
289
  end
263
290
  end
264
291
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ArelHelpers
4
- VERSION = '2.11.0'
4
+ VERSION = '2.12.0'
5
5
  end
@@ -1,17 +1,15 @@
1
- # encoding: UTF-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe ArelHelpers::Aliases do
6
- describe "#aliased_as" do
7
- it "yields an alias when passed a block" do
4
+ describe '#aliased_as' do
5
+ it 'yields an alias when passed a block' do
8
6
  Post.aliased_as('foo') do |foo_alias|
9
7
  expect(foo_alias).to be_a(Arel::Nodes::TableAlias)
10
8
  expect(foo_alias.name).to eq('foo')
11
9
  end
12
10
  end
13
11
 
14
- it "is capable of yielding multiple aliases" do
12
+ it 'is capable of yielding multiple aliases' do
15
13
  Post.aliased_as('foo', 'bar') do |foo_alias, bar_alias|
16
14
  expect(foo_alias).to be_a(Arel::Nodes::TableAlias)
17
15
  expect(foo_alias.name).to eq('foo')
@@ -21,14 +19,14 @@ describe ArelHelpers::Aliases do
21
19
  end
22
20
  end
23
21
 
24
- it "returns an alias when not passed a block" do
22
+ it 'returns an alias when not passed a block' do
25
23
  aliases = Post.aliased_as('foo')
26
24
  expect(aliases.size).to eq(1)
27
25
  expect(aliases[0]).to be_a(Arel::Nodes::TableAlias)
28
26
  expect(aliases[0].name).to eq('foo')
29
27
  end
30
28
 
31
- it "is capable of returning multiple aliases" do
29
+ it 'is capable of returning multiple aliases' do
32
30
  aliases = Post.aliased_as('foo', 'bar')
33
31
  expect(aliases.size).to eq(2)
34
32
 
@@ -1,30 +1,28 @@
1
- # encoding: UTF-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe ArelHelpers::ArelTable do
6
- it "should add the [] function to the model and allow attribute access" do
4
+ it 'should add the [] function to the model and allow attribute access' do
7
5
  Post[:id].tap do |post_id|
8
- post_id.should be_a(Arel::Attribute)
9
- post_id.name.should == :id
10
- post_id.relation.name.should == "posts"
6
+ expect(post_id).to be_a Arel::Attribute
7
+ expect(post_id.name.to_s).to eq 'id'
8
+ expect(post_id.relation.name).to eq 'posts'
11
9
  end
12
10
  end
13
11
 
14
- it "should not interfere with associations" do
12
+ it 'should not interfere with associations' do
15
13
  post = Post.create(title: "I'm a little teapot")
16
- post.comments[0].should be_nil
14
+ expect(post.comments[0]).to be_nil
17
15
  end
18
16
 
19
- it "should allow retrieving associated records" do
17
+ it 'should allow retrieving associated records' do
20
18
  post = Post.create(title: "I'm a little teapot")
21
19
  comment = post.comments.create
22
- post.reload.comments[0].id.should == comment.id
20
+ expect(post.reload.comments[0].id).to eq comment.id
23
21
  end
24
22
 
25
- it "does not interfere with ActiveRecord::Relation objects" do
26
- Post.all[0].should be_nil
23
+ it 'does not interfere with ActiveRecord::Relation objects' do
24
+ expect(Post.all[0]).to be_nil
27
25
  p = Post.create(title: 'foo')
28
- Post.all[0].id.should == p.id
26
+ expect(Post.all[0].id).to eq p.id
29
27
  end
30
28
  end
@@ -1,5 +1,3 @@
1
- # encoding: UTF-8
2
-
3
1
  class Post < ActiveRecord::Base
4
2
  include ArelHelpers::ArelTable
5
3
  include ArelHelpers::Aliases
@@ -44,12 +42,10 @@ end
44
42
 
45
43
  class Location < ActiveRecord::Base
46
44
  has_many :card_locations
47
- has_many :community_tickets, {
48
- through: :card_locations, source: :card, source_type: 'CommunityTicket'
49
- }
45
+ has_many :community_tickets, through: :card_locations, source: :card, source_type: 'CommunityTicket'
50
46
  end
51
47
 
52
48
  class CommunityTicket < ActiveRecord::Base
53
- has_many :card_locations, as: :card, source_type: 'CommunityTicket'
49
+ has_many :card_locations, as: :card
54
50
  has_many :locations, through: :card_locations
55
51
  end
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: db/combustion_test.sqlite
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ ActiveRecord::Schema.define do
4
+ create_table :posts do |t|
5
+ t.column :title, :string
6
+ end
7
+
8
+ create_table :comments do |t|
9
+ t.references :post
10
+ end
11
+
12
+ create_table :authors do |t|
13
+ t.references :comment
14
+ t.references :collab_posts
15
+ end
16
+
17
+ create_table :favorites do |t|
18
+ t.references :post
19
+ end
20
+
21
+ create_table :collab_posts do |t|
22
+ t.references :authors
23
+ end
24
+
25
+ create_table :cards
26
+
27
+ create_table :card_locations do |t|
28
+ t.references :location
29
+ t.references :card, polymorphic: true
30
+ end
31
+
32
+ create_table :locations
33
+ create_table :community_tickets
34
+ end
@@ -0,0 +1,2979 @@
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)
140
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
141
+ 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)
145
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
146
+  (0.1ms) SELECT sqlite_version(*)
147
+  (0.0ms) PRAGMA foreign_keys
148
+  (0.0ms) PRAGMA defer_foreign_keys
149
+  (0.0ms) PRAGMA defer_foreign_keys = ON
150
+  (0.0ms) PRAGMA foreign_keys = OFF
151
+  (0.6ms) DELETE FROM "posts";
152
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
153
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
154
+  (0.8ms) DELETE FROM "comments";
155
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
156
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
157
+  (0.8ms) DELETE FROM "authors";
158
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
159
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
160
+  (0.5ms) DELETE FROM "favorites";
161
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
162
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
163
+  (0.6ms) DELETE FROM "collab_posts";
164
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
165
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
166
+  (0.7ms) DELETE FROM "cards";
167
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
168
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
169
+  (0.6ms) DELETE FROM "card_locations";
170
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
171
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
172
+  (0.5ms) DELETE FROM "locations";
173
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
174
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
175
+  (0.5ms) DELETE FROM "community_tickets";
176
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
177
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
178
+  (0.1ms) PRAGMA defer_foreign_keys = 0
179
+  (0.0ms) PRAGMA foreign_keys = 1
180
+ TRANSACTION (0.0ms) begin transaction
181
+ TRANSACTION (0.0ms) rollback transaction
182
+ TRANSACTION (0.0ms) begin transaction
183
+ TRANSACTION (0.0ms) rollback transaction
184
+ TRANSACTION (0.0ms) begin transaction
185
+ TRANSACTION (0.0ms) rollback transaction
186
+ TRANSACTION (0.0ms) begin transaction
187
+ TRANSACTION (0.0ms) rollback transaction
188
+ TRANSACTION (0.0ms) begin transaction
189
+ TRANSACTION (0.0ms) rollback transaction
190
+ TRANSACTION (0.0ms) begin transaction
191
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
192
+ Location Create (0.2ms) INSERT INTO "locations" DEFAULT VALUES
193
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
194
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
195
+ CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
196
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
197
+ 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
200
+  (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
+ 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"]]
202
+ TRANSACTION (0.3ms) rollback transaction
203
+ TRANSACTION (0.0ms) begin transaction
204
+ 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)
224
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
225
+ 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)
229
+ 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(*)
231
+  (0.0ms) PRAGMA foreign_keys
232
+  (0.0ms) PRAGMA defer_foreign_keys
233
+  (0.0ms) PRAGMA defer_foreign_keys = ON
234
+  (0.0ms) PRAGMA foreign_keys = OFF
235
+  (0.5ms) DELETE FROM "posts";
236
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
237
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
238
+  (0.5ms) DELETE FROM "comments";
239
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
241
+  (0.5ms) DELETE FROM "authors";
242
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
243
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
244
+  (0.6ms) DELETE FROM "favorites";
245
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
246
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
247
+  (0.6ms) DELETE FROM "collab_posts";
248
+  (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
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
253
+  (0.6ms) DELETE FROM "card_locations";
254
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
255
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
256
+  (0.5ms) DELETE FROM "locations";
257
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
258
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
259
+  (0.5ms) DELETE FROM "community_tickets";
260
+  (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';
262
+  (0.0ms) PRAGMA defer_foreign_keys = 0
263
+  (0.0ms) PRAGMA foreign_keys = 1
264
+ 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
272
+ TRANSACTION (0.0ms) begin transaction
273
+ TRANSACTION (0.0ms) rollback transaction
274
+ TRANSACTION (0.0ms) begin transaction
275
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
276
+ Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
277
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
278
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
279
+ CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
280
+ 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]]
283
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
284
+  (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
+ 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"]]
286
+ TRANSACTION (0.3ms) rollback transaction
287
+ TRANSACTION (0.0ms) begin transaction
288
+ 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)
295
+  (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)
308
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
309
+ 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"]]
311
+ TRANSACTION (0.8ms) commit transaction
312
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
313
+ 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(*)
315
+  (0.0ms) PRAGMA foreign_keys
316
+  (0.0ms) PRAGMA defer_foreign_keys
317
+  (0.0ms) PRAGMA defer_foreign_keys = ON
318
+  (0.0ms) PRAGMA foreign_keys = OFF
319
+  (0.6ms) DELETE FROM "posts";
320
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
321
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
322
+  (0.8ms) DELETE FROM "comments";
323
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
324
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
325
+  (0.5ms) DELETE FROM "authors";
326
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
327
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
328
+  (0.6ms) DELETE FROM "favorites";
329
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
330
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
331
+  (0.5ms) DELETE FROM "collab_posts";
332
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
333
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
334
+  (0.7ms) DELETE FROM "cards";
335
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
336
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
337
+  (0.6ms) DELETE FROM "card_locations";
338
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
339
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
340
+  (0.5ms) DELETE FROM "locations";
341
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
342
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
343
+  (0.6ms) DELETE FROM "community_tickets";
344
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
345
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
346
+  (0.0ms) PRAGMA defer_foreign_keys = 0
347
+  (0.0ms) PRAGMA foreign_keys = 1
348
+ 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
354
+ TRANSACTION (0.0ms) begin transaction
355
+ TRANSACTION (0.0ms) rollback transaction
356
+ TRANSACTION (0.0ms) begin transaction
357
+ TRANSACTION (0.0ms) rollback transaction
358
+ TRANSACTION (0.0ms) begin transaction
359
+ 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
362
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
363
+ CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
364
+ 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]]
367
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
368
+  (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
+ 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"]]
370
+ TRANSACTION (0.2ms) rollback transaction
371
+ 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]]
393
+ 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 sqlite_master WHERE type='table' AND name='sqlite_sequence';
1759
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1760
+  (0.6ms) DELETE FROM "comments";
1761
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1762
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1763
+  (0.6ms) DELETE FROM "authors";
1764
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1765
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1766
+  (0.6ms) DELETE FROM "favorites";
1767
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1768
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1769
+  (0.6ms) DELETE FROM "collab_posts";
1770
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1771
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1772
+  (0.6ms) DELETE FROM "cards";
1773
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1774
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'cards';
1775
+  (0.7ms) DELETE FROM "card_locations";
1776
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1777
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1778
+  (0.5ms) DELETE FROM "locations";
1779
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1780
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1781
+  (0.7ms) DELETE FROM "community_tickets";
1782
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1783
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1784
+  (0.0ms) PRAGMA defer_foreign_keys = 0
1785
+  (0.0ms) PRAGMA foreign_keys = 1
1786
+  (0.9ms) SELECT sqlite_version(*)
1787
+  (0.1ms) SELECT sqlite_version(*)
1788
+  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1789
+  (1.1ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1790
+  (1.0ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1791
+  (1.0ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1792
+  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1793
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1794
+  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1795
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1796
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1797
+  (1.0ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1798
+  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1799
+  (0.9ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1800
+  (0.8ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1801
+  (0.8ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1802
+  (0.9ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1803
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1804
+  (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)
1805
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1806
+ TRANSACTION (0.0ms) begin transaction
1807
+ 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:33:03.805568"], ["updated_at", "2020-12-22 20:33:03.805568"]]
1808
+ TRANSACTION (0.5ms) commit transaction
1809
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1810
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1811
+  (0.0ms) SELECT sqlite_version(*)
1812
+  (0.0ms) PRAGMA foreign_keys
1813
+  (0.1ms) PRAGMA defer_foreign_keys
1814
+  (0.0ms) PRAGMA defer_foreign_keys = ON
1815
+  (0.0ms) PRAGMA foreign_keys = OFF
1816
+  (1.0ms) DELETE FROM "posts";
1817
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1818
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1819
+  (0.8ms) DELETE FROM "comments";
1820
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1821
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1822
+  (0.8ms) DELETE FROM "authors";
1823
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1824
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1825
+  (0.8ms) DELETE FROM "favorites";
1826
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1827
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1828
+  (0.8ms) DELETE FROM "collab_posts";
1829
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1830
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1831
+  (0.7ms) DELETE FROM "cards";
1832
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1833
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1834
+  (0.7ms) DELETE FROM "card_locations";
1835
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1836
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1837
+  (0.6ms) DELETE FROM "locations";
1838
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1839
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1840
+  (0.8ms) DELETE FROM "community_tickets";
1841
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1842
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1843
+  (0.0ms) PRAGMA defer_foreign_keys = 0
1844
+  (0.0ms) PRAGMA foreign_keys = 1
1845
+ TRANSACTION (0.1ms) begin transaction
1846
+  (0.7ms) SELECT sqlite_version(*)
1847
+  (0.0ms) SELECT sqlite_version(*)
1848
+  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1849
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1850
+  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1851
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1852
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1853
+  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1854
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1855
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1856
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1857
+  (0.8ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1858
+  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1859
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1860
+  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1861
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1862
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1863
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1864
+  (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)
1865
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1866
+ TRANSACTION (0.0ms) begin transaction
1867
+ 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:34:11.438104"], ["updated_at", "2020-12-22 20:34:11.438104"]]
1868
+ TRANSACTION (0.6ms) commit transaction
1869
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1870
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1871
+  (0.0ms) SELECT sqlite_version(*)
1872
+  (0.0ms) PRAGMA foreign_keys
1873
+  (0.0ms) PRAGMA defer_foreign_keys
1874
+  (0.0ms) PRAGMA defer_foreign_keys = ON
1875
+  (0.0ms) PRAGMA foreign_keys = OFF
1876
+  (0.9ms) DELETE FROM "posts";
1877
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1878
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1879
+  (0.6ms) DELETE FROM "comments";
1880
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1881
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1882
+  (0.6ms) DELETE FROM "authors";
1883
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1884
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1885
+  (0.8ms) DELETE FROM "favorites";
1886
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1887
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1888
+  (0.8ms) DELETE FROM "collab_posts";
1889
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1890
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1891
+  (0.6ms) DELETE FROM "cards";
1892
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1893
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1894
+  (0.6ms) DELETE FROM "card_locations";
1895
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1896
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1897
+  (0.5ms) DELETE FROM "locations";
1898
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1899
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1900
+  (0.7ms) DELETE FROM "community_tickets";
1901
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1902
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1903
+  (0.0ms) PRAGMA defer_foreign_keys = 0
1904
+  (0.0ms) PRAGMA foreign_keys = 1
1905
+ TRANSACTION (0.1ms) begin transaction
1906
+  (0.8ms) SELECT sqlite_version(*)
1907
+  (0.0ms) SELECT sqlite_version(*)
1908
+  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1909
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1910
+  (1.0ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1911
+  (0.9ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1912
+  (1.1ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1913
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1914
+  (0.8ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1915
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1916
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1917
+  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1918
+  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1919
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1920
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1921
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1922
+  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1923
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1924
+  (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)
1925
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1926
+ TRANSACTION (0.0ms) begin transaction
1927
+ 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:35:07.300913"], ["updated_at", "2020-12-22 20:35:07.300913"]]
1928
+ TRANSACTION (0.5ms) commit transaction
1929
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1930
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1931
+  (0.1ms) SELECT sqlite_version(*)
1932
+  (0.0ms) PRAGMA foreign_keys
1933
+  (0.0ms) PRAGMA defer_foreign_keys
1934
+  (0.0ms) PRAGMA defer_foreign_keys = ON
1935
+  (0.0ms) PRAGMA foreign_keys = OFF
1936
+  (1.0ms) DELETE FROM "posts";
1937
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1938
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1939
+  (0.6ms) DELETE FROM "comments";
1940
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1941
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
1942
+  (0.6ms) DELETE FROM "authors";
1943
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1944
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
1945
+  (0.6ms) DELETE FROM "favorites";
1946
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1947
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
1948
+  (0.6ms) DELETE FROM "collab_posts";
1949
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1950
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
1951
+  (0.6ms) DELETE FROM "cards";
1952
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1953
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
1954
+  (0.7ms) DELETE FROM "card_locations";
1955
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1956
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
1957
+  (0.7ms) DELETE FROM "locations";
1958
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1959
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
1960
+  (0.6ms) DELETE FROM "community_tickets";
1961
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1962
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
1963
+  (0.0ms) PRAGMA defer_foreign_keys = 0
1964
+  (0.0ms) PRAGMA foreign_keys = 1
1965
+  (1.1ms) SELECT sqlite_version(*)
1966
+  (0.0ms) SELECT sqlite_version(*)
1967
+  (1.4ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
1968
+  (1.0ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1969
+  (1.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
1970
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
1971
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
1972
+  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
1973
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
1974
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
1975
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
1976
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
1977
+  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1978
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
1979
+  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
1980
+  (0.8ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
1981
+  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1982
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
1983
+  (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)
1984
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1985
+ TRANSACTION (0.0ms) begin transaction
1986
+ 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:38:07.177187"], ["updated_at", "2020-12-22 20:38:07.177187"]]
1987
+ TRANSACTION (0.6ms) commit transaction
1988
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1989
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1990
+  (0.1ms) SELECT sqlite_version(*)
1991
+  (0.0ms) PRAGMA foreign_keys
1992
+  (0.0ms) PRAGMA defer_foreign_keys
1993
+  (0.0ms) PRAGMA defer_foreign_keys = ON
1994
+  (0.0ms) PRAGMA foreign_keys = OFF
1995
+  (1.0ms) DELETE FROM "posts";
1996
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1997
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
1998
+  (0.8ms) DELETE FROM "comments";
1999
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2000
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2001
+  (0.9ms) DELETE FROM "authors";
2002
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2003
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2004
+  (0.7ms) DELETE FROM "favorites";
2005
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2006
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2007
+  (0.7ms) DELETE FROM "collab_posts";
2008
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2009
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2010
+  (0.6ms) DELETE FROM "cards";
2011
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2012
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2013
+  (0.6ms) DELETE FROM "card_locations";
2014
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2015
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2016
+  (0.8ms) DELETE FROM "locations";
2017
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2018
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2019
+  (0.6ms) DELETE FROM "community_tickets";
2020
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2021
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2022
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2023
+  (0.0ms) PRAGMA foreign_keys = 1
2024
+ TRANSACTION (0.2ms) begin transaction
2025
+  (0.9ms) SELECT sqlite_version(*)
2026
+  (0.0ms) SELECT sqlite_version(*)
2027
+  (1.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2028
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2029
+  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2030
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2031
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2032
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2033
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2034
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2035
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2036
+  (0.8ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2037
+  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2038
+  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2039
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2040
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2041
+  (0.8ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2042
+  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2043
+  (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)
2044
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2045
+ TRANSACTION (0.0ms) begin transaction
2046
+ 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:38:36.381529"], ["updated_at", "2020-12-22 20:38:36.381529"]]
2047
+ TRANSACTION (0.5ms) commit transaction
2048
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2049
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2050
+  (0.0ms) SELECT sqlite_version(*)
2051
+  (0.0ms) PRAGMA foreign_keys
2052
+  (0.0ms) PRAGMA defer_foreign_keys
2053
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2054
+  (0.0ms) PRAGMA foreign_keys = OFF
2055
+  (1.2ms) DELETE FROM "posts";
2056
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2057
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2058
+  (0.9ms) DELETE FROM "comments";
2059
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2060
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'comments';
2061
+  (0.7ms) DELETE FROM "authors";
2062
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2063
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2064
+  (0.5ms) DELETE FROM "favorites";
2065
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2066
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2067
+  (0.6ms) DELETE FROM "collab_posts";
2068
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2069
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2070
+  (0.6ms) DELETE FROM "cards";
2071
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2072
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2073
+  (0.7ms) DELETE FROM "card_locations";
2074
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2075
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2076
+  (0.5ms) DELETE FROM "locations";
2077
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2078
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2079
+  (0.8ms) DELETE FROM "community_tickets";
2080
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2081
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2082
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2083
+  (0.0ms) PRAGMA foreign_keys = 1
2084
+ TRANSACTION (0.2ms) begin transaction
2085
+ TRANSACTION (0.1ms) rollback transaction
2086
+  (0.8ms) SELECT sqlite_version(*)
2087
+  (0.0ms) SELECT sqlite_version(*)
2088
+  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2089
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2090
+  (0.6ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2091
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2092
+  (1.0ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2093
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2094
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2095
+  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2096
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2097
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2098
+  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2099
+  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2100
+  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2101
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2102
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2103
+  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2104
+  (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)
2105
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2106
+ TRANSACTION (0.0ms) begin transaction
2107
+ 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:38:56.216350"], ["updated_at", "2020-12-22 20:38:56.216350"]]
2108
+ TRANSACTION (0.6ms) commit transaction
2109
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2110
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2111
+  (0.0ms) SELECT sqlite_version(*)
2112
+  (0.0ms) PRAGMA foreign_keys
2113
+  (0.0ms) PRAGMA defer_foreign_keys
2114
+  (0.1ms) PRAGMA defer_foreign_keys = ON
2115
+  (0.0ms) PRAGMA foreign_keys = OFF
2116
+  (0.8ms) DELETE FROM "posts";
2117
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2118
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2119
+  (0.9ms) DELETE FROM "comments";
2120
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2121
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2122
+  (0.9ms) DELETE FROM "authors";
2123
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2124
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2125
+  (0.7ms) DELETE FROM "favorites";
2126
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2127
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2128
+  (0.7ms) DELETE FROM "collab_posts";
2129
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2130
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2131
+  (0.6ms) DELETE FROM "cards";
2132
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2133
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2134
+  (0.7ms) DELETE FROM "card_locations";
2135
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2136
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2137
+  (0.5ms) DELETE FROM "locations";
2138
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2139
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2140
+  (0.5ms) DELETE FROM "community_tickets";
2141
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2142
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2143
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2144
+  (0.1ms) PRAGMA foreign_keys = 1
2145
+ TRANSACTION (0.1ms) begin transaction
2146
+  (0.7ms) SELECT sqlite_version(*)
2147
+  (0.0ms) SELECT sqlite_version(*)
2148
+  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2149
+  (1.1ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2150
+  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2151
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2152
+  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2153
+  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2154
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2155
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2156
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2157
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2158
+  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2159
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2160
+  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2161
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2162
+  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2163
+  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2164
+  (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)
2165
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2166
+ TRANSACTION (0.0ms) begin transaction
2167
+ 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:44:29.282798"], ["updated_at", "2020-12-22 20:44:29.282798"]]
2168
+ TRANSACTION (0.7ms) commit transaction
2169
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2170
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2171
+  (0.0ms) SELECT sqlite_version(*)
2172
+  (0.0ms) PRAGMA foreign_keys
2173
+  (0.0ms) PRAGMA defer_foreign_keys
2174
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2175
+  (0.0ms) PRAGMA foreign_keys = OFF
2176
+  (1.0ms) DELETE FROM "posts";
2177
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2178
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2179
+  (0.7ms) DELETE FROM "comments";
2180
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2181
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2182
+  (0.9ms) DELETE FROM "authors";
2183
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2184
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2185
+  (0.8ms) DELETE FROM "favorites";
2186
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2187
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2188
+  (0.7ms) DELETE FROM "collab_posts";
2189
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2190
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2191
+  (0.7ms) DELETE FROM "cards";
2192
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2193
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2194
+  (0.7ms) DELETE FROM "card_locations";
2195
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2196
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2197
+  (0.6ms) DELETE FROM "locations";
2198
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2199
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2200
+  (0.6ms) DELETE FROM "community_tickets";
2201
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2202
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2203
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2204
+  (0.0ms) PRAGMA foreign_keys = 1
2205
+ TRANSACTION (0.0ms) begin transaction
2206
+ TRANSACTION (0.0ms) rollback transaction
2207
+  (0.7ms) SELECT sqlite_version(*)
2208
+  (0.0ms) SELECT sqlite_version(*)
2209
+  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2210
+  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2211
+  (0.9ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2212
+  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2213
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2214
+  (1.1ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2215
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2216
+  (0.8ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2217
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2218
+  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2219
+  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2220
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2221
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2222
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2223
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2224
+  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2225
+  (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)
2226
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2227
+ TRANSACTION (0.0ms) begin transaction
2228
+ 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:44:55.642842"], ["updated_at", "2020-12-22 20:44:55.642842"]]
2229
+ TRANSACTION (0.6ms) commit transaction
2230
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2231
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2232
+  (0.0ms) SELECT sqlite_version(*)
2233
+  (0.0ms) PRAGMA foreign_keys
2234
+  (0.0ms) PRAGMA defer_foreign_keys
2235
+  (0.1ms) PRAGMA defer_foreign_keys = ON
2236
+  (0.0ms) PRAGMA foreign_keys = OFF
2237
+  (1.1ms) DELETE FROM "posts";
2238
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2239
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2240
+  (0.6ms) DELETE FROM "comments";
2241
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2242
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2243
+  (0.6ms) DELETE FROM "authors";
2244
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2245
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2246
+  (0.9ms) DELETE FROM "favorites";
2247
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2248
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2249
+  (0.7ms) DELETE FROM "collab_posts";
2250
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2251
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2252
+  (0.6ms) DELETE FROM "cards";
2253
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2254
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2255
+  (0.7ms) DELETE FROM "card_locations";
2256
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2257
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2258
+  (0.6ms) DELETE FROM "locations";
2259
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2260
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2261
+  (0.5ms) DELETE FROM "community_tickets";
2262
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2263
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2264
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2265
+  (0.1ms) PRAGMA foreign_keys = 1
2266
+ TRANSACTION (0.0ms) begin transaction
2267
+ TRANSACTION (0.0ms) rollback transaction
2268
+  (0.8ms) SELECT sqlite_version(*)
2269
+  (0.0ms) SELECT sqlite_version(*)
2270
+  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2271
+  (1.2ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2272
+  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2273
+  (0.9ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2274
+  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2275
+  (0.7ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2276
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2277
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2278
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2279
+  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2280
+  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2281
+  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2282
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2283
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2284
+  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2285
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2286
+  (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)
2287
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2288
+ TRANSACTION (0.0ms) begin transaction
2289
+ 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:50:14.225983"], ["updated_at", "2020-12-22 20:50:14.225983"]]
2290
+ TRANSACTION (0.6ms) commit transaction
2291
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2292
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2293
+  (0.0ms) SELECT sqlite_version(*)
2294
+  (0.0ms) PRAGMA foreign_keys
2295
+  (0.0ms) PRAGMA defer_foreign_keys
2296
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2297
+  (0.0ms) PRAGMA foreign_keys = OFF
2298
+  (1.1ms) DELETE FROM "posts";
2299
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2300
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2301
+  (0.6ms) DELETE FROM "comments";
2302
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2303
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2304
+  (0.6ms) DELETE FROM "authors";
2305
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2306
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2307
+  (0.6ms) DELETE FROM "favorites";
2308
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2309
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2310
+  (0.6ms) DELETE FROM "collab_posts";
2311
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2312
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2313
+  (0.7ms) DELETE FROM "cards";
2314
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2315
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2316
+  (0.6ms) DELETE FROM "card_locations";
2317
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2318
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2319
+  (0.6ms) DELETE FROM "locations";
2320
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2321
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2322
+  (0.5ms) DELETE FROM "community_tickets";
2323
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2324
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2325
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2326
+  (0.0ms) PRAGMA foreign_keys = 1
2327
+ TRANSACTION (0.0ms) begin transaction
2328
+ TRANSACTION (0.0ms) rollback transaction
2329
+  (0.7ms) SELECT sqlite_version(*)
2330
+  (0.0ms) SELECT sqlite_version(*)
2331
+  (0.9ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2332
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2333
+  (0.8ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2334
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2335
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2336
+  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2337
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2338
+  (0.8ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2339
+  (0.9ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2340
+  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2341
+  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2342
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2343
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2344
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2345
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2346
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2347
+  (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)
2348
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2349
+ TRANSACTION (0.0ms) begin transaction
2350
+ 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:50:31.165660"], ["updated_at", "2020-12-22 20:50:31.165660"]]
2351
+ TRANSACTION (0.6ms) commit transaction
2352
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2353
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2354
+  (0.1ms) SELECT sqlite_version(*)
2355
+  (0.0ms) PRAGMA foreign_keys
2356
+  (0.0ms) PRAGMA defer_foreign_keys
2357
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2358
+  (0.0ms) PRAGMA foreign_keys = OFF
2359
+  (1.0ms) DELETE FROM "posts";
2360
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2361
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2362
+  (0.7ms) DELETE FROM "comments";
2363
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2364
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2365
+  (0.7ms) DELETE FROM "authors";
2366
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2367
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2368
+  (0.5ms) DELETE FROM "favorites";
2369
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2370
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2371
+  (0.7ms) DELETE FROM "collab_posts";
2372
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2373
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2374
+  (0.6ms) DELETE FROM "cards";
2375
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2376
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2377
+  (0.8ms) DELETE FROM "card_locations";
2378
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2379
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2380
+  (0.6ms) DELETE FROM "locations";
2381
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2382
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2383
+  (0.6ms) DELETE FROM "community_tickets";
2384
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2385
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2386
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2387
+  (0.0ms) PRAGMA foreign_keys = 1
2388
+ TRANSACTION (0.2ms) begin transaction
2389
+  (0.8ms) SELECT sqlite_version(*)
2390
+  (0.0ms) SELECT sqlite_version(*)
2391
+  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2392
+  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2393
+  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2394
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2395
+  (1.0ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2396
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2397
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2398
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2399
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2400
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2401
+  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2402
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2403
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2404
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2405
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2406
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2407
+  (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)
2408
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2409
+ TRANSACTION (0.0ms) begin transaction
2410
+ 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:51:00.409991"], ["updated_at", "2020-12-22 20:51:00.409991"]]
2411
+ TRANSACTION (0.6ms) commit transaction
2412
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2413
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2414
+  (0.0ms) SELECT sqlite_version(*)
2415
+  (0.0ms) PRAGMA foreign_keys
2416
+  (0.0ms) PRAGMA defer_foreign_keys
2417
+  (0.1ms) PRAGMA defer_foreign_keys = ON
2418
+  (0.0ms) PRAGMA foreign_keys = OFF
2419
+  (0.7ms) DELETE FROM "posts";
2420
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2421
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2422
+  (0.5ms) DELETE FROM "comments";
2423
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2424
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2425
+  (0.5ms) DELETE FROM "authors";
2426
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2427
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'authors';
2428
+  (1.0ms) DELETE FROM "favorites";
2429
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2430
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2431
+  (0.6ms) DELETE FROM "collab_posts";
2432
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2433
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2434
+  (0.7ms) DELETE FROM "cards";
2435
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2436
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2437
+  (0.9ms) DELETE FROM "card_locations";
2438
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2439
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2440
+  (0.8ms) DELETE FROM "locations";
2441
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2442
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2443
+  (0.5ms) DELETE FROM "community_tickets";
2444
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2445
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2446
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2447
+  (0.0ms) PRAGMA foreign_keys = 1
2448
+ TRANSACTION (0.1ms) begin transaction
2449
+  (1.0ms) SELECT sqlite_version(*)
2450
+  (0.0ms) SELECT sqlite_version(*)
2451
+  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2452
+  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2453
+  (0.6ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2454
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2455
+  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2456
+  (0.6ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2457
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2458
+  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2459
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2460
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2461
+  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2462
+  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2463
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2464
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2465
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2466
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2467
+  (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)
2468
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2469
+ TRANSACTION (0.0ms) begin transaction
2470
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:53:04.658928"], ["updated_at", "2020-12-22 20:53:04.658928"]]
2471
+ TRANSACTION (0.8ms) commit transaction
2472
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2473
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2474
+  (0.0ms) SELECT sqlite_version(*)
2475
+  (0.0ms) PRAGMA foreign_keys
2476
+  (0.0ms) PRAGMA defer_foreign_keys
2477
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2478
+  (0.0ms) PRAGMA foreign_keys = OFF
2479
+  (0.6ms) DELETE FROM "posts";
2480
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2481
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2482
+  (0.5ms) DELETE FROM "comments";
2483
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2484
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2485
+  (0.7ms) DELETE FROM "authors";
2486
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2487
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2488
+  (0.7ms) DELETE FROM "favorites";
2489
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2490
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2491
+  (0.8ms) DELETE FROM "collab_posts";
2492
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2493
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2494
+  (0.7ms) DELETE FROM "cards";
2495
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2496
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2497
+  (0.9ms) DELETE FROM "card_locations";
2498
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2499
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2500
+  (0.6ms) DELETE FROM "locations";
2501
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2502
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2503
+  (0.7ms) DELETE FROM "community_tickets";
2504
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2505
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2506
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2507
+  (0.0ms) PRAGMA foreign_keys = 1
2508
+ TRANSACTION (0.1ms) begin transaction
2509
+  (0.8ms) SELECT sqlite_version(*)
2510
+  (0.0ms) SELECT sqlite_version(*)
2511
+  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2512
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2513
+  (0.6ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2514
+  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2515
+  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2516
+  (1.1ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2517
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2518
+  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2519
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2520
+  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2521
+  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2522
+  (0.7ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2523
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2524
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2525
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2526
+  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2527
+  (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)
2528
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2529
+ TRANSACTION (0.0ms) begin transaction
2530
+ 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:58:11.470656"], ["updated_at", "2020-12-22 20:58:11.470656"]]
2531
+ TRANSACTION (0.7ms) commit transaction
2532
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2533
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2534
+  (0.0ms) SELECT sqlite_version(*)
2535
+  (0.0ms) PRAGMA foreign_keys
2536
+  (0.0ms) PRAGMA defer_foreign_keys
2537
+  (0.1ms) PRAGMA defer_foreign_keys = ON
2538
+  (0.0ms) PRAGMA foreign_keys = OFF
2539
+  (1.0ms) DELETE FROM "posts";
2540
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2541
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2542
+  (0.6ms) DELETE FROM "comments";
2543
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2544
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2545
+  (0.7ms) DELETE FROM "authors";
2546
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2547
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2548
+  (0.6ms) DELETE FROM "favorites";
2549
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2550
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2551
+  (0.9ms) DELETE FROM "collab_posts";
2552
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2553
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2554
+  (0.6ms) DELETE FROM "cards";
2555
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2556
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2557
+  (0.6ms) DELETE FROM "card_locations";
2558
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2559
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2560
+  (0.5ms) DELETE FROM "locations";
2561
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2562
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2563
+  (0.6ms) DELETE FROM "community_tickets";
2564
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2565
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2566
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2567
+  (0.0ms) PRAGMA foreign_keys = 1
2568
+ TRANSACTION (0.1ms) begin transaction
2569
+ TRANSACTION (0.0ms) rollback transaction
2570
+  (0.8ms) SELECT sqlite_version(*)
2571
+  (0.0ms) SELECT sqlite_version(*)
2572
+  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2573
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2574
+  (0.6ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2575
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2576
+  (0.7ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2577
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2578
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2579
+  (0.7ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2580
+  (0.8ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2581
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2582
+  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2583
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2584
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2585
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2586
+  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2587
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2588
+  (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)
2589
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2590
+ TRANSACTION (0.0ms) begin transaction
2591
+ 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:58:38.589343"], ["updated_at", "2020-12-22 20:58:38.589343"]]
2592
+ TRANSACTION (0.5ms) commit transaction
2593
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2594
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2595
+  (0.0ms) SELECT sqlite_version(*)
2596
+  (0.1ms) PRAGMA foreign_keys
2597
+  (0.0ms) PRAGMA defer_foreign_keys
2598
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2599
+  (0.0ms) PRAGMA foreign_keys = OFF
2600
+  (1.0ms) DELETE FROM "posts";
2601
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2602
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2603
+  (0.6ms) DELETE FROM "comments";
2604
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2605
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2606
+  (0.6ms) DELETE FROM "authors";
2607
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2608
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2609
+  (0.7ms) DELETE FROM "favorites";
2610
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2611
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2612
+  (0.5ms) DELETE FROM "collab_posts";
2613
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2614
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2615
+  (0.6ms) DELETE FROM "cards";
2616
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2617
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2618
+  (0.7ms) DELETE FROM "card_locations";
2619
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2620
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2621
+  (0.6ms) DELETE FROM "locations";
2622
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2623
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2624
+  (0.7ms) DELETE FROM "community_tickets";
2625
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2626
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2627
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2628
+  (0.0ms) PRAGMA foreign_keys = 1
2629
+ TRANSACTION (0.0ms) begin transaction
2630
+ TRANSACTION (0.0ms) rollback transaction
2631
+  (0.7ms) SELECT sqlite_version(*)
2632
+  (0.0ms) SELECT sqlite_version(*)
2633
+  (1.2ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2634
+  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2635
+  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2636
+  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2637
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2638
+  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2639
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2640
+  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2641
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2642
+  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2643
+  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2644
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2645
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2646
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2647
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2648
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2649
+  (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)
2650
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2651
+ TRANSACTION (0.0ms) begin transaction
2652
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-12-22 20:58:53.294919"], ["updated_at", "2020-12-22 20:58:53.294919"]]
2653
+ TRANSACTION (0.8ms) commit transaction
2654
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2655
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2656
+  (0.0ms) SELECT sqlite_version(*)
2657
+  (0.0ms) PRAGMA foreign_keys
2658
+  (0.0ms) PRAGMA defer_foreign_keys
2659
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2660
+  (0.0ms) PRAGMA foreign_keys = OFF
2661
+  (1.1ms) DELETE FROM "posts";
2662
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2663
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2664
+  (0.8ms) DELETE FROM "comments";
2665
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2666
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2667
+  (0.5ms) DELETE FROM "authors";
2668
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2669
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2670
+  (0.6ms) DELETE FROM "favorites";
2671
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2672
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2673
+  (0.5ms) DELETE FROM "collab_posts";
2674
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2675
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2676
+  (0.7ms) DELETE FROM "cards";
2677
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2678
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2679
+  (0.8ms) DELETE FROM "card_locations";
2680
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2681
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2682
+  (0.5ms) DELETE FROM "locations";
2683
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2684
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2685
+  (0.5ms) DELETE FROM "community_tickets";
2686
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2687
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2688
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2689
+  (0.0ms) PRAGMA foreign_keys = 1
2690
+ TRANSACTION (0.0ms) begin transaction
2691
+  (0.8ms) SELECT sqlite_version(*)
2692
+  (0.0ms) SELECT sqlite_version(*)
2693
+  (0.7ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2694
+  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2695
+  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2696
+  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2697
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2698
+  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2699
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2700
+  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2701
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2702
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2703
+  (0.7ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2704
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2705
+  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2706
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2707
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2708
+  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2709
+  (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)
2710
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2711
+ TRANSACTION (0.0ms) begin transaction
2712
+ 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 22:36:51.130711"], ["updated_at", "2020-12-22 22:36:51.130711"]]
2713
+ TRANSACTION (0.5ms) commit transaction
2714
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2715
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2716
+  (0.0ms) SELECT sqlite_version(*)
2717
+  (0.0ms) PRAGMA foreign_keys
2718
+  (0.0ms) PRAGMA defer_foreign_keys
2719
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2720
+  (0.0ms) PRAGMA foreign_keys = OFF
2721
+  (0.6ms) DELETE FROM "posts";
2722
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2723
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2724
+  (0.7ms) DELETE FROM "comments";
2725
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2726
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2727
+  (0.7ms) DELETE FROM "authors";
2728
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2729
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2730
+  (0.7ms) DELETE FROM "favorites";
2731
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2732
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2733
+  (0.6ms) DELETE FROM "collab_posts";
2734
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2735
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2736
+  (0.6ms) DELETE FROM "cards";
2737
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2738
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2739
+  (0.8ms) DELETE FROM "card_locations";
2740
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2741
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2742
+  (0.6ms) DELETE FROM "locations";
2743
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2744
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2745
+  (0.6ms) DELETE FROM "community_tickets";
2746
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2747
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2748
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2749
+  (0.0ms) PRAGMA foreign_keys = 1
2750
+ TRANSACTION (0.0ms) begin transaction
2751
+ TRANSACTION (0.0ms) rollback transaction
2752
+  (0.8ms) SELECT sqlite_version(*)
2753
+  (0.0ms) SELECT sqlite_version(*)
2754
+  (1.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2755
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2756
+  (0.6ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2757
+  (0.7ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2758
+  (1.1ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2759
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2760
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2761
+  (0.8ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2762
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2763
+  (0.6ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2764
+  (0.8ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2765
+  (0.5ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2766
+  (0.6ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2767
+  (0.7ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2768
+  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2769
+  (0.7ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2770
+  (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)
2771
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2772
+ TRANSACTION (0.1ms) begin transaction
2773
+ 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 22:37:07.780557"], ["updated_at", "2020-12-22 22:37:07.780557"]]
2774
+ TRANSACTION (0.7ms) commit transaction
2775
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2776
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2777
+  (0.0ms) SELECT sqlite_version(*)
2778
+  (0.1ms) PRAGMA foreign_keys
2779
+  (0.0ms) PRAGMA defer_foreign_keys
2780
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2781
+  (0.0ms) PRAGMA foreign_keys = OFF
2782
+  (1.1ms) DELETE FROM "posts";
2783
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2784
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2785
+  (0.6ms) DELETE FROM "comments";
2786
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2787
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2788
+  (0.7ms) DELETE FROM "authors";
2789
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2790
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2791
+  (0.6ms) DELETE FROM "favorites";
2792
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2793
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2794
+  (0.7ms) DELETE FROM "collab_posts";
2795
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2796
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2797
+  (0.6ms) DELETE FROM "cards";
2798
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2799
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2800
+  (0.5ms) DELETE FROM "card_locations";
2801
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2802
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2803
+  (0.5ms) DELETE FROM "locations";
2804
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2805
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2806
+  (0.6ms) DELETE FROM "community_tickets";
2807
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2808
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2809
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2810
+  (0.1ms) PRAGMA foreign_keys = 1
2811
+ TRANSACTION (0.0ms) begin transaction
2812
+ TRANSACTION (0.0ms) rollback transaction
2813
+ TRANSACTION (0.0ms) begin transaction
2814
+ TRANSACTION (0.0ms) rollback transaction
2815
+ TRANSACTION (0.0ms) begin transaction
2816
+ TRANSACTION (0.0ms) rollback transaction
2817
+ TRANSACTION (0.0ms) begin transaction
2818
+ TRANSACTION (0.0ms) rollback transaction
2819
+ TRANSACTION (0.0ms) begin transaction
2820
+ TRANSACTION (0.0ms) rollback transaction
2821
+ TRANSACTION (0.0ms) begin transaction
2822
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
2823
+ Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
2824
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
2825
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
2826
+ CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
2827
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
2828
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
2829
+ CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
2830
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
2831
+  (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"]]
2832
+ 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"]]
2833
+ TRANSACTION (0.3ms) rollback transaction
2834
+ TRANSACTION (0.0ms) begin transaction
2835
+ TRANSACTION (0.0ms) rollback transaction
2836
+  (0.8ms) SELECT sqlite_version(*)
2837
+  (0.1ms) SELECT sqlite_version(*)
2838
+  (1.1ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2839
+  (0.6ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2840
+  (1.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2841
+  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2842
+  (0.8ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2843
+  (0.8ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2844
+  (0.6ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2845
+  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2846
+  (0.7ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2847
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2848
+  (0.6ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2849
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2850
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2851
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2852
+  (0.6ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2853
+  (0.6ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2854
+  (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)
2855
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2856
+ TRANSACTION (0.0ms) begin transaction
2857
+ 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 22:37:20.452216"], ["updated_at", "2020-12-22 22:37:20.452216"]]
2858
+ TRANSACTION (0.5ms) commit transaction
2859
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2860
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2861
+  (0.0ms) SELECT sqlite_version(*)
2862
+  (0.0ms) PRAGMA foreign_keys
2863
+  (0.0ms) PRAGMA defer_foreign_keys
2864
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2865
+  (0.0ms) PRAGMA foreign_keys = OFF
2866
+  (0.9ms) DELETE FROM "posts";
2867
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2868
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2869
+  (0.6ms) DELETE FROM "comments";
2870
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2871
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2872
+  (0.6ms) DELETE FROM "authors";
2873
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2874
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2875
+  (0.9ms) DELETE FROM "favorites";
2876
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2877
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2878
+  (0.6ms) DELETE FROM "collab_posts";
2879
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2880
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2881
+  (0.7ms) DELETE FROM "cards";
2882
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2883
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2884
+  (0.6ms) DELETE FROM "card_locations";
2885
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2886
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2887
+  (0.5ms) DELETE FROM "locations";
2888
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2889
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2890
+  (0.5ms) DELETE FROM "community_tickets";
2891
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2892
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2893
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2894
+  (0.0ms) PRAGMA foreign_keys = 1
2895
+ TRANSACTION (0.0ms) begin transaction
2896
+  (0.8ms) SELECT sqlite_version(*)
2897
+  (0.0ms) SELECT sqlite_version(*)
2898
+  (0.8ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)
2899
+  (0.7ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2900
+  (0.7ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
2901
+  (0.6ms) CREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)
2902
+  (0.9ms) CREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")
2903
+  (0.9ms) CREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")
2904
+  (0.7ms) CREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)
2905
+  (0.6ms) CREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")
2906
+  (0.6ms) CREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)
2907
+  (0.7ms) CREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")
2908
+  (1.1ms) CREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2909
+  (0.6ms) CREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)
2910
+  (0.7ms) CREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")
2911
+  (0.6ms) CREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")
2912
+  (0.7ms) CREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2913
+  (0.8ms) CREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
2914
+  (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)
2915
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2916
+ TRANSACTION (0.0ms) begin transaction
2917
+ 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 22:41:15.035679"], ["updated_at", "2020-12-22 22:41:15.035679"]]
2918
+ TRANSACTION (0.6ms) commit transaction
2919
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2920
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2921
+  (0.1ms) SELECT sqlite_version(*)
2922
+  (0.0ms) PRAGMA foreign_keys
2923
+  (0.0ms) PRAGMA defer_foreign_keys
2924
+  (0.0ms) PRAGMA defer_foreign_keys = ON
2925
+  (0.0ms) PRAGMA foreign_keys = OFF
2926
+  (0.6ms) DELETE FROM "posts";
2927
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2928
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'posts';
2929
+  (0.6ms) DELETE FROM "comments";
2930
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2931
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'comments';
2932
+  (0.6ms) DELETE FROM "authors";
2933
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2934
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'authors';
2935
+  (0.5ms) DELETE FROM "favorites";
2936
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2937
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'favorites';
2938
+  (0.5ms) DELETE FROM "collab_posts";
2939
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2940
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'collab_posts';
2941
+  (0.6ms) DELETE FROM "cards";
2942
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2943
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cards';
2944
+  (0.6ms) DELETE FROM "card_locations";
2945
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2946
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'card_locations';
2947
+  (0.5ms) DELETE FROM "locations";
2948
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2949
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'locations';
2950
+  (0.6ms) DELETE FROM "community_tickets";
2951
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2952
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'community_tickets';
2953
+  (0.0ms) PRAGMA defer_foreign_keys = 0
2954
+  (0.0ms) PRAGMA foreign_keys = 1
2955
+ TRANSACTION (0.0ms) begin transaction
2956
+ TRANSACTION (0.0ms) rollback transaction
2957
+ TRANSACTION (0.0ms) begin transaction
2958
+ TRANSACTION (0.0ms) rollback transaction
2959
+ TRANSACTION (0.0ms) begin transaction
2960
+ TRANSACTION (0.0ms) rollback transaction
2961
+ TRANSACTION (0.0ms) begin transaction
2962
+ TRANSACTION (0.0ms) rollback transaction
2963
+ TRANSACTION (0.0ms) begin transaction
2964
+ TRANSACTION (0.0ms) rollback transaction
2965
+ TRANSACTION (0.0ms) begin transaction
2966
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
2967
+ Location Create (0.3ms) INSERT INTO "locations" DEFAULT VALUES
2968
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
2969
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
2970
+ CommunityTicket Create (0.1ms) INSERT INTO "community_tickets" DEFAULT VALUES
2971
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
2972
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
2973
+ CardLocation Create (0.1ms) INSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?) [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
2974
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
2975
+  (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"]]
2976
+ 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"]]
2977
+ TRANSACTION (0.3ms) rollback transaction
2978
+ TRANSACTION (0.0ms) begin transaction
2979
+ TRANSACTION (0.0ms) rollback transaction