arel-helpers 2.13.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/arel-helpers.gemspec +5 -4
- data/lib/arel-helpers/join_association.rb +30 -1
- data/lib/arel-helpers/version.rb +1 -1
- data/spec/query_builder_spec.rb +3 -0
- metadata +13 -16
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/db/schema.rb +0 -34
- data/spec/internal/log/test.log +0 -530
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1efc47376ccbcdad46e62a6065618121a0335003227ab3bfb9edc504094e6f44
|
4
|
+
data.tar.gz: 5b18eb15dc5ae7123b74a89360771568cd5b2e1ac5ce592e872c29dc3ed9c5a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee579a6df63b01c485c40e46574d24852f4cd95c546168dcaa58a527d6fd35cfe8de3d3dc33f428b7087abf7ec5da9c510fec2575ab3bb52f685c54c7e17541
|
7
|
+
data.tar.gz: ab160a5fbc698c823804a3caf55ca3f921512aa3b7892bef9871e20e579419fc879d84dfba41c03cc60a867e6f2c7c957aa1d0d21b3fc343681781bf46f794ae
|
data/README.md
CHANGED
@@ -215,7 +215,7 @@ This can become repetitive, and as an alternative you can choose to prepend `not
|
|
215
215
|
|
216
216
|
## Requirements
|
217
217
|
|
218
|
-
Requires ActiveRecord >= 3.1.0, <
|
218
|
+
Requires ActiveRecord >= 3.1.0, < 8. Depends on SQLite for testing purposes.
|
219
219
|
|
220
220
|
## Running Tests
|
221
221
|
|
data/arel-helpers.gemspec
CHANGED
@@ -12,15 +12,16 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.platform = Gem::Platform::RUBY
|
14
14
|
|
15
|
-
s.add_dependency 'activerecord', '>= 3.1.0', '<
|
15
|
+
s.add_dependency 'activerecord', '>= 3.1.0', '< 8'
|
16
16
|
|
17
17
|
s.add_development_dependency 'appraisal'
|
18
18
|
s.add_development_dependency 'combustion', '~> 1.3'
|
19
|
-
s.add_development_dependency 'database_cleaner', '~>
|
20
|
-
s.add_development_dependency 'rake'
|
19
|
+
s.add_development_dependency 'database_cleaner', '~> 2.0'
|
20
|
+
s.add_development_dependency 'rake'
|
21
21
|
s.add_development_dependency 'rspec', '~> 3'
|
22
|
-
s.add_development_dependency 'sqlite3', '~> 1.4
|
22
|
+
s.add_development_dependency 'sqlite3', '~> 1.4'
|
23
23
|
|
24
24
|
s.require_path = 'lib'
|
25
25
|
s.files = Dir['{lib,spec}/**/*', 'Gemfile', 'History.txt', 'README.md', 'Rakefile', 'arel-helpers.gemspec']
|
26
|
+
s.files -= Dir['spec/internal/log', 'spec/internal/log/**/*', 'spec/internal/db', 'spec/internal/db/**/*']
|
26
27
|
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 >=
|
21
|
+
if version >= "7.2.0"
|
22
|
+
join_association_7_2_0(table, association, join_type, options, &block)
|
23
|
+
elsif version >= '6.1.0'
|
22
24
|
join_association_6_1_0(table, association, join_type, options, &block)
|
23
25
|
elsif version >= '6.0.0'
|
24
26
|
join_association_6_0_0(table, association, join_type, options, &block)
|
@@ -262,6 +264,33 @@ module ArelHelpers
|
|
262
264
|
end
|
263
265
|
end
|
264
266
|
|
267
|
+
def join_association_7_2_0(table, association, join_type, options = {})
|
268
|
+
aliases = options.fetch(:aliases, []).index_by(&:table_name)
|
269
|
+
associations = association.is_a?(Array) ? association : [association]
|
270
|
+
|
271
|
+
alias_tracker = ActiveRecord::Associations::AliasTracker.create(
|
272
|
+
table.connection_pool, table.name, {}
|
273
|
+
)
|
274
|
+
|
275
|
+
join_dependency = ActiveRecord::Associations::JoinDependency.new(
|
276
|
+
table, table.arel_table, associations, join_type
|
277
|
+
)
|
278
|
+
|
279
|
+
constraints = join_dependency.join_constraints([], alias_tracker, [])
|
280
|
+
|
281
|
+
constraints.map do |join|
|
282
|
+
apply_aliases(join, aliases)
|
283
|
+
|
284
|
+
right = if block_given?
|
285
|
+
yield join.left.name.to_sym, join.right
|
286
|
+
else
|
287
|
+
join.right
|
288
|
+
end
|
289
|
+
|
290
|
+
join_type.new(join.left, right)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
265
294
|
def apply_aliases(node, aliases)
|
266
295
|
case node
|
267
296
|
when Arel::Nodes::Join
|
data/lib/arel-helpers/version.rb
CHANGED
data/spec/query_builder_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arel-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 3.1.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 3.1.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: appraisal
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,28 +64,28 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '2.0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '2.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rake
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rspec
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.4
|
109
|
+
version: '1.4'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: 1.4
|
116
|
+
version: '1.4'
|
117
117
|
description: Useful tools to help construct database queries with ActiveRecord and
|
118
118
|
Arel.
|
119
119
|
email:
|
@@ -137,9 +137,6 @@ files:
|
|
137
137
|
- spec/arel_table_spec.rb
|
138
138
|
- spec/env/models.rb
|
139
139
|
- spec/internal/config/database.yml
|
140
|
-
- spec/internal/db/combustion_test.sqlite
|
141
|
-
- spec/internal/db/schema.rb
|
142
|
-
- spec/internal/log/test.log
|
143
140
|
- spec/join_association_spec.rb
|
144
141
|
- spec/query_builder_spec.rb
|
145
142
|
- spec/spec_helper.rb
|
@@ -162,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
159
|
- !ruby/object:Gem::Version
|
163
160
|
version: '0'
|
164
161
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
162
|
+
rubygems_version: 3.5.3
|
166
163
|
signing_key:
|
167
164
|
specification_version: 4
|
168
165
|
summary: Useful tools to help construct database queries with ActiveRecord and Arel.
|
Binary file
|
data/spec/internal/db/schema.rb
DELETED
@@ -1,34 +0,0 @@
|
|
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
|
data/spec/internal/log/test.log
DELETED
@@ -1,530 +0,0 @@
|
|
1
|
-
[1m[35m (1.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)[0m
|
4
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
5
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
6
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)[0m
|
7
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")[0m
|
8
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")[0m
|
9
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
10
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")[0m
|
11
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)[0m
|
12
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")[0m
|
13
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
14
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)[0m
|
15
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")[0m
|
16
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")[0m
|
17
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
18
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
19
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
20
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
21
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
22
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-08-26 17:33:23.741476"], ["updated_at", "2021-08-26 17:33:23.741476"]]
|
23
|
-
[1m[36mTRANSACTION (0.9ms)[0m [1m[36mcommit transaction[0m
|
24
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
25
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
26
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
27
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
28
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
29
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
30
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
31
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM "posts";[0m
|
32
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
33
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'posts';[0m
|
34
|
-
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM "comments";[0m
|
35
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
36
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'comments';[0m
|
37
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM "authors";[0m
|
38
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
39
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'authors';[0m
|
40
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "favorites";[0m
|
41
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
42
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'favorites';[0m
|
43
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "collab_posts";[0m
|
44
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
45
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'collab_posts';[0m
|
46
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM "cards";[0m
|
47
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
48
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'cards';[0m
|
49
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "card_locations";[0m
|
50
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
51
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'card_locations';[0m
|
52
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM "locations";[0m
|
53
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
54
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'locations';[0m
|
55
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "community_tickets";[0m
|
56
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
57
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'community_tickets';[0m
|
58
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
59
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
60
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
61
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
63
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64
|
-
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
65
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
66
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
67
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
68
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
69
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
70
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
71
|
-
[1m[36mComment Create (0.2ms)[0m [1m[32mINSERT INTO "comments" ("post_id") VALUES (?)[0m [["post_id", 1]]
|
72
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
73
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
74
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
75
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
76
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
77
|
-
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
78
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
79
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "foo"]]
|
80
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
81
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
82
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
83
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
84
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
85
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
86
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
87
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
88
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
89
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
90
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
91
|
-
[1m[36mLocation Create (0.4ms)[0m [1m[32mINSERT INTO "locations" DEFAULT VALUES[0m
|
92
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
93
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
94
|
-
[1m[36mCommunityTicket Create (0.1ms)[0m [1m[32mINSERT INTO "community_tickets" DEFAULT VALUES[0m
|
95
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
96
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97
|
-
[1m[36mCardLocation Create (0.3ms)[0m [1m[32mINSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?)[0m [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
|
98
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT 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"[0m [["card_type", "CommunityTicket"]]
|
100
|
-
[1m[36mLocation Load (0.1ms)[0m [1m[34mSELECT "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"[0m [["card_type", "CommunityTicket"]]
|
101
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
102
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
103
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
104
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
105
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
106
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
107
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
108
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
109
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
110
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
111
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
112
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
113
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
114
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
115
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
116
|
-
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
117
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
118
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
119
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
120
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
121
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
122
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
123
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
124
|
-
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
125
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
126
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
127
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
128
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
129
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
130
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
131
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
132
|
-
[1m[35m (1.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
133
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
134
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)[0m
|
135
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
136
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
137
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)[0m
|
138
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")[0m
|
139
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")[0m
|
140
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
141
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")[0m
|
142
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)[0m
|
143
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")[0m
|
144
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
145
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)[0m
|
146
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")[0m
|
147
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")[0m
|
148
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
149
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
150
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
151
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
152
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
153
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-08-26 17:55:10.184260"], ["updated_at", "2021-08-26 17:55:10.184260"]]
|
154
|
-
[1m[36mTRANSACTION (1.0ms)[0m [1m[36mcommit transaction[0m
|
155
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
156
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
157
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
158
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
159
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
160
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
161
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
162
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM "posts";[0m
|
163
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
164
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'posts';[0m
|
165
|
-
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM "comments";[0m
|
166
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
167
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'comments';[0m
|
168
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM "authors";[0m
|
169
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
170
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'authors';[0m
|
171
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "favorites";[0m
|
172
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
173
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'favorites';[0m
|
174
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM "collab_posts";[0m
|
175
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
176
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'collab_posts';[0m
|
177
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "cards";[0m
|
178
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
179
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'cards';[0m
|
180
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "card_locations";[0m
|
181
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
182
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'card_locations';[0m
|
183
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "locations";[0m
|
184
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
185
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'locations';[0m
|
186
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "community_tickets";[0m
|
187
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
188
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'community_tickets';[0m
|
189
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
190
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
191
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
192
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
193
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
194
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
195
|
-
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
196
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
197
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
198
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
199
|
-
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
200
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
201
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
202
|
-
[1m[36mComment Create (0.2ms)[0m [1m[32mINSERT INTO "comments" ("post_id") VALUES (?)[0m [["post_id", 1]]
|
203
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
204
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
205
|
-
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
206
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
207
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
208
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
209
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
210
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "foo"]]
|
211
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
212
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
213
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
214
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
215
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
216
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
217
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
218
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
219
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
220
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
221
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
222
|
-
[1m[36mLocation Create (0.4ms)[0m [1m[32mINSERT INTO "locations" DEFAULT VALUES[0m
|
223
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
224
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
225
|
-
[1m[36mCommunityTicket Create (0.1ms)[0m [1m[32mINSERT INTO "community_tickets" DEFAULT VALUES[0m
|
226
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
227
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
228
|
-
[1m[36mCardLocation Create (0.2ms)[0m [1m[32mINSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?)[0m [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
|
229
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
230
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT 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"[0m [["card_type", "CommunityTicket"]]
|
231
|
-
[1m[36mLocation Load (0.1ms)[0m [1m[34mSELECT "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"[0m [["card_type", "CommunityTicket"]]
|
232
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
233
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
234
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
235
|
-
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
236
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
237
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
238
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
239
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
240
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
241
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
242
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
243
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
244
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
245
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
246
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
247
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
248
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
249
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
250
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
251
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
252
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
253
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
254
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
255
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
256
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
257
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
258
|
-
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
259
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
260
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
261
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
262
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
263
|
-
[1m[35m (1.5ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
264
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
265
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)[0m
|
266
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
267
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
268
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)[0m
|
269
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")[0m
|
270
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")[0m
|
271
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
272
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")[0m
|
273
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)[0m
|
274
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")[0m
|
275
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
276
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)[0m
|
277
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")[0m
|
278
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")[0m
|
279
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
280
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
281
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
282
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
283
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
284
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-08-26 17:57:07.842116"], ["updated_at", "2021-08-26 17:57:07.842116"]]
|
285
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
286
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
287
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
288
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
289
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
290
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
291
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
292
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
293
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM "posts";[0m
|
294
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
295
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'posts';[0m
|
296
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "comments";[0m
|
297
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'comments';[0m
|
299
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "authors";[0m
|
300
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
301
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'authors';[0m
|
302
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "favorites";[0m
|
303
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
304
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'favorites';[0m
|
305
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM "collab_posts";[0m
|
306
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
307
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'collab_posts';[0m
|
308
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "cards";[0m
|
309
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
310
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'cards';[0m
|
311
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "card_locations";[0m
|
312
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
313
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'card_locations';[0m
|
314
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM "locations";[0m
|
315
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
316
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'locations';[0m
|
317
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "community_tickets";[0m
|
318
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
319
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'community_tickets';[0m
|
320
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
321
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
322
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
323
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
324
|
-
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
325
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
326
|
-
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
327
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
328
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
329
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
330
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
331
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
332
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
333
|
-
[1m[36mComment Create (0.2ms)[0m [1m[32mINSERT INTO "comments" ("post_id") VALUES (?)[0m [["post_id", 1]]
|
334
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
335
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
336
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
337
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
338
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
339
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
340
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
341
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "foo"]]
|
342
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
343
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
344
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
345
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
346
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
347
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
348
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
349
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
350
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
351
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
352
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
353
|
-
[1m[36mLocation Create (0.4ms)[0m [1m[32mINSERT INTO "locations" DEFAULT VALUES[0m
|
354
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
355
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
356
|
-
[1m[36mCommunityTicket Create (0.1ms)[0m [1m[32mINSERT INTO "community_tickets" DEFAULT VALUES[0m
|
357
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
358
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
359
|
-
[1m[36mCardLocation Create (0.3ms)[0m [1m[32mINSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?)[0m [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
|
360
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
361
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT 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"[0m [["card_type", "CommunityTicket"]]
|
362
|
-
[1m[36mLocation Load (0.1ms)[0m [1m[34mSELECT "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"[0m [["card_type", "CommunityTicket"]]
|
363
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
364
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
365
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
366
|
-
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
367
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
368
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
369
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
370
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
371
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
372
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
373
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
374
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
375
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
376
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
377
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
378
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
379
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
380
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
381
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
382
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
383
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
384
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
385
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
386
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
387
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
388
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
389
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
390
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
391
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
392
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
393
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
394
|
-
[1m[35m (1.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
395
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
396
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar)[0m
|
397
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
398
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
399
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "authors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "comment_id" integer, "collab_posts_id" integer)[0m
|
400
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_authors_on_comment_id" ON "authors" ("comment_id")[0m
|
401
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_authors_on_collab_posts_id" ON "authors" ("collab_posts_id")[0m
|
402
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "favorites" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer)[0m
|
403
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_favorites_on_post_id" ON "favorites" ("post_id")[0m
|
404
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "collab_posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "authors_id" integer)[0m
|
405
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_collab_posts_on_authors_id" ON "collab_posts" ("authors_id")[0m
|
406
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "cards" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
407
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "card_locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer, "card_type" varchar, "card_id" integer)[0m
|
408
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_location_id" ON "card_locations" ("location_id")[0m
|
409
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_card_locations_on_card" ON "card_locations" ("card_type", "card_id")[0m
|
410
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
411
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "community_tickets" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
412
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
413
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
414
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
415
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-12-06 21:11:29.100377"], ["updated_at", "2021-12-06 21:11:29.100377"]]
|
416
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
417
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
418
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
419
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
420
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
421
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
422
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
423
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
424
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "posts";[0m
|
425
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
426
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'posts';[0m
|
427
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "comments";[0m
|
428
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
429
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'comments';[0m
|
430
|
-
[1m[35m (1.7ms)[0m [1m[31mDELETE FROM "authors";[0m
|
431
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
432
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'authors';[0m
|
433
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM "favorites";[0m
|
434
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
435
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'favorites';[0m
|
436
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM "collab_posts";[0m
|
437
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
438
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'collab_posts';[0m
|
439
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM "cards";[0m
|
440
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
441
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'cards';[0m
|
442
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM "card_locations";[0m
|
443
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
444
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'card_locations';[0m
|
445
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM "locations";[0m
|
446
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
447
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'locations';[0m
|
448
|
-
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM "community_tickets";[0m
|
449
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
450
|
-
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'community_tickets';[0m
|
451
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
452
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
453
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
454
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
455
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
456
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
457
|
-
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
458
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
459
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
460
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
461
|
-
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "I'm a little teapot"]]
|
462
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
463
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
464
|
-
[1m[36mComment Create (0.2ms)[0m [1m[32mINSERT INTO "comments" ("post_id") VALUES (?)[0m [["post_id", 1]]
|
465
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
466
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
467
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
468
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
469
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
470
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
471
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
472
|
-
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "foo"]]
|
473
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
474
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
475
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
476
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
477
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
478
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
479
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
480
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
481
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
482
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
483
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
484
|
-
[1m[36mLocation Create (0.4ms)[0m [1m[32mINSERT INTO "locations" DEFAULT VALUES[0m
|
485
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
486
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
487
|
-
[1m[36mCommunityTicket Create (0.2ms)[0m [1m[32mINSERT INTO "community_tickets" DEFAULT VALUES[0m
|
488
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
489
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
490
|
-
[1m[36mCardLocation Create (0.3ms)[0m [1m[32mINSERT INTO "card_locations" ("location_id", "card_type", "card_id") VALUES (?, ?, ?)[0m [["location_id", 1], ["card_type", "CommunityTicket"], ["card_id", 1]]
|
491
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
492
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT 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"[0m [["card_type", "CommunityTicket"]]
|
493
|
-
[1m[36mLocation Load (0.4ms)[0m [1m[34mSELECT "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"[0m [["card_type", "CommunityTicket"]]
|
494
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
495
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
496
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
497
|
-
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
498
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
499
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
500
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
501
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
502
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
503
|
-
[1m[36mPost Create (0.7ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
504
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
505
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
506
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
507
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
508
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
509
|
-
[1m[36mPost Create (0.7ms)[0m [1m[32mINSERT INTO "posts" ("title") VALUES (?)[0m [["title", "Foobar"]]
|
510
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
511
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
512
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
513
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
514
|
-
[1m[36mPost Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "posts" LIMIT ?[0m [["LIMIT", 1]]
|
515
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
516
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
517
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
518
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
519
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
520
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
521
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
522
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
523
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
524
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
525
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
526
|
-
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
527
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
528
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
529
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
530
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|