active_snapshot 0.2.1 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/README.md +2 -2
- data/lib/active_snapshot/models/concerns/snapshots_concern.rb +3 -4
- data/lib/active_snapshot/models/snapshot.rb +8 -2
- data/lib/active_snapshot/models/snapshot_item.rb +7 -1
- data/lib/active_snapshot/version.rb +1 -1
- data/lib/generators/active_snapshot/install/templates/create_snapshots_tables.rb.erb +1 -1
- data/test/dummy_app/app/models/parent_without_children.rb +5 -0
- data/test/dummy_app/app/models/post.rb +1 -0
- data/test/dummy_app/app/models/sub_post.rb +11 -0
- data/test/dummy_app/config/application.rb +0 -8
- data/test/dummy_app/db/test.sqlite3 +0 -0
- data/test/dummy_app/log/test.log +2803 -805
- data/test/models/snapshot_test.rb +31 -0
- data/test/models/snapshots_concern_test.rb +1 -3
- data/test/test_helper.rb +1 -1
- metadata +35 -35
- data/test/dummy_app/config/environments/development.rb +0 -30
- data/test/dummy_app/config/environments/production.rb +0 -60
data/test/dummy_app/log/test.log
CHANGED
@@ -1,46 +1,88 @@
|
|
1
|
-
[1m[35m (1.
|
2
|
-
[1m[35m (1.
|
1
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3
3
|
[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
|
4
|
-
[1m[
|
4
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
5
5
|
Migrating to SetUpTestTables (20210128155312)
|
6
6
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
7
|
-
[1m[35m (0.
|
7
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "a" integer, "b" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
8
8
|
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "post_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
9
9
|
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
10
10
|
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "notes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "post_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
11
11
|
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_notes_on_post_id" ON "notes" ("post_id")[0m
|
12
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.
|
13
|
-
[1m[36mTRANSACTION (0.
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20210128155312"]]
|
13
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
14
14
|
Migrating to CreateSnapshotsTables (20210306100122)
|
15
|
-
[1m[36mTRANSACTION (0.
|
16
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "snapshots" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "identifier" varchar NOT NULL, "user_type" varchar, "user_id" integer, "metadata" text, "created_at" datetime NOT NULL)[0m
|
15
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
16
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "snapshots" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "identifier" varchar NOT NULL, "user_type" varchar, "user_id" integer, "metadata" text, "created_at" datetime(6) NOT NULL)[0m
|
17
17
|
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_snapshots_on_item" ON "snapshots" ("item_type", "item_id")[0m
|
18
18
|
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_snapshots_on_identifier" ON "snapshots" ("identifier")[0m
|
19
19
|
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_snapshots_on_user" ON "snapshots" ("user_type", "user_id")[0m
|
20
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "snapshot_items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "snapshot_id" integer NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "object" text NOT NULL, "created_at" datetime NOT NULL, "child_group_name" varchar)[0m
|
20
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "snapshot_items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "snapshot_id" integer NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "object" text NOT NULL, "created_at" datetime(6) NOT NULL, "child_group_name" varchar)[0m
|
21
21
|
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_snapshot_items_on_snapshot_id" ON "snapshot_items" ("snapshot_id")[0m
|
22
22
|
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_snapshot_items_on_item" ON "snapshot_items" ("item_type", "item_id")[0m
|
23
23
|
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20210306100122"]]
|
24
|
-
[1m[36mTRANSACTION (0.
|
25
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
24
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
25
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
26
26
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
27
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.
|
27
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2022-02-25 19:12:04.897521"], ["updated_at", "2022-02-25 19:12:04.897521"]]
|
28
28
|
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
29
|
-
[1m[35m (
|
29
|
+
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM posts;[0m
|
30
30
|
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
31
|
-
[1m[35m (0.
|
31
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
32
32
|
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
33
|
-
[1m[35m (0.
|
33
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
34
34
|
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
35
|
-
[1m[36mPost Load (0.
|
35
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
36
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
37
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:12:04.909679"], ["updated_at", "2022-02-25 19:12:04.909679"]]
|
38
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
36
39
|
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
37
|
-
[1m[
|
40
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
41
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:12:04.928557"]]
|
42
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
43
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
45
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
46
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
47
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
48
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
49
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
50
|
+
[1m[35m (6.6ms)[0m [1m[31mDELETE FROM posts;[0m
|
51
|
+
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
52
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
53
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
54
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
55
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
56
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
57
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
58
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:12:12.893690"], ["updated_at", "2022-02-25 19:12:12.893690"]]
|
59
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
60
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
61
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
62
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:12:12.908543"]]
|
38
63
|
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
64
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
66
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
67
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
68
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
69
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
70
|
+
[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]]
|
71
|
+
[1m[35m (6.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
72
|
+
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
73
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
74
|
+
[1m[35m (0.7ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
75
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
76
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
77
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
39
78
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
79
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:13:03.860645"], ["updated_at", "2022-02-25 19:13:03.860645"]]
|
80
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
81
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
40
82
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
41
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "
|
42
|
-
[1m[36mTRANSACTION (
|
43
|
-
[1m[36mPost Load (0.
|
83
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:13:03.875638"]]
|
84
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
85
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
44
86
|
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
45
87
|
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
46
88
|
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
@@ -50,21 +92,21 @@ id: 1
|
|
50
92
|
a: 1
|
51
93
|
b: 3
|
52
94
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
53
|
-
utc: &1
|
95
|
+
utc: &1 2022-02-25 19:13:03.860645000 Z
|
54
96
|
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
55
97
|
name: Etc/UTC
|
56
|
-
time:
|
98
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
57
99
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
58
100
|
utc: *1
|
59
101
|
zone: *2
|
60
|
-
time:
|
61
|
-
','
|
62
|
-
[1m[36mTRANSACTION (0.
|
102
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
103
|
+
','2022-02-25 19:13:03.893865',NULL)[0m
|
104
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
63
105
|
[1m[36mPost Update (0.8ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
64
106
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
65
107
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
66
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "
|
67
|
-
[1m[36mTRANSACTION (0.
|
108
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:13:03.898486"]]
|
109
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
68
110
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
69
111
|
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
70
112
|
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
@@ -74,17 +116,52 @@ id: 1
|
|
74
116
|
a: 2
|
75
117
|
b: 4
|
76
118
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
77
|
-
utc: &1
|
119
|
+
utc: &1 2022-02-25 19:13:03.860645000 Z
|
78
120
|
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
79
121
|
name: Etc/UTC
|
80
|
-
time:
|
122
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
81
123
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
82
124
|
utc: *1
|
83
125
|
zone: *2
|
84
|
-
time:
|
85
|
-
','
|
86
|
-
[1m[36mTRANSACTION (0.
|
126
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
127
|
+
','2022-02-25 19:13:03.902588',NULL)[0m
|
128
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
87
129
|
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
130
|
+
-----------------------------
|
131
|
+
SnapshotItemTest: test_object
|
132
|
+
-----------------------------
|
133
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.3ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
134
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
135
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
136
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
137
|
+
------------------------------------
|
138
|
+
SnapshotItemTest: test_restore_item!
|
139
|
+
------------------------------------
|
140
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
141
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
142
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
143
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
144
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
145
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
146
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
147
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
148
|
+
----------------------------------
|
149
|
+
SnapshotItemTest: test_validations
|
150
|
+
----------------------------------
|
151
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
152
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
153
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
154
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
155
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
156
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
157
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
158
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
159
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
160
|
+
------------------------------------
|
161
|
+
SnapshotItemTest: test_relationships
|
162
|
+
------------------------------------
|
163
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
164
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
88
165
|
--------------------------------------------
|
89
166
|
ActiveSnapshotTest: test_exposes_main_module
|
90
167
|
--------------------------------------------
|
@@ -93,122 +170,194 @@ ActiveSnapshotTest: test_exposes_main_module
|
|
93
170
|
----------------------------------------
|
94
171
|
ActiveSnapshotTest: test_exposes_version
|
95
172
|
----------------------------------------
|
96
|
-
[1m[36mTRANSACTION (0.
|
173
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
97
174
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
98
175
|
-------------------------------------------
|
99
176
|
ActiveSnapshotTest: test_snapshot_lifecycle
|
100
177
|
-------------------------------------------
|
101
178
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
102
|
-
[1m[36mTRANSACTION (0.
|
103
|
-
[1m[36mComment Create (0.
|
179
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
180
|
+
[1m[36mComment Create (0.4ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:13:03.964212"], ["updated_at", "2022-02-25 19:13:03.964212"]]
|
104
181
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
105
|
-
[1m[
|
106
|
-
[1m[
|
107
|
-
[1m[36mTRANSACTION (0.
|
182
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
183
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
184
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
108
185
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
109
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "
|
186
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:13:03.968271"]]
|
110
187
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
111
188
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
112
|
-
[1m[36mComment Load (0.
|
189
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
113
190
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
114
191
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
115
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.
|
192
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
116
193
|
id: 1
|
117
194
|
a: 2
|
118
195
|
b: 4
|
119
196
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
120
|
-
utc:
|
197
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
121
198
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
122
199
|
name: Etc/UTC
|
123
|
-
time:
|
200
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
124
201
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
125
|
-
utc:
|
202
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
126
203
|
zone: *1
|
127
|
-
time:
|
128
|
-
','
|
204
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
205
|
+
','2022-02-25 19:13:03.972211',NULL),(NULL,3,'Comment',1,'---
|
129
206
|
id: 1
|
130
207
|
content: foo
|
131
208
|
post_id: 1
|
132
209
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
133
|
-
utc:
|
210
|
+
utc: 2022-02-25 19:13:03.964212000 Z
|
134
211
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
135
212
|
name: Etc/UTC
|
136
|
-
time:
|
213
|
+
time: 2022-02-25 19:13:03.964212000 Z
|
137
214
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
138
|
-
utc:
|
215
|
+
utc: 2022-02-25 19:13:03.964212000 Z
|
139
216
|
zone: *1
|
140
|
-
time:
|
141
|
-
','
|
217
|
+
time: 2022-02-25 19:13:03.964212000 Z
|
218
|
+
','2022-02-25 19:13:03.972211','comments')[0m
|
142
219
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
143
|
-
[1m[
|
144
|
-
[1m[
|
145
|
-
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "
|
146
|
-
[1m[36mPost Update (0.
|
220
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
221
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
222
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:13:03.973406"], ["id", 1]]
|
223
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:13:03.973883"], ["id", 1]]
|
147
224
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
148
225
|
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
149
226
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
150
227
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
151
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "
|
152
|
-
[1m[36mTRANSACTION (0.
|
228
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:13:03.975029"], ["updated_at", "2022-02-25 19:13:03.975029"]]
|
229
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
153
230
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
154
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "
|
231
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:13:03.975912"], ["updated_at", "2022-02-25 19:13:03.975912"]]
|
155
232
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
156
|
-
[1m[
|
157
|
-
[1m[
|
233
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
234
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
158
235
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
159
236
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
160
237
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
161
238
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
162
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.
|
239
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
163
240
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
164
241
|
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
165
242
|
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
166
243
|
[1m[36mComment Destroy (0.0ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
167
|
-
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "
|
168
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "
|
244
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:13:03.860645"], ["id", 1]]
|
245
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:13:03.964212"], ["updated_at", "2022-02-25 19:13:03.964212"]]
|
169
246
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
170
|
-
[1m[
|
171
|
-
[1m[
|
172
|
-
[1m[
|
247
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
248
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
249
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
173
250
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
174
251
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
175
252
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
176
|
-
[1m[36mNote Load (0.
|
177
|
-
[1m[
|
253
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
254
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
178
255
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
179
256
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
180
257
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
181
|
-
[1m[36mTRANSACTION (0.
|
258
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
259
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
260
|
+
--------------------------------
|
261
|
+
SnapshotTest: test_relationships
|
262
|
+
--------------------------------
|
263
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
264
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
265
|
+
--------------------------------------
|
266
|
+
SnapshotTest: test_fetch_reified_items
|
267
|
+
--------------------------------------
|
268
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
269
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
270
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
271
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
272
|
+
-----------------------------------------------------
|
273
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
274
|
+
-----------------------------------------------------
|
275
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
276
|
+
[1m[36mSubPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:13:03.995905"], ["updated_at", "2022-02-25 19:13:03.995905"]]
|
277
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
278
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
279
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:13:03.998326"], ["updated_at", "2022-02-25 19:13:03.998326"]]
|
280
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
281
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
282
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
283
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:13:04.000765"]]
|
284
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
285
|
+
[1m[36mSubPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
286
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
287
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
288
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
289
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
290
|
+
id: 2
|
291
|
+
a: 1
|
292
|
+
b: 2
|
293
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
294
|
+
utc: &1 2022-02-25 19:13:03.995905000 Z
|
295
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
296
|
+
name: Etc/UTC
|
297
|
+
time: 2022-02-25 19:13:03.995905000 Z
|
298
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
299
|
+
utc: *1
|
300
|
+
zone: *2
|
301
|
+
time: 2022-02-25 19:13:03.995905000 Z
|
302
|
+
','2022-02-25 19:13:04.004888',NULL),(NULL,3,'Comment',1,'---
|
303
|
+
id: 1
|
304
|
+
content: Example comment
|
305
|
+
post_id: 2
|
306
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
307
|
+
utc: 2022-02-25 19:13:03.998326000 Z
|
308
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
309
|
+
name: Etc/UTC
|
310
|
+
time: 2022-02-25 19:13:03.998326000 Z
|
311
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
312
|
+
utc: 2022-02-25 19:13:03.998326000 Z
|
313
|
+
zone: *1
|
314
|
+
time: 2022-02-25 19:13:03.998326000 Z
|
315
|
+
','2022-02-25 19:13:04.004888','comments')[0m
|
316
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
317
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
318
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
319
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
320
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
321
|
+
---------------------------
|
322
|
+
SnapshotTest: test_metadata
|
323
|
+
---------------------------
|
324
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
325
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
326
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
327
|
+
--------------------------------------
|
328
|
+
SnapshotTest: test_build_snapshot_item
|
329
|
+
--------------------------------------
|
330
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
331
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
332
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
333
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
182
334
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
183
335
|
--------------------------
|
184
336
|
SnapshotTest: test_restore
|
185
337
|
--------------------------
|
186
338
|
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
187
|
-
[1m[36mTRANSACTION (0.
|
339
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
188
340
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
189
341
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
190
342
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
191
343
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
192
344
|
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
193
345
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
194
|
-
[1m[36mPost Update (0.
|
346
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
195
347
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
196
|
-
[1m[36mTRANSACTION (0.
|
348
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
197
349
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
198
|
-
|
199
|
-
SnapshotTest:
|
200
|
-
|
201
|
-
[1m[
|
202
|
-
[1m[
|
203
|
-
[1m[
|
204
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[
|
205
|
-
[1m[
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
210
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
211
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
350
|
+
----------------------------------------------------------
|
351
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
352
|
+
----------------------------------------------------------
|
353
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
354
|
+
[1m[36mParentWithoutChildren Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:13:04.021808"], ["updated_at", "2022-02-25 19:13:04.021808"]]
|
355
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
356
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
357
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
358
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:13:04.024515"]]
|
359
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
360
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
212
361
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
213
362
|
------------------------------
|
214
363
|
SnapshotTest: test_validations
|
@@ -219,56 +368,12 @@ SnapshotTest: test_validations
|
|
219
368
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
220
369
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
221
370
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
222
|
-
---------------------------
|
223
|
-
SnapshotTest: test_metadata
|
224
|
-
---------------------------
|
225
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
226
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
227
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
228
|
-
--------------------------------
|
229
|
-
SnapshotTest: test_relationships
|
230
|
-
--------------------------------
|
231
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
232
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
233
|
-
------------------------------------
|
234
|
-
SnapshotItemTest: test_relationships
|
235
|
-
------------------------------------
|
236
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
237
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
238
|
-
----------------------------------
|
239
|
-
SnapshotItemTest: test_validations
|
240
|
-
----------------------------------
|
241
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
242
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
243
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
244
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
245
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
246
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
247
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
248
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
249
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
250
|
-
-----------------------------
|
251
|
-
SnapshotItemTest: test_object
|
252
|
-
-----------------------------
|
253
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
254
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
255
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
256
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
257
|
-
------------------------------------
|
258
|
-
SnapshotItemTest: test_restore_item!
|
259
|
-
------------------------------------
|
260
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
261
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
262
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
263
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
264
|
-
[1m[36mPost Update (0.2ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
265
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
266
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[31mrollback transaction[0m
|
267
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
268
371
|
------------------------------------------------
|
269
372
|
SnapshotsConcernTest: test_has_snapshot_children
|
270
373
|
------------------------------------------------
|
271
|
-
[1m[
|
374
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT ?[0m [["LIMIT", 1]]
|
375
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT ?[0m [["LIMIT", 1]]
|
376
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
272
377
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
273
378
|
----------------------------------------
|
274
379
|
SnapshotsConcernTest: test_relationships
|
@@ -279,9 +384,9 @@ SnapshotsConcernTest: test_relationships
|
|
279
384
|
SnapshotsConcernTest: test_create_snapshot!
|
280
385
|
-------------------------------------------
|
281
386
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
282
|
-
[1m[36mTRANSACTION (0.
|
387
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
283
388
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
284
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "
|
389
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:13:04.040908"]]
|
285
390
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
286
391
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
287
392
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
@@ -292,21 +397,21 @@ id: 1
|
|
292
397
|
a: 2
|
293
398
|
b: 4
|
294
399
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
295
|
-
utc:
|
400
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
296
401
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
297
402
|
name: Etc/UTC
|
298
|
-
time:
|
403
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
299
404
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
300
|
-
utc:
|
405
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
301
406
|
zone: *1
|
302
|
-
time:
|
303
|
-
','
|
407
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
408
|
+
','2022-02-25 19:13:04.043969',NULL)[0m
|
304
409
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
305
|
-
[1m[36mTRANSACTION (0.
|
410
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
306
411
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
307
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "
|
412
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:13:04.057459"]]
|
308
413
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
309
|
-
[1m[36mPost Load (0.
|
414
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
310
415
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
311
416
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
312
417
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
@@ -315,21 +420,21 @@ id: 1
|
|
315
420
|
a: 2
|
316
421
|
b: 4
|
317
422
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
318
|
-
utc:
|
423
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
319
424
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
320
425
|
name: Etc/UTC
|
321
|
-
time:
|
426
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
322
427
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
323
|
-
utc:
|
428
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
324
429
|
zone: *1
|
325
|
-
time:
|
326
|
-
','
|
327
|
-
[1m[36mTRANSACTION (0.
|
328
|
-
[1m[36mTRANSACTION (0.
|
430
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
431
|
+
','2022-02-25 19:13:04.060607',NULL)[0m
|
432
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
433
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
329
434
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
330
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "
|
435
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:13:04.063001"]]
|
331
436
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
332
|
-
[1m[36mPost Load (0.
|
437
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
333
438
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
334
439
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
335
440
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
@@ -338,233 +443,2414 @@ id: 1
|
|
338
443
|
a: 2
|
339
444
|
b: 4
|
340
445
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
341
|
-
utc:
|
446
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
342
447
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
343
448
|
name: Etc/UTC
|
344
|
-
time:
|
449
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
345
450
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
346
|
-
utc:
|
451
|
+
utc: 2022-02-25 19:13:03.860645000 Z
|
347
452
|
zone: *1
|
348
|
-
time:
|
349
|
-
','
|
453
|
+
time: 2022-02-25 19:13:03.860645000 Z
|
454
|
+
','2022-02-25 19:13:04.066440',NULL)[0m
|
350
455
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
351
456
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
352
457
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
353
458
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
354
|
-
[1m[36mTRANSACTION (0.
|
459
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
355
460
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
356
461
|
-----------------------------------------------
|
357
462
|
InstallGeneratorTest: test_should_add_migration
|
358
463
|
-----------------------------------------------
|
359
|
-
[1m[36mTRANSACTION (0.
|
360
|
-
[1m[35m (1.
|
361
|
-
[1m[
|
362
|
-
[1m[
|
464
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
465
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
466
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
467
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
363
468
|
[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]]
|
364
|
-
[1m[35m (
|
365
|
-
[1m[35m (
|
366
|
-
[1m[35m (
|
367
|
-
[1m[35m (
|
368
|
-
[1m[35m (
|
369
|
-
[1m[35m (
|
469
|
+
[1m[35m (6.6ms)[0m [1m[31mDELETE FROM posts;[0m
|
470
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
471
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
472
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
473
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
474
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
370
475
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
371
476
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
372
|
-
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "
|
373
|
-
[1m[36mTRANSACTION (0.
|
477
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:15:25.078053"], ["updated_at", "2022-02-25 19:15:25.078053"]]
|
478
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
374
479
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
375
480
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
376
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "
|
377
|
-
[1m[36mTRANSACTION (0.
|
481
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:15:25.092481"]]
|
482
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
378
483
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
379
484
|
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
380
485
|
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
381
486
|
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
382
487
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
383
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.
|
488
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
384
489
|
id: 1
|
385
490
|
a: 1
|
386
491
|
b: 3
|
387
492
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
388
|
-
utc: &1
|
493
|
+
utc: &1 2022-02-25 19:15:25.078053000 Z
|
389
494
|
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
390
495
|
name: Etc/UTC
|
391
|
-
time:
|
496
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
392
497
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
393
498
|
utc: *1
|
394
499
|
zone: *2
|
395
|
-
time:
|
396
|
-
','
|
397
|
-
[1m[36mTRANSACTION (0.
|
398
|
-
[1m[36mPost Update (0.
|
500
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
501
|
+
','2022-02-25 19:15:25.111188',NULL)[0m
|
502
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
503
|
+
[1m[36mPost Update (0.8ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
399
504
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
400
505
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
401
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "
|
402
|
-
[1m[36mTRANSACTION (0.
|
506
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:15:25.115568"]]
|
507
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
403
508
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
404
509
|
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
405
|
-
[1m[36mNote Load (0.
|
510
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
406
511
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
407
512
|
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
408
513
|
id: 1
|
409
514
|
a: 2
|
410
515
|
b: 4
|
411
516
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
412
|
-
utc: &1
|
517
|
+
utc: &1 2022-02-25 19:15:25.078053000 Z
|
413
518
|
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
414
519
|
name: Etc/UTC
|
415
|
-
time:
|
520
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
416
521
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
417
522
|
utc: *1
|
418
523
|
zone: *2
|
419
|
-
time:
|
420
|
-
','
|
421
|
-
[1m[36mTRANSACTION (0.
|
422
|
-
[1m[36mTRANSACTION (0.
|
423
|
-
----------------------------------------
|
424
|
-
ActiveSnapshotTest: test_exposes_version
|
425
|
-
----------------------------------------
|
426
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
427
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
524
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
525
|
+
','2022-02-25 19:15:25.119373',NULL)[0m
|
526
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
527
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
428
528
|
-------------------------------------------
|
429
|
-
|
529
|
+
SnapshotsConcernTest: test_create_snapshot!
|
430
530
|
-------------------------------------------
|
431
|
-
[1m[36mPost Load (0.
|
432
|
-
[1m[36mTRANSACTION (0.
|
433
|
-
[1m[
|
531
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
532
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
533
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
534
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:15:25.153158"]]
|
434
535
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
435
|
-
[1m[
|
436
|
-
[1m[
|
536
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
537
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
538
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
539
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
540
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
541
|
+
id: 1
|
542
|
+
a: 2
|
543
|
+
b: 4
|
544
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
545
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
546
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
547
|
+
name: Etc/UTC
|
548
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
549
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
550
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
551
|
+
zone: *1
|
552
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
553
|
+
','2022-02-25 19:15:25.156246',NULL)[0m
|
554
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
555
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
556
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
557
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:15:25.157969"]]
|
558
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
559
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
560
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
561
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
562
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
563
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,4,'Post',1,'---
|
564
|
+
id: 1
|
565
|
+
a: 2
|
566
|
+
b: 4
|
567
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
568
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
569
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
570
|
+
name: Etc/UTC
|
571
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
572
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
573
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
574
|
+
zone: *1
|
575
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
576
|
+
','2022-02-25 19:15:25.160211',NULL)[0m
|
577
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
578
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
579
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
580
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:15:25.161627"]]
|
581
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
582
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
583
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
584
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
585
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
586
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,5,'Post',1,'---
|
587
|
+
id: 1
|
588
|
+
a: 2
|
589
|
+
b: 4
|
590
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
591
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
592
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
593
|
+
name: Etc/UTC
|
594
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
595
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
596
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
597
|
+
zone: *1
|
598
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
599
|
+
','2022-02-25 19:15:25.163956',NULL)[0m
|
600
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
601
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
602
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
603
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
604
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
605
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
606
|
+
----------------------------------------
|
607
|
+
SnapshotsConcernTest: test_relationships
|
608
|
+
----------------------------------------
|
609
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
610
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
611
|
+
------------------------------------------------
|
612
|
+
SnapshotsConcernTest: test_has_snapshot_children
|
613
|
+
------------------------------------------------
|
614
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
615
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
616
|
+
-----------------------------
|
617
|
+
SnapshotItemTest: test_object
|
618
|
+
-----------------------------
|
619
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.3ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
620
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
621
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
622
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
623
|
+
------------------------------------
|
624
|
+
SnapshotItemTest: test_relationships
|
625
|
+
------------------------------------
|
626
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
627
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
628
|
+
----------------------------------
|
629
|
+
SnapshotItemTest: test_validations
|
630
|
+
----------------------------------
|
631
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
632
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
633
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
634
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
635
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
636
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
637
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
638
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
639
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
640
|
+
------------------------------------
|
641
|
+
SnapshotItemTest: test_restore_item!
|
642
|
+
------------------------------------
|
643
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
644
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
645
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
646
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
647
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
648
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
649
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
650
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
651
|
+
-----------------------------------------------------
|
652
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
653
|
+
-----------------------------------------------------
|
654
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
655
|
+
[1m[36mSubPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:15:25.194468"], ["updated_at", "2022-02-25 19:15:25.194468"]]
|
656
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
657
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
658
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:15:25.198294"], ["updated_at", "2022-02-25 19:15:25.198294"]]
|
659
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
660
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
661
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
662
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:15:25.200794"]]
|
663
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
664
|
+
[1m[36mSubPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
665
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
666
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
667
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
668
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
669
|
+
id: 2
|
670
|
+
a: 1
|
671
|
+
b: 2
|
672
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
673
|
+
utc: &1 2022-02-25 19:15:25.194468000 Z
|
674
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
675
|
+
name: Etc/UTC
|
676
|
+
time: 2022-02-25 19:15:25.194468000 Z
|
677
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
678
|
+
utc: *1
|
679
|
+
zone: *2
|
680
|
+
time: 2022-02-25 19:15:25.194468000 Z
|
681
|
+
','2022-02-25 19:15:25.205518',NULL),(NULL,3,'Comment',1,'---
|
682
|
+
id: 1
|
683
|
+
content: Example comment
|
684
|
+
post_id: 2
|
685
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
686
|
+
utc: 2022-02-25 19:15:25.198294000 Z
|
687
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
688
|
+
name: Etc/UTC
|
689
|
+
time: 2022-02-25 19:15:25.198294000 Z
|
690
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
691
|
+
utc: 2022-02-25 19:15:25.198294000 Z
|
692
|
+
zone: *1
|
693
|
+
time: 2022-02-25 19:15:25.198294000 Z
|
694
|
+
','2022-02-25 19:15:25.205518','comments')[0m
|
695
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
696
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
697
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
698
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
699
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
700
|
+
----------------------------------------------------------
|
701
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
702
|
+
----------------------------------------------------------
|
703
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
704
|
+
[1m[36mParentWithoutChildren Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:15:25.213227"], ["updated_at", "2022-02-25 19:15:25.213227"]]
|
705
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
706
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
707
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
708
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:15:25.216071"]]
|
709
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
710
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
711
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'ParentWithoutChildren',2,'---
|
712
|
+
id: 2
|
713
|
+
a: 1
|
714
|
+
b: 2
|
715
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
716
|
+
utc: &1 2022-02-25 19:15:25.213227000 Z
|
717
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
718
|
+
name: Etc/UTC
|
719
|
+
time: 2022-02-25 19:15:25.213227000 Z
|
720
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
721
|
+
utc: *1
|
722
|
+
zone: *2
|
723
|
+
time: 2022-02-25 19:15:25.213227000 Z
|
724
|
+
','2022-02-25 19:15:25.217553',NULL)[0m
|
725
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
726
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
727
|
+
[1m[36mParentWithoutChildren Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ?, "updated_at" = ? WHERE "posts"."id" = ?[0m [["a", 9], ["b", 9], ["updated_at", "2022-02-25 19:15:25.218410"], ["id", 2]]
|
728
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
729
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
730
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
731
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
732
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
733
|
+
--------------------------------------
|
734
|
+
SnapshotTest: test_build_snapshot_item
|
735
|
+
--------------------------------------
|
736
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
737
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
738
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
739
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
740
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
741
|
+
---------------------------
|
742
|
+
SnapshotTest: test_metadata
|
743
|
+
---------------------------
|
744
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
745
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
746
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
747
|
+
--------------------------
|
748
|
+
SnapshotTest: test_restore
|
749
|
+
--------------------------
|
750
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
751
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
752
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
753
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
754
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
755
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
756
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
757
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
758
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
759
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
760
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
761
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
762
|
+
------------------------------
|
763
|
+
SnapshotTest: test_validations
|
764
|
+
------------------------------
|
765
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
766
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
767
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
768
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
769
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
770
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
771
|
+
--------------------------------------
|
772
|
+
SnapshotTest: test_fetch_reified_items
|
773
|
+
--------------------------------------
|
774
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
775
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
776
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
777
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
778
|
+
--------------------------------
|
779
|
+
SnapshotTest: test_relationships
|
780
|
+
--------------------------------
|
781
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
782
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
783
|
+
-----------------------------------------------
|
784
|
+
InstallGeneratorTest: test_should_add_migration
|
785
|
+
-----------------------------------------------
|
786
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
787
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
788
|
+
--------------------------------------------
|
789
|
+
ActiveSnapshotTest: test_exposes_main_module
|
790
|
+
--------------------------------------------
|
791
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
792
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
793
|
+
-------------------------------------------
|
794
|
+
ActiveSnapshotTest: test_snapshot_lifecycle
|
795
|
+
-------------------------------------------
|
796
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
797
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
798
|
+
[1m[36mComment Create (0.3ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:15:25.250285"], ["updated_at", "2022-02-25 19:15:25.250285"]]
|
799
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
800
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
801
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
802
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
803
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
804
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:15:25.254114"]]
|
805
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
806
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
807
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
808
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
809
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
810
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
811
|
+
id: 1
|
812
|
+
a: 2
|
813
|
+
b: 4
|
814
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
815
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
816
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
817
|
+
name: Etc/UTC
|
818
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
819
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
820
|
+
utc: 2022-02-25 19:15:25.078053000 Z
|
821
|
+
zone: *1
|
822
|
+
time: 2022-02-25 19:15:25.078053000 Z
|
823
|
+
','2022-02-25 19:15:25.258085',NULL),(NULL,3,'Comment',1,'---
|
824
|
+
id: 1
|
825
|
+
content: foo
|
826
|
+
post_id: 1
|
827
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
828
|
+
utc: 2022-02-25 19:15:25.250285000 Z
|
829
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
830
|
+
name: Etc/UTC
|
831
|
+
time: 2022-02-25 19:15:25.250285000 Z
|
832
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
833
|
+
utc: 2022-02-25 19:15:25.250285000 Z
|
834
|
+
zone: *1
|
835
|
+
time: 2022-02-25 19:15:25.250285000 Z
|
836
|
+
','2022-02-25 19:15:25.258085','comments')[0m
|
837
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
838
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
839
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
840
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:15:25.269725"], ["id", 1]]
|
841
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:15:25.270370"], ["id", 1]]
|
842
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
843
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
844
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
845
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
846
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:15:25.271722"], ["updated_at", "2022-02-25 19:15:25.271722"]]
|
847
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
848
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
849
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:15:25.273014"], ["updated_at", "2022-02-25 19:15:25.273014"]]
|
850
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
851
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
852
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
853
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
854
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
855
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
856
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
857
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
858
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
859
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
860
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
861
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
862
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:15:25.078053"], ["id", 1]]
|
863
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:15:25.250285"], ["updated_at", "2022-02-25 19:15:25.250285"]]
|
864
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
865
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
866
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
867
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
868
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
869
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
870
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
871
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
872
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
873
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
874
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
875
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
876
|
+
[1m[36mTRANSACTION (108.7ms)[0m [1m[31mrollback transaction[0m
|
877
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
878
|
+
----------------------------------------
|
879
|
+
ActiveSnapshotTest: test_exposes_version
|
880
|
+
----------------------------------------
|
881
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
882
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
883
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
884
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
885
|
+
[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]]
|
886
|
+
[1m[35m (6.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
887
|
+
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
888
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
889
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
890
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
891
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
892
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
893
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[36mbegin transaction[0m
|
894
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:16:53.817957"], ["updated_at", "2022-02-25 19:16:53.817957"]]
|
895
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
896
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
897
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
898
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:16:53.832548"]]
|
899
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
900
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
901
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
902
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
903
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
904
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
905
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
906
|
+
id: 1
|
907
|
+
a: 1
|
908
|
+
b: 3
|
909
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
910
|
+
utc: &1 2022-02-25 19:16:53.817957000 Z
|
911
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
912
|
+
name: Etc/UTC
|
913
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
914
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
915
|
+
utc: *1
|
916
|
+
zone: *2
|
917
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
918
|
+
','2022-02-25 19:16:53.851096',NULL)[0m
|
919
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
920
|
+
[1m[36mPost Update (0.7ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
921
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
922
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
923
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.5ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:16:53.855336"]]
|
924
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
925
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
926
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
927
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
928
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
929
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
930
|
+
id: 1
|
931
|
+
a: 2
|
932
|
+
b: 4
|
933
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
934
|
+
utc: &1 2022-02-25 19:16:53.817957000 Z
|
935
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
936
|
+
name: Etc/UTC
|
937
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
938
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
939
|
+
utc: *1
|
940
|
+
zone: *2
|
941
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
942
|
+
','2022-02-25 19:16:53.859488',NULL)[0m
|
943
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
944
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
945
|
+
--------------------------------
|
946
|
+
SnapshotTest: test_relationships
|
947
|
+
--------------------------------
|
948
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
949
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
950
|
+
--------------------------------------
|
951
|
+
SnapshotTest: test_fetch_reified_items
|
952
|
+
--------------------------------------
|
953
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
954
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
955
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
956
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
957
|
+
-----------------------------------------------------
|
958
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
959
|
+
-----------------------------------------------------
|
960
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
961
|
+
[1m[36mSubPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:16:53.899474"], ["updated_at", "2022-02-25 19:16:53.899474"]]
|
962
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
963
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
964
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:16:53.902868"], ["updated_at", "2022-02-25 19:16:53.902868"]]
|
965
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
966
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
967
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
968
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:16:53.904842"]]
|
969
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
970
|
+
[1m[36mSubPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
971
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
972
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
973
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
974
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
975
|
+
id: 2
|
976
|
+
a: 1
|
977
|
+
b: 2
|
978
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
979
|
+
utc: &1 2022-02-25 19:16:53.899474000 Z
|
980
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
981
|
+
name: Etc/UTC
|
982
|
+
time: 2022-02-25 19:16:53.899474000 Z
|
983
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
984
|
+
utc: *1
|
985
|
+
zone: *2
|
986
|
+
time: 2022-02-25 19:16:53.899474000 Z
|
987
|
+
','2022-02-25 19:16:53.908424',NULL),(NULL,3,'Comment',1,'---
|
988
|
+
id: 1
|
989
|
+
content: Example comment
|
990
|
+
post_id: 2
|
991
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
992
|
+
utc: 2022-02-25 19:16:53.902868000 Z
|
993
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
994
|
+
name: Etc/UTC
|
995
|
+
time: 2022-02-25 19:16:53.902868000 Z
|
996
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
997
|
+
utc: 2022-02-25 19:16:53.902868000 Z
|
998
|
+
zone: *1
|
999
|
+
time: 2022-02-25 19:16:53.902868000 Z
|
1000
|
+
','2022-02-25 19:16:53.908424','comments')[0m
|
1001
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1002
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
1003
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1004
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
1005
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1006
|
+
----------------------------------------------------------
|
1007
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
1008
|
+
----------------------------------------------------------
|
1009
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1010
|
+
[1m[36mParentWithoutChildren Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:16:53.915861"], ["updated_at", "2022-02-25 19:16:53.915861"]]
|
1011
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1012
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1013
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
1014
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:16:53.919313"]]
|
1015
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1016
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1017
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'ParentWithoutChildren',2,'---
|
1018
|
+
id: 2
|
1019
|
+
a: 1
|
1020
|
+
b: 2
|
1021
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1022
|
+
utc: &1 2022-02-25 19:16:53.915861000 Z
|
1023
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1024
|
+
name: Etc/UTC
|
1025
|
+
time: 2022-02-25 19:16:53.915861000 Z
|
1026
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1027
|
+
utc: *1
|
1028
|
+
zone: *2
|
1029
|
+
time: 2022-02-25 19:16:53.915861000 Z
|
1030
|
+
','2022-02-25 19:16:53.920892',NULL)[0m
|
1031
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1032
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1033
|
+
[1m[36mParentWithoutChildren Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ?, "updated_at" = ? WHERE "posts"."id" = ?[0m [["a", 9], ["b", 9], ["updated_at", "2022-02-25 19:16:53.921931"], ["id", 2]]
|
1034
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1035
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
1036
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1037
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1038
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1039
|
+
--------------------------------------
|
1040
|
+
SnapshotTest: test_build_snapshot_item
|
1041
|
+
--------------------------------------
|
1042
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1043
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1044
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1045
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1046
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1047
|
+
--------------------------
|
1048
|
+
SnapshotTest: test_restore
|
1049
|
+
--------------------------
|
1050
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1051
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1052
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1053
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1054
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1055
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1056
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1057
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
1058
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1059
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1060
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
1061
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1062
|
+
------------------------------
|
1063
|
+
SnapshotTest: test_validations
|
1064
|
+
------------------------------
|
1065
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1066
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1067
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1068
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1069
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1070
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1071
|
+
---------------------------
|
1072
|
+
SnapshotTest: test_metadata
|
1073
|
+
---------------------------
|
1074
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1075
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1076
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1077
|
+
------------------------------------------------
|
1078
|
+
SnapshotsConcernTest: test_has_snapshot_children
|
1079
|
+
------------------------------------------------
|
1080
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1081
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1082
|
+
-------------------------------------------
|
1083
|
+
SnapshotsConcernTest: test_create_snapshot!
|
1084
|
+
-------------------------------------------
|
1085
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1086
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1087
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1088
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:17:11.237904"]]
|
1089
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1090
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1091
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1092
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1093
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1094
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
1095
|
+
id: 1
|
1096
|
+
a: 2
|
1097
|
+
b: 4
|
1098
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1099
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1100
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1101
|
+
name: Etc/UTC
|
1102
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1103
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1104
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1105
|
+
zone: *1
|
1106
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1107
|
+
','2022-02-25 19:17:11.241539',NULL)[0m
|
1108
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1109
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1110
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1111
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:17:11.244057"]]
|
1112
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1113
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1114
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1115
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1116
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1117
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,4,'Post',1,'---
|
1118
|
+
id: 1
|
1119
|
+
a: 2
|
1120
|
+
b: 4
|
1121
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1122
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1123
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1124
|
+
name: Etc/UTC
|
1125
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1126
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1127
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1128
|
+
zone: *1
|
1129
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1130
|
+
','2022-02-25 19:17:11.247382',NULL)[0m
|
1131
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1132
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1133
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1134
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:17:11.250501"]]
|
1135
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1136
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1137
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1138
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1139
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1140
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,5,'Post',1,'---
|
1141
|
+
id: 1
|
1142
|
+
a: 2
|
1143
|
+
b: 4
|
1144
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1145
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1146
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1147
|
+
name: Etc/UTC
|
1148
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1149
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1150
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1151
|
+
zone: *1
|
1152
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1153
|
+
','2022-02-25 19:17:11.254169',NULL)[0m
|
1154
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1155
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1156
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1157
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
1158
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
1159
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1160
|
+
----------------------------------------
|
1161
|
+
SnapshotsConcernTest: test_relationships
|
1162
|
+
----------------------------------------
|
1163
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1164
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1165
|
+
------------------------------------
|
1166
|
+
SnapshotItemTest: test_restore_item!
|
1167
|
+
------------------------------------
|
1168
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1169
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1170
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1171
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1172
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1173
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1174
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1175
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1176
|
+
-----------------------------
|
1177
|
+
SnapshotItemTest: test_object
|
1178
|
+
-----------------------------
|
1179
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1180
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1181
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1182
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1183
|
+
------------------------------------
|
1184
|
+
SnapshotItemTest: test_relationships
|
1185
|
+
------------------------------------
|
1186
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1187
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1188
|
+
----------------------------------
|
1189
|
+
SnapshotItemTest: test_validations
|
1190
|
+
----------------------------------
|
1191
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1192
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1193
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1194
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1195
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
1196
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
1197
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
1198
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1199
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1200
|
+
-----------------------------------------------
|
1201
|
+
InstallGeneratorTest: test_should_add_migration
|
1202
|
+
-----------------------------------------------
|
1203
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
1204
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1205
|
+
--------------------------------------------
|
1206
|
+
ActiveSnapshotTest: test_exposes_main_module
|
1207
|
+
--------------------------------------------
|
1208
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1209
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1210
|
+
----------------------------------------
|
1211
|
+
ActiveSnapshotTest: test_exposes_version
|
1212
|
+
----------------------------------------
|
1213
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1214
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1215
|
+
-------------------------------------------
|
1216
|
+
ActiveSnapshotTest: test_snapshot_lifecycle
|
1217
|
+
-------------------------------------------
|
1218
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1219
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1220
|
+
[1m[36mComment Create (0.3ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:17:11.285298"], ["updated_at", "2022-02-25 19:17:11.285298"]]
|
1221
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1222
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1223
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1224
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1225
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1226
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:17:11.288619"]]
|
1227
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1228
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1229
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1230
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1231
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1232
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
1233
|
+
id: 1
|
1234
|
+
a: 2
|
1235
|
+
b: 4
|
1236
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1237
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1238
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1239
|
+
name: Etc/UTC
|
1240
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1241
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1242
|
+
utc: 2022-02-25 19:16:53.817957000 Z
|
1243
|
+
zone: *1
|
1244
|
+
time: 2022-02-25 19:16:53.817957000 Z
|
1245
|
+
','2022-02-25 19:17:11.291952',NULL),(NULL,3,'Comment',1,'---
|
1246
|
+
id: 1
|
1247
|
+
content: foo
|
1248
|
+
post_id: 1
|
1249
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1250
|
+
utc: 2022-02-25 19:17:11.285298000 Z
|
1251
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1252
|
+
name: Etc/UTC
|
1253
|
+
time: 2022-02-25 19:17:11.285298000 Z
|
1254
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1255
|
+
utc: 2022-02-25 19:17:11.285298000 Z
|
1256
|
+
zone: *1
|
1257
|
+
time: 2022-02-25 19:17:11.285298000 Z
|
1258
|
+
','2022-02-25 19:17:11.291952','comments')[0m
|
1259
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1260
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1261
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1262
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:17:11.293152"], ["id", 1]]
|
1263
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:17:11.293750"], ["id", 1]]
|
1264
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1265
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
1266
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1267
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1268
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:17:11.295547"], ["updated_at", "2022-02-25 19:17:11.295547"]]
|
1269
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1270
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1271
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:17:11.296717"], ["updated_at", "2022-02-25 19:17:11.296717"]]
|
1272
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1273
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1274
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1275
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1276
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1277
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1278
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1279
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1280
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
1281
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
1282
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
1283
|
+
[1m[36mComment Destroy (0.0ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
1284
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:16:53.817957"], ["id", 1]]
|
1285
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:17:11.285298"], ["updated_at", "2022-02-25 19:17:11.285298"]]
|
1286
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1287
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1288
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1289
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
1290
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1291
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1292
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1293
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1294
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1295
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1296
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1297
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1298
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1299
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1300
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1301
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1302
|
+
[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]]
|
1303
|
+
[1m[35m (6.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
1304
|
+
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
1305
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
1306
|
+
[1m[35m (1.0ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
1307
|
+
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
1308
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
1309
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
1310
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1311
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:18:38.895863"], ["updated_at", "2022-02-25 19:18:38.895863"]]
|
1312
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
1313
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1314
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1315
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:18:38.910682"]]
|
1316
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
1317
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1318
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1319
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1320
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1321
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1322
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
1323
|
+
id: 1
|
1324
|
+
a: 1
|
1325
|
+
b: 3
|
1326
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1327
|
+
utc: &1 2022-02-25 19:18:38.895863000 Z
|
1328
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1329
|
+
name: Etc/UTC
|
1330
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1331
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1332
|
+
utc: *1
|
1333
|
+
zone: *2
|
1334
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1335
|
+
','2022-02-25 19:18:38.929364',NULL)[0m
|
1336
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
1337
|
+
[1m[36mPost Update (0.8ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
1338
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1339
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1340
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:18:38.933744"]]
|
1341
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
1342
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1343
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1344
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1345
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1346
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
1347
|
+
id: 1
|
1348
|
+
a: 2
|
1349
|
+
b: 4
|
1350
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1351
|
+
utc: &1 2022-02-25 19:18:38.895863000 Z
|
1352
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1353
|
+
name: Etc/UTC
|
1354
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1355
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1356
|
+
utc: *1
|
1357
|
+
zone: *2
|
1358
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1359
|
+
','2022-02-25 19:18:38.937428',NULL)[0m
|
1360
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
1361
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1362
|
+
-----------------------------------------------
|
1363
|
+
InstallGeneratorTest: test_should_add_migration
|
1364
|
+
-----------------------------------------------
|
1365
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
1366
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1367
|
+
--------------------------
|
1368
|
+
SnapshotTest: test_restore
|
1369
|
+
--------------------------
|
1370
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1371
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1372
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1373
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1374
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1375
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1376
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1377
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
1378
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1379
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1380
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
1381
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1382
|
+
---------------------------
|
1383
|
+
SnapshotTest: test_metadata
|
1384
|
+
---------------------------
|
1385
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1386
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1387
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1388
|
+
----------------------------------------------------------
|
1389
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
1390
|
+
----------------------------------------------------------
|
1391
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1392
|
+
[1m[36mParentWithoutChildren Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:18:38.986638"], ["updated_at", "2022-02-25 19:18:38.986638"]]
|
1393
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1394
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1395
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
1396
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:18:38.990142"]]
|
1397
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1398
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1399
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'ParentWithoutChildren',2,'---
|
1400
|
+
id: 2
|
1401
|
+
a: 1
|
1402
|
+
b: 2
|
1403
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1404
|
+
utc: &1 2022-02-25 19:18:38.986638000 Z
|
1405
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1406
|
+
name: Etc/UTC
|
1407
|
+
time: 2022-02-25 19:18:38.986638000 Z
|
1408
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1409
|
+
utc: *1
|
1410
|
+
zone: *2
|
1411
|
+
time: 2022-02-25 19:18:38.986638000 Z
|
1412
|
+
','2022-02-25 19:18:38.992515',NULL)[0m
|
1413
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1414
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1415
|
+
[1m[36mParentWithoutChildren Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ?, "updated_at" = ? WHERE "posts"."id" = ?[0m [["a", 9], ["b", 9], ["updated_at", "2022-02-25 19:18:38.993451"], ["id", 2]]
|
1416
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1417
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
1418
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1419
|
+
[1m[36mTRANSACTION (222.6ms)[0m [1m[31mrollback transaction[0m
|
1420
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1421
|
+
--------------------------------
|
1422
|
+
SnapshotTest: test_relationships
|
1423
|
+
--------------------------------
|
1424
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1425
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1426
|
+
--------------------------------------
|
1427
|
+
SnapshotTest: test_fetch_reified_items
|
1428
|
+
--------------------------------------
|
1429
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1430
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1431
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1432
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1433
|
+
------------------------------
|
1434
|
+
SnapshotTest: test_validations
|
1435
|
+
------------------------------
|
1436
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1437
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1438
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1439
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1440
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1441
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1442
|
+
--------------------------------------
|
1443
|
+
SnapshotTest: test_build_snapshot_item
|
1444
|
+
--------------------------------------
|
1445
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1446
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1447
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1448
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1449
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1450
|
+
-----------------------------------------------------
|
1451
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
1452
|
+
-----------------------------------------------------
|
1453
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1454
|
+
[1m[36mSubPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:18:39.254042"], ["updated_at", "2022-02-25 19:18:39.254042"]]
|
1455
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1456
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1457
|
+
[1m[36mComment Create (0.2ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:18:39.258961"], ["updated_at", "2022-02-25 19:18:39.258961"]]
|
1458
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1459
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1460
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
1461
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:18:39.261360"]]
|
1462
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1463
|
+
[1m[36mSubPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
1464
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
1465
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
1466
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1467
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
1468
|
+
id: 2
|
1469
|
+
a: 1
|
1470
|
+
b: 2
|
1471
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1472
|
+
utc: &1 2022-02-25 19:18:39.254042000 Z
|
1473
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1474
|
+
name: Etc/UTC
|
1475
|
+
time: 2022-02-25 19:18:39.254042000 Z
|
1476
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1477
|
+
utc: *1
|
1478
|
+
zone: *2
|
1479
|
+
time: 2022-02-25 19:18:39.254042000 Z
|
1480
|
+
','2022-02-25 19:18:39.265432',NULL),(NULL,3,'Comment',1,'---
|
1481
|
+
id: 1
|
1482
|
+
content: Example comment
|
1483
|
+
post_id: 2
|
1484
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1485
|
+
utc: 2022-02-25 19:18:39.258961000 Z
|
1486
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1487
|
+
name: Etc/UTC
|
1488
|
+
time: 2022-02-25 19:18:39.258961000 Z
|
1489
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1490
|
+
utc: 2022-02-25 19:18:39.258961000 Z
|
1491
|
+
zone: *1
|
1492
|
+
time: 2022-02-25 19:18:39.258961000 Z
|
1493
|
+
','2022-02-25 19:18:39.265432','comments')[0m
|
1494
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1495
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
1496
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1497
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
1498
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1499
|
+
-------------------------------------------
|
1500
|
+
SnapshotsConcernTest: test_create_snapshot!
|
1501
|
+
-------------------------------------------
|
1502
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1503
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1504
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1505
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.4ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:18:39.272765"]]
|
1506
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1507
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1508
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1509
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1510
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1511
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
1512
|
+
id: 1
|
1513
|
+
a: 2
|
1514
|
+
b: 4
|
1515
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1516
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1517
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1518
|
+
name: Etc/UTC
|
1519
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1520
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1521
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1522
|
+
zone: *1
|
1523
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1524
|
+
','2022-02-25 19:18:39.276423',NULL)[0m
|
1525
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1526
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1527
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1528
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:18:39.278218"]]
|
1529
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1530
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1531
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1532
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1533
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1534
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,4,'Post',1,'---
|
1535
|
+
id: 1
|
1536
|
+
a: 2
|
1537
|
+
b: 4
|
1538
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1539
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1540
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1541
|
+
name: Etc/UTC
|
1542
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1543
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1544
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1545
|
+
zone: *1
|
1546
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1547
|
+
','2022-02-25 19:18:39.280872',NULL)[0m
|
1548
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1549
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1550
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1551
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:18:39.282819"]]
|
1552
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1553
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1554
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1555
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1556
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1557
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,5,'Post',1,'---
|
1558
|
+
id: 1
|
1559
|
+
a: 2
|
1560
|
+
b: 4
|
1561
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1562
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1563
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1564
|
+
name: Etc/UTC
|
1565
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1566
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1567
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1568
|
+
zone: *1
|
1569
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1570
|
+
','2022-02-25 19:18:39.285362',NULL)[0m
|
1571
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1572
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1573
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1574
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
1575
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1576
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1577
|
+
------------------------------------------------
|
1578
|
+
SnapshotsConcernTest: test_has_snapshot_children
|
1579
|
+
------------------------------------------------
|
1580
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1581
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1582
|
+
----------------------------------------
|
1583
|
+
SnapshotsConcernTest: test_relationships
|
1584
|
+
----------------------------------------
|
1585
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1586
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1587
|
+
--------------------------------------------
|
1588
|
+
ActiveSnapshotTest: test_exposes_main_module
|
1589
|
+
--------------------------------------------
|
1590
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1591
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1592
|
+
----------------------------------------
|
1593
|
+
ActiveSnapshotTest: test_exposes_version
|
1594
|
+
----------------------------------------
|
1595
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1596
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1597
|
+
-------------------------------------------
|
1598
|
+
ActiveSnapshotTest: test_snapshot_lifecycle
|
1599
|
+
-------------------------------------------
|
1600
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1601
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1602
|
+
[1m[36mComment Create (0.3ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:18:39.294715"], ["updated_at", "2022-02-25 19:18:39.294715"]]
|
1603
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1604
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1605
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1606
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1607
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1608
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:18:39.297819"]]
|
1609
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1610
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1611
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1612
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1613
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1614
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
1615
|
+
id: 1
|
1616
|
+
a: 2
|
1617
|
+
b: 4
|
1618
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1619
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1620
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1621
|
+
name: Etc/UTC
|
1622
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1623
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1624
|
+
utc: 2022-02-25 19:18:38.895863000 Z
|
1625
|
+
zone: *1
|
1626
|
+
time: 2022-02-25 19:18:38.895863000 Z
|
1627
|
+
','2022-02-25 19:18:39.301421',NULL),(NULL,3,'Comment',1,'---
|
1628
|
+
id: 1
|
1629
|
+
content: foo
|
1630
|
+
post_id: 1
|
1631
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1632
|
+
utc: 2022-02-25 19:18:39.294715000 Z
|
1633
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1634
|
+
name: Etc/UTC
|
1635
|
+
time: 2022-02-25 19:18:39.294715000 Z
|
1636
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1637
|
+
utc: 2022-02-25 19:18:39.294715000 Z
|
1638
|
+
zone: *1
|
1639
|
+
time: 2022-02-25 19:18:39.294715000 Z
|
1640
|
+
','2022-02-25 19:18:39.301421','comments')[0m
|
1641
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1642
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1643
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1644
|
+
[1m[36mPost Update (0.2ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:18:39.302761"], ["id", 1]]
|
1645
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:18:39.303707"], ["id", 1]]
|
1646
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1647
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
1648
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1649
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1650
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:18:39.305622"], ["updated_at", "2022-02-25 19:18:39.305622"]]
|
1651
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1652
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1653
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:18:39.306646"], ["updated_at", "2022-02-25 19:18:39.306646"]]
|
1654
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1655
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1656
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1657
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1658
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1659
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1660
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1661
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1662
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
1663
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
1664
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
1665
|
+
[1m[36mComment Destroy (0.0ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
1666
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:18:38.895863"], ["id", 1]]
|
1667
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:18:39.294715"], ["updated_at", "2022-02-25 19:18:39.294715"]]
|
1668
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1669
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1670
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1671
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
1672
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1673
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1674
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1675
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1676
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1677
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1678
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1679
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1680
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
1681
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1682
|
+
-----------------------------
|
1683
|
+
SnapshotItemTest: test_object
|
1684
|
+
-----------------------------
|
1685
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1686
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1687
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1688
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1689
|
+
------------------------------------
|
1690
|
+
SnapshotItemTest: test_restore_item!
|
1691
|
+
------------------------------------
|
1692
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1693
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1694
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1695
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1696
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1697
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1698
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1699
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1700
|
+
------------------------------------
|
1701
|
+
SnapshotItemTest: test_relationships
|
1702
|
+
------------------------------------
|
1703
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1704
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1705
|
+
----------------------------------
|
1706
|
+
SnapshotItemTest: test_validations
|
1707
|
+
----------------------------------
|
1708
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1709
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1710
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1711
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1712
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
1713
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
1714
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
1715
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1716
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1717
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1718
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1719
|
+
[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]]
|
1720
|
+
[1m[35m (6.7ms)[0m [1m[31mDELETE FROM posts;[0m
|
1721
|
+
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
1722
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
1723
|
+
[1m[35m (0.7ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
1724
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
1725
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
1726
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
1727
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1728
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:19:22.963999"], ["updated_at", "2022-02-25 19:19:22.963999"]]
|
1729
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
1730
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1731
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1732
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:19:22.978887"]]
|
1733
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
1734
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1735
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1736
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1737
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1738
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1739
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
1740
|
+
id: 1
|
1741
|
+
a: 1
|
1742
|
+
b: 3
|
1743
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1744
|
+
utc: &1 2022-02-25 19:19:22.963999000 Z
|
1745
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1746
|
+
name: Etc/UTC
|
1747
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
1748
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1749
|
+
utc: *1
|
1750
|
+
zone: *2
|
1751
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
1752
|
+
','2022-02-25 19:19:22.997867',NULL)[0m
|
1753
|
+
[1m[36mTRANSACTION (0.9ms)[0m [1m[36mcommit transaction[0m
|
1754
|
+
[1m[36mPost Update (0.8ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
1755
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1756
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1757
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:19:23.002578"]]
|
1758
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
1759
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1760
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1761
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1762
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1763
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
1764
|
+
id: 1
|
1765
|
+
a: 2
|
1766
|
+
b: 4
|
1767
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1768
|
+
utc: &1 2022-02-25 19:19:22.963999000 Z
|
1769
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1770
|
+
name: Etc/UTC
|
1771
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
1772
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1773
|
+
utc: *1
|
1774
|
+
zone: *2
|
1775
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
1776
|
+
','2022-02-25 19:19:23.006416',NULL)[0m
|
1777
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
1778
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1779
|
+
--------------------------------------------
|
1780
|
+
ActiveSnapshotTest: test_exposes_main_module
|
1781
|
+
--------------------------------------------
|
1782
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1783
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1784
|
+
----------------------------------------
|
1785
|
+
ActiveSnapshotTest: test_exposes_version
|
1786
|
+
----------------------------------------
|
1787
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1788
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1789
|
+
-------------------------------------------
|
1790
|
+
ActiveSnapshotTest: test_snapshot_lifecycle
|
1791
|
+
-------------------------------------------
|
1792
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1793
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1794
|
+
[1m[36mComment Create (0.3ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:19:23.043351"], ["updated_at", "2022-02-25 19:19:23.043351"]]
|
1795
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1796
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1797
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1798
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1799
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1800
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:19:23.046474"]]
|
1801
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1802
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1803
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1804
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1805
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1806
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
1807
|
+
id: 1
|
1808
|
+
a: 2
|
1809
|
+
b: 4
|
1810
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1811
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
1812
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1813
|
+
name: Etc/UTC
|
1814
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
1815
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1816
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
1817
|
+
zone: *1
|
1818
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
1819
|
+
','2022-02-25 19:19:23.049655',NULL),(NULL,3,'Comment',1,'---
|
1820
|
+
id: 1
|
1821
|
+
content: foo
|
1822
|
+
post_id: 1
|
1823
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1824
|
+
utc: 2022-02-25 19:19:23.043351000 Z
|
1825
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1826
|
+
name: Etc/UTC
|
1827
|
+
time: 2022-02-25 19:19:23.043351000 Z
|
1828
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1829
|
+
utc: 2022-02-25 19:19:23.043351000 Z
|
1830
|
+
zone: *1
|
1831
|
+
time: 2022-02-25 19:19:23.043351000 Z
|
1832
|
+
','2022-02-25 19:19:23.049655','comments')[0m
|
1833
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1834
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1835
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1836
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:19:23.050847"], ["id", 1]]
|
1837
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:19:23.051327"], ["id", 1]]
|
1838
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1839
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
1840
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1841
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1842
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:19:23.052418"], ["updated_at", "2022-02-25 19:19:23.052418"]]
|
1843
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1844
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1845
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:19:23.053323"], ["updated_at", "2022-02-25 19:19:23.053323"]]
|
1846
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1847
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1848
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1849
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1850
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1851
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1852
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1853
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1854
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
1855
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
1856
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
1857
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
1858
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:19:22.963999"], ["id", 1]]
|
1859
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:19:23.043351"], ["updated_at", "2022-02-25 19:19:23.043351"]]
|
1860
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1861
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1862
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
1863
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
1864
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1865
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1866
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1867
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1868
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1869
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1870
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1871
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1872
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1873
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1874
|
+
-----------------------------------------------------
|
1875
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
1876
|
+
-----------------------------------------------------
|
1877
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1878
|
+
[1m[36mSubPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:19:23.069046"], ["updated_at", "2022-02-25 19:19:23.069046"]]
|
1879
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1880
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1881
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:19:23.070836"], ["updated_at", "2022-02-25 19:19:23.070836"]]
|
1882
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1883
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1884
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
1885
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:19:23.073031"]]
|
1886
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1887
|
+
[1m[36mSubPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
1888
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
1889
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
1890
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1891
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
1892
|
+
id: 2
|
1893
|
+
a: 1
|
1894
|
+
b: 2
|
1895
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1896
|
+
utc: &1 2022-02-25 19:19:23.069046000 Z
|
1897
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1898
|
+
name: Etc/UTC
|
1899
|
+
time: 2022-02-25 19:19:23.069046000 Z
|
1900
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1901
|
+
utc: *1
|
1902
|
+
zone: *2
|
1903
|
+
time: 2022-02-25 19:19:23.069046000 Z
|
1904
|
+
','2022-02-25 19:19:23.078150',NULL),(NULL,3,'Comment',1,'---
|
1905
|
+
id: 1
|
1906
|
+
content: Example comment
|
1907
|
+
post_id: 2
|
1908
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1909
|
+
utc: 2022-02-25 19:19:23.070836000 Z
|
1910
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1911
|
+
name: Etc/UTC
|
1912
|
+
time: 2022-02-25 19:19:23.070836000 Z
|
1913
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1914
|
+
utc: 2022-02-25 19:19:23.070836000 Z
|
1915
|
+
zone: *1
|
1916
|
+
time: 2022-02-25 19:19:23.070836000 Z
|
1917
|
+
','2022-02-25 19:19:23.078150','comments')[0m
|
1918
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1919
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
1920
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1921
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
1922
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1923
|
+
------------------------------
|
1924
|
+
SnapshotTest: test_validations
|
1925
|
+
------------------------------
|
1926
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1927
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1928
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1929
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1930
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1931
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1932
|
+
----------------------------------------------------------
|
1933
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
1934
|
+
----------------------------------------------------------
|
1935
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1936
|
+
[1m[36mParentWithoutChildren Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:19:23.094599"], ["updated_at", "2022-02-25 19:19:23.094599"]]
|
1937
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1938
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1939
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
1940
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:19:23.097768"]]
|
1941
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1942
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1943
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'ParentWithoutChildren',2,'---
|
1944
|
+
id: 2
|
1945
|
+
a: 1
|
1946
|
+
b: 2
|
1947
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1948
|
+
utc: &1 2022-02-25 19:19:23.094599000 Z
|
1949
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1950
|
+
name: Etc/UTC
|
1951
|
+
time: 2022-02-25 19:19:23.094599000 Z
|
1952
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1953
|
+
utc: *1
|
1954
|
+
zone: *2
|
1955
|
+
time: 2022-02-25 19:19:23.094599000 Z
|
1956
|
+
','2022-02-25 19:19:23.100095',NULL)[0m
|
1957
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1958
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1959
|
+
[1m[36mParentWithoutChildren Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ?, "updated_at" = ? WHERE "posts"."id" = ?[0m [["a", 9], ["b", 9], ["updated_at", "2022-02-25 19:19:23.101221"], ["id", 2]]
|
1960
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1961
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
1962
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
1963
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1964
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1965
|
+
--------------------------
|
1966
|
+
SnapshotTest: test_restore
|
1967
|
+
--------------------------
|
1968
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1969
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1970
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1971
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1972
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1973
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1974
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1975
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
1976
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1977
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1978
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
1979
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1980
|
+
--------------------------------
|
1981
|
+
SnapshotTest: test_relationships
|
1982
|
+
--------------------------------
|
1983
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1984
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1985
|
+
--------------------------------------
|
1986
|
+
SnapshotTest: test_fetch_reified_items
|
1987
|
+
--------------------------------------
|
1988
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1989
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1990
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1991
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1992
|
+
--------------------------------------
|
1993
|
+
SnapshotTest: test_build_snapshot_item
|
1994
|
+
--------------------------------------
|
1995
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1996
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1997
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1998
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1999
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2000
|
+
---------------------------
|
2001
|
+
SnapshotTest: test_metadata
|
2002
|
+
---------------------------
|
2003
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2004
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2005
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2006
|
+
------------------------------------------------
|
2007
|
+
SnapshotsConcernTest: test_has_snapshot_children
|
2008
|
+
------------------------------------------------
|
2009
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2010
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2011
|
+
-------------------------------------------
|
2012
|
+
SnapshotsConcernTest: test_create_snapshot!
|
2013
|
+
-------------------------------------------
|
2014
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2015
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2016
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2017
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.5ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:19:23.125570"]]
|
2018
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2019
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2020
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2021
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2022
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2023
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
2024
|
+
id: 1
|
2025
|
+
a: 2
|
2026
|
+
b: 4
|
2027
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2028
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
2029
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2030
|
+
name: Etc/UTC
|
2031
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
2032
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2033
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
2034
|
+
zone: *1
|
2035
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
2036
|
+
','2022-02-25 19:19:23.130331',NULL)[0m
|
2037
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2038
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2039
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2040
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:19:23.132665"]]
|
2041
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2042
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2043
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2044
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2045
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2046
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,4,'Post',1,'---
|
2047
|
+
id: 1
|
2048
|
+
a: 2
|
2049
|
+
b: 4
|
2050
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2051
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
2052
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2053
|
+
name: Etc/UTC
|
2054
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
2055
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2056
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
2057
|
+
zone: *1
|
2058
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
2059
|
+
','2022-02-25 19:19:23.136079',NULL)[0m
|
2060
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2061
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2062
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2063
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:19:23.138146"]]
|
2064
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2065
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2066
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2067
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2068
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2069
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,5,'Post',1,'---
|
2070
|
+
id: 1
|
2071
|
+
a: 2
|
2072
|
+
b: 4
|
2073
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2074
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
2075
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2076
|
+
name: Etc/UTC
|
2077
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
2078
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2079
|
+
utc: 2022-02-25 19:19:22.963999000 Z
|
2080
|
+
zone: *1
|
2081
|
+
time: 2022-02-25 19:19:22.963999000 Z
|
2082
|
+
','2022-02-25 19:19:23.141546',NULL)[0m
|
2083
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2084
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2085
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2086
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
2087
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
2088
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2089
|
+
----------------------------------------
|
2090
|
+
SnapshotsConcernTest: test_relationships
|
2091
|
+
----------------------------------------
|
2092
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2093
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2094
|
+
------------------------------------
|
2095
|
+
SnapshotItemTest: test_restore_item!
|
2096
|
+
------------------------------------
|
2097
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2098
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
2099
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2100
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2101
|
+
[1m[36mPost Update (0.4ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
2102
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2103
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
2104
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2105
|
+
----------------------------------
|
2106
|
+
SnapshotItemTest: test_validations
|
2107
|
+
----------------------------------
|
2108
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2109
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2110
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2111
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2112
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
2113
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
2114
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
2115
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2116
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2117
|
+
-----------------------------
|
2118
|
+
SnapshotItemTest: test_object
|
2119
|
+
-----------------------------
|
2120
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2121
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
2122
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2123
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2124
|
+
------------------------------------
|
2125
|
+
SnapshotItemTest: test_relationships
|
2126
|
+
------------------------------------
|
2127
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2128
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2129
|
+
-----------------------------------------------
|
2130
|
+
InstallGeneratorTest: test_should_add_migration
|
2131
|
+
-----------------------------------------------
|
2132
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
2133
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2134
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2135
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2136
|
+
[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]]
|
2137
|
+
[1m[35m (6.6ms)[0m [1m[31mDELETE FROM posts;[0m
|
2138
|
+
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
2139
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
2140
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
2141
|
+
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
2142
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
2143
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
2144
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2145
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:20:35.789310"], ["updated_at", "2022-02-25 19:20:35.789310"]]
|
2146
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
2147
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2148
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2149
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.4ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:20:35.803837"]]
|
2150
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
2151
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2152
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2153
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2154
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2155
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2156
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
2157
|
+
id: 1
|
2158
|
+
a: 1
|
2159
|
+
b: 3
|
2160
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2161
|
+
utc: &1 2022-02-25 19:20:35.789310000 Z
|
2162
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
2163
|
+
name: Etc/UTC
|
2164
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2165
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2166
|
+
utc: *1
|
2167
|
+
zone: *2
|
2168
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2169
|
+
','2022-02-25 19:20:35.822170',NULL)[0m
|
2170
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
2171
|
+
[1m[36mPost Update (0.8ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
2172
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2173
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2174
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:20:35.826497"]]
|
2175
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
2176
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2177
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2178
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2179
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2180
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
2181
|
+
id: 1
|
2182
|
+
a: 2
|
2183
|
+
b: 4
|
2184
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2185
|
+
utc: &1 2022-02-25 19:20:35.789310000 Z
|
2186
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
2187
|
+
name: Etc/UTC
|
2188
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2189
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2190
|
+
utc: *1
|
2191
|
+
zone: *2
|
2192
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2193
|
+
','2022-02-25 19:20:35.830224',NULL)[0m
|
2194
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
2195
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
2196
|
+
-----------------------------------------------
|
2197
|
+
InstallGeneratorTest: test_should_add_migration
|
2198
|
+
-----------------------------------------------
|
2199
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
2200
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2201
|
+
-------------------------------------------
|
2202
|
+
SnapshotsConcernTest: test_create_snapshot!
|
2203
|
+
-------------------------------------------
|
2204
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2205
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2206
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2207
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:20:35.871008"]]
|
2208
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2209
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2210
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2211
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2212
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2213
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
2214
|
+
id: 1
|
2215
|
+
a: 2
|
2216
|
+
b: 4
|
2217
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2218
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
2219
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2220
|
+
name: Etc/UTC
|
2221
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2222
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2223
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
2224
|
+
zone: *1
|
2225
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2226
|
+
','2022-02-25 19:20:35.874056',NULL)[0m
|
2227
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2228
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2229
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2230
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:20:35.875642"]]
|
2231
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2232
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2233
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2234
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2235
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2236
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,4,'Post',1,'---
|
2237
|
+
id: 1
|
2238
|
+
a: 2
|
2239
|
+
b: 4
|
2240
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2241
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
2242
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2243
|
+
name: Etc/UTC
|
2244
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2245
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2246
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
2247
|
+
zone: *1
|
2248
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2249
|
+
','2022-02-25 19:20:35.877986',NULL)[0m
|
2250
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2251
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2252
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2253
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:20:35.879416"]]
|
2254
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2255
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2256
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2257
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2258
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2259
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,5,'Post',1,'---
|
2260
|
+
id: 1
|
2261
|
+
a: 2
|
2262
|
+
b: 4
|
2263
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2264
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
2265
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2266
|
+
name: Etc/UTC
|
2267
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2268
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2269
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
2270
|
+
zone: *1
|
2271
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2272
|
+
','2022-02-25 19:20:35.883477',NULL)[0m
|
2273
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2274
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2275
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2276
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
2277
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
2278
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2279
|
+
----------------------------------------
|
2280
|
+
SnapshotsConcernTest: test_relationships
|
2281
|
+
----------------------------------------
|
2282
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2283
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2284
|
+
------------------------------------------------
|
2285
|
+
SnapshotsConcernTest: test_has_snapshot_children
|
2286
|
+
------------------------------------------------
|
2287
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2288
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2289
|
+
-----------------------------
|
2290
|
+
SnapshotItemTest: test_object
|
2291
|
+
-----------------------------
|
2292
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2293
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
2294
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2295
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2296
|
+
------------------------------------
|
2297
|
+
SnapshotItemTest: test_relationships
|
2298
|
+
------------------------------------
|
2299
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2300
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2301
|
+
------------------------------------
|
2302
|
+
SnapshotItemTest: test_restore_item!
|
2303
|
+
------------------------------------
|
2304
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2305
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
2306
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2307
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2308
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
2309
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2310
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
2311
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2312
|
+
----------------------------------
|
2313
|
+
SnapshotItemTest: test_validations
|
2314
|
+
----------------------------------
|
2315
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2316
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2317
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2318
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2319
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
2320
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
2321
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
2322
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2323
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2324
|
+
---------------------------
|
2325
|
+
SnapshotTest: test_metadata
|
2326
|
+
---------------------------
|
2327
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2328
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2329
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2330
|
+
--------------------------------------
|
2331
|
+
SnapshotTest: test_fetch_reified_items
|
2332
|
+
--------------------------------------
|
2333
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2334
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
2335
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
2336
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
2337
|
+
--------------------------------------
|
2338
|
+
SnapshotTest: test_build_snapshot_item
|
2339
|
+
--------------------------------------
|
2340
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2341
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2342
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2343
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2344
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2345
|
+
------------------------------
|
2346
|
+
SnapshotTest: test_validations
|
2347
|
+
------------------------------
|
2348
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2349
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2350
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2351
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2352
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2353
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2354
|
+
--------------------------------
|
2355
|
+
SnapshotTest: test_relationships
|
2356
|
+
--------------------------------
|
2357
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2358
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2359
|
+
----------------------------------------------------------
|
2360
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
2361
|
+
----------------------------------------------------------
|
2362
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2363
|
+
[1m[36mParentWithoutChildren Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:20:35.931214"], ["updated_at", "2022-02-25 19:20:35.931214"]]
|
2364
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2365
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2366
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
2367
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:20:35.934708"]]
|
2368
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2369
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2370
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'ParentWithoutChildren',2,'---
|
2371
|
+
id: 2
|
2372
|
+
a: 1
|
2373
|
+
b: 2
|
2374
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2375
|
+
utc: &1 2022-02-25 19:20:35.931214000 Z
|
2376
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
2377
|
+
name: Etc/UTC
|
2378
|
+
time: 2022-02-25 19:20:35.931214000 Z
|
2379
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2380
|
+
utc: *1
|
2381
|
+
zone: *2
|
2382
|
+
time: 2022-02-25 19:20:35.931214000 Z
|
2383
|
+
','2022-02-25 19:20:35.936688',NULL)[0m
|
2384
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2385
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2386
|
+
[1m[36mParentWithoutChildren Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ?, "updated_at" = ? WHERE "posts"."id" = ?[0m [["a", 9], ["b", 9], ["updated_at", "2022-02-25 19:20:35.937620"], ["id", 2]]
|
2387
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2388
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
2389
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
2390
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
2391
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2392
|
+
--------------------------
|
2393
|
+
SnapshotTest: test_restore
|
2394
|
+
--------------------------
|
2395
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2396
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2397
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2398
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2399
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2400
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2401
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
2402
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
2403
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
2404
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2405
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
2406
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
2407
|
+
-----------------------------------------------------
|
2408
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
2409
|
+
-----------------------------------------------------
|
2410
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2411
|
+
[1m[36mSubPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:20:35.950273"], ["updated_at", "2022-02-25 19:20:35.950273"]]
|
2412
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2413
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2414
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:20:35.954355"], ["updated_at", "2022-02-25 19:20:35.954355"]]
|
2415
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2416
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2417
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
2418
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:20:35.956695"]]
|
2419
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2420
|
+
[1m[36mSubPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2421
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
2422
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
2423
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2424
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
2425
|
+
id: 2
|
2426
|
+
a: 1
|
2427
|
+
b: 2
|
2428
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2429
|
+
utc: &1 2022-02-25 19:20:35.950273000 Z
|
2430
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
2431
|
+
name: Etc/UTC
|
2432
|
+
time: 2022-02-25 19:20:35.950273000 Z
|
2433
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2434
|
+
utc: *1
|
2435
|
+
zone: *2
|
2436
|
+
time: 2022-02-25 19:20:35.950273000 Z
|
2437
|
+
','2022-02-25 19:20:35.961347',NULL),(NULL,3,'Comment',1,'---
|
2438
|
+
id: 1
|
2439
|
+
content: Example comment
|
2440
|
+
post_id: 2
|
2441
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2442
|
+
utc: 2022-02-25 19:20:35.954355000 Z
|
2443
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2444
|
+
name: Etc/UTC
|
2445
|
+
time: 2022-02-25 19:20:35.954355000 Z
|
2446
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2447
|
+
utc: 2022-02-25 19:20:35.954355000 Z
|
2448
|
+
zone: *1
|
2449
|
+
time: 2022-02-25 19:20:35.954355000 Z
|
2450
|
+
','2022-02-25 19:20:35.961347','comments')[0m
|
2451
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2452
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
2453
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
2454
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
2455
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2456
|
+
-------------------------------------------
|
2457
|
+
ActiveSnapshotTest: test_snapshot_lifecycle
|
2458
|
+
-------------------------------------------
|
2459
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2460
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2461
|
+
[1m[36mComment Create (0.3ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:20:35.967145"], ["updated_at", "2022-02-25 19:20:35.967145"]]
|
2462
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2463
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2464
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
437
2465
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
438
2466
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
439
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.
|
2467
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:20:35.970506"]]
|
440
2468
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
441
2469
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
442
2470
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
443
2471
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
444
|
-
[1m[36mTRANSACTION (0.
|
445
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.
|
2472
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2473
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
446
2474
|
id: 1
|
447
2475
|
a: 2
|
448
2476
|
b: 4
|
449
2477
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
450
|
-
utc:
|
2478
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
451
2479
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
452
2480
|
name: Etc/UTC
|
453
|
-
time:
|
2481
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
454
2482
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
455
|
-
utc:
|
2483
|
+
utc: 2022-02-25 19:20:35.789310000 Z
|
456
2484
|
zone: *1
|
457
|
-
time:
|
458
|
-
','
|
2485
|
+
time: 2022-02-25 19:20:35.789310000 Z
|
2486
|
+
','2022-02-25 19:20:35.974518',NULL),(NULL,3,'Comment',1,'---
|
459
2487
|
id: 1
|
460
2488
|
content: foo
|
461
2489
|
post_id: 1
|
462
2490
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
463
|
-
utc:
|
2491
|
+
utc: 2022-02-25 19:20:35.967145000 Z
|
464
2492
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
465
2493
|
name: Etc/UTC
|
466
|
-
time:
|
2494
|
+
time: 2022-02-25 19:20:35.967145000 Z
|
467
2495
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
468
|
-
utc:
|
2496
|
+
utc: 2022-02-25 19:20:35.967145000 Z
|
469
2497
|
zone: *1
|
470
|
-
time:
|
471
|
-
','
|
2498
|
+
time: 2022-02-25 19:20:35.967145000 Z
|
2499
|
+
','2022-02-25 19:20:35.974518','comments')[0m
|
472
2500
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
473
|
-
[1m[
|
474
|
-
[1m[
|
475
|
-
[1m[36mPost Update (0.
|
476
|
-
[1m[36mPost Update (0.
|
2501
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
2502
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2503
|
+
[1m[36mPost Update (0.2ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:20:35.976249"], ["id", 1]]
|
2504
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:20:35.987493"], ["id", 1]]
|
477
2505
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
478
|
-
[1m[36mComment Destroy (0.
|
2506
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
479
2507
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
480
2508
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
481
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "
|
2509
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:20:35.989308"], ["updated_at", "2022-02-25 19:20:35.989308"]]
|
482
2510
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
483
|
-
[1m[36mTRANSACTION (0.
|
484
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "
|
2511
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2512
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:20:35.990552"], ["updated_at", "2022-02-25 19:20:35.990552"]]
|
485
2513
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
486
|
-
[1m[
|
487
|
-
[1m[
|
2514
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2515
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
488
2516
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
489
2517
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
490
2518
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
491
2519
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
492
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.
|
493
|
-
[1m[36mPost Load (0.
|
494
|
-
[1m[36mComment Load (0.
|
495
|
-
[1m[36mComment Destroy (0.
|
496
|
-
[1m[36mComment Destroy (0.
|
497
|
-
[1m[36mPost Update (0.
|
498
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "
|
2520
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
2521
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
2522
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
2523
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
2524
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
2525
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:20:35.789310"], ["id", 1]]
|
2526
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:20:35.967145"], ["updated_at", "2022-02-25 19:20:35.967145"]]
|
499
2527
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
500
|
-
[1m[
|
501
|
-
[1m[
|
502
|
-
[1m[
|
2528
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
2529
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2530
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
503
2531
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
504
2532
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
505
2533
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
506
2534
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
507
|
-
[1m[
|
2535
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
508
2536
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
509
2537
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
510
2538
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
511
|
-
[1m[36mTRANSACTION (0.
|
2539
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
512
2540
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
513
2541
|
--------------------------------------------
|
514
2542
|
ActiveSnapshotTest: test_exposes_main_module
|
515
2543
|
--------------------------------------------
|
516
2544
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
517
2545
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
518
|
-
|
519
|
-
|
520
|
-
|
2546
|
+
----------------------------------------
|
2547
|
+
ActiveSnapshotTest: test_exposes_version
|
2548
|
+
----------------------------------------
|
2549
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2550
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2551
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2552
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2553
|
+
[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]]
|
2554
|
+
[1m[35m (6.6ms)[0m [1m[31mDELETE FROM posts;[0m
|
2555
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
2556
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
2557
|
+
[1m[35m (0.7ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
2558
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
2559
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
2560
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
2561
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2562
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:21:38.597166"], ["updated_at", "2022-02-25 19:21:38.597166"]]
|
2563
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
2564
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2565
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2566
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:21:38.612142"]]
|
2567
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
2568
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2569
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2570
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2571
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2572
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
2573
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
2574
|
+
id: 1
|
2575
|
+
a: 1
|
2576
|
+
b: 3
|
2577
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2578
|
+
utc: &1 2022-02-25 19:21:38.597166000 Z
|
2579
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
2580
|
+
name: Etc/UTC
|
2581
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2582
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2583
|
+
utc: *1
|
2584
|
+
zone: *2
|
2585
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2586
|
+
','2022-02-25 19:21:38.630816',NULL)[0m
|
2587
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
2588
|
+
[1m[36mPost Update (0.8ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
2589
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2590
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2591
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:21:38.635374"]]
|
2592
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
2593
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2594
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2595
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2596
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2597
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
2598
|
+
id: 1
|
2599
|
+
a: 2
|
2600
|
+
b: 4
|
2601
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2602
|
+
utc: &1 2022-02-25 19:21:38.597166000 Z
|
2603
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
2604
|
+
name: Etc/UTC
|
2605
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2606
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2607
|
+
utc: *1
|
2608
|
+
zone: *2
|
2609
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2610
|
+
','2022-02-25 19:21:38.639020',NULL)[0m
|
2611
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
2612
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
2613
|
+
-----------------------------
|
2614
|
+
SnapshotItemTest: test_object
|
2615
|
+
-----------------------------
|
521
2616
|
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
522
2617
|
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
523
|
-
[1m[36mTRANSACTION (0.
|
2618
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
524
2619
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
525
|
-
|
526
|
-
|
527
|
-
|
2620
|
+
------------------------------------
|
2621
|
+
SnapshotItemTest: test_relationships
|
2622
|
+
------------------------------------
|
528
2623
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
529
2624
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.
|
534
|
-
[1m[36mActiveSnapshot::
|
535
|
-
[1m[
|
536
|
-
[1m[
|
2625
|
+
------------------------------------
|
2626
|
+
SnapshotItemTest: test_restore_item!
|
2627
|
+
------------------------------------
|
2628
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2629
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
2630
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2631
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2632
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
2633
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2634
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
2635
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2636
|
+
----------------------------------
|
2637
|
+
SnapshotItemTest: test_validations
|
2638
|
+
----------------------------------
|
2639
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2640
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2641
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2642
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2643
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
2644
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
2645
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
537
2646
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
538
2647
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
539
|
-
|
540
|
-
SnapshotTest:
|
541
|
-
|
2648
|
+
--------------------------------------
|
2649
|
+
SnapshotTest: test_fetch_reified_items
|
2650
|
+
--------------------------------------
|
542
2651
|
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2652
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
543
2653
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
544
2654
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
545
2655
|
--------------------------
|
546
2656
|
SnapshotTest: test_restore
|
547
2657
|
--------------------------
|
548
2658
|
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
549
|
-
[1m[36mTRANSACTION (0.
|
550
|
-
[1m[36mPost Load (0.
|
2659
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2660
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
551
2661
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
552
2662
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
553
2663
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
554
2664
|
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
555
|
-
[1m[36mPost Load (0.
|
2665
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
556
2666
|
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
557
2667
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
558
2668
|
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
2669
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
2670
|
+
-----------------------------------------------------
|
2671
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
2672
|
+
-----------------------------------------------------
|
2673
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2674
|
+
[1m[36mSubPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:21:38.700920"], ["updated_at", "2022-02-25 19:21:38.700920"]]
|
2675
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2676
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2677
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:21:38.704492"], ["updated_at", "2022-02-25 19:21:38.704492"]]
|
2678
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2679
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2680
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
2681
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:21:38.706644"]]
|
2682
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2683
|
+
[1m[36mSubPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2684
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
2685
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
2686
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2687
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
2688
|
+
id: 2
|
2689
|
+
a: 1
|
2690
|
+
b: 2
|
2691
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2692
|
+
utc: &1 2022-02-25 19:21:38.700920000 Z
|
2693
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
2694
|
+
name: Etc/UTC
|
2695
|
+
time: 2022-02-25 19:21:38.700920000 Z
|
2696
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2697
|
+
utc: *1
|
2698
|
+
zone: *2
|
2699
|
+
time: 2022-02-25 19:21:38.700920000 Z
|
2700
|
+
','2022-02-25 19:21:38.712301',NULL),(NULL,3,'Comment',1,'---
|
2701
|
+
id: 1
|
2702
|
+
content: Example comment
|
2703
|
+
post_id: 2
|
2704
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2705
|
+
utc: 2022-02-25 19:21:38.704492000 Z
|
2706
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2707
|
+
name: Etc/UTC
|
2708
|
+
time: 2022-02-25 19:21:38.704492000 Z
|
2709
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2710
|
+
utc: 2022-02-25 19:21:38.704492000 Z
|
2711
|
+
zone: *1
|
2712
|
+
time: 2022-02-25 19:21:38.704492000 Z
|
2713
|
+
','2022-02-25 19:21:38.712301','comments')[0m
|
2714
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2715
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
2716
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
2717
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
2718
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2719
|
+
------------------------------
|
2720
|
+
SnapshotTest: test_validations
|
2721
|
+
------------------------------
|
2722
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2723
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
2724
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2725
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2726
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
559
2727
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
560
2728
|
--------------------------------------
|
561
2729
|
SnapshotTest: test_build_snapshot_item
|
562
2730
|
--------------------------------------
|
563
2731
|
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2732
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
564
2733
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
565
|
-
[1m[
|
2734
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
2735
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
2736
|
+
----------------------------------------------------------
|
2737
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
2738
|
+
----------------------------------------------------------
|
2739
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2740
|
+
[1m[36mParentWithoutChildren Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:21:38.727758"], ["updated_at", "2022-02-25 19:21:38.727758"]]
|
2741
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2742
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2743
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
2744
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:21:38.730675"]]
|
2745
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2746
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
2747
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2748
|
+
--------------------------------
|
2749
|
+
SnapshotTest: test_relationships
|
2750
|
+
--------------------------------
|
566
2751
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
567
2752
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2753
|
+
---------------------------
|
2754
|
+
SnapshotTest: test_metadata
|
2755
|
+
---------------------------
|
2756
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2757
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2758
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2759
|
+
--------------------------------------------
|
2760
|
+
ActiveSnapshotTest: test_exposes_main_module
|
2761
|
+
--------------------------------------------
|
2762
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2763
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2764
|
+
----------------------------------------
|
2765
|
+
ActiveSnapshotTest: test_exposes_version
|
2766
|
+
----------------------------------------
|
2767
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
2768
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
2769
|
+
-------------------------------------------
|
2770
|
+
ActiveSnapshotTest: test_snapshot_lifecycle
|
2771
|
+
-------------------------------------------
|
2772
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2773
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2774
|
+
[1m[36mComment Create (0.3ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:21:38.738636"], ["updated_at", "2022-02-25 19:21:38.738636"]]
|
2775
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2776
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2777
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
2778
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2779
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
2780
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:21:38.742989"]]
|
2781
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2782
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2783
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2784
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2785
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2786
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
2787
|
+
id: 1
|
2788
|
+
a: 2
|
2789
|
+
b: 4
|
2790
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2791
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
2792
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2793
|
+
name: Etc/UTC
|
2794
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2795
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2796
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
2797
|
+
zone: *1
|
2798
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2799
|
+
','2022-02-25 19:21:38.746771',NULL),(NULL,3,'Comment',1,'---
|
2800
|
+
id: 1
|
2801
|
+
content: foo
|
2802
|
+
post_id: 1
|
2803
|
+
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
2804
|
+
utc: 2022-02-25 19:21:38.738636000 Z
|
2805
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
2806
|
+
name: Etc/UTC
|
2807
|
+
time: 2022-02-25 19:21:38.738636000 Z
|
2808
|
+
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
2809
|
+
utc: 2022-02-25 19:21:38.738636000 Z
|
2810
|
+
zone: *1
|
2811
|
+
time: 2022-02-25 19:21:38.738636000 Z
|
2812
|
+
','2022-02-25 19:21:38.746771','comments')[0m
|
2813
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2814
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
2815
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2816
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:21:38.748173"], ["id", 1]]
|
2817
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:21:38.748703"], ["id", 1]]
|
2818
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2819
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
2820
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2821
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2822
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:21:38.749982"], ["updated_at", "2022-02-25 19:21:38.749982"]]
|
2823
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2824
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2825
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:21:38.750934"], ["updated_at", "2022-02-25 19:21:38.750934"]]
|
2826
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2827
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2828
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
2829
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2830
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2831
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2832
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2833
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
2834
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
2835
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
2836
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
2837
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
2838
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:21:38.597166"], ["id", 1]]
|
2839
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:21:38.738636"], ["updated_at", "2022-02-25 19:21:38.738636"]]
|
2840
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2841
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
2842
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
2843
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
2844
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2845
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2846
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2847
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2848
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2849
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2850
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2851
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
2852
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
2853
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
568
2854
|
-----------------------------------------------
|
569
2855
|
InstallGeneratorTest: test_should_add_migration
|
570
2856
|
-----------------------------------------------
|
@@ -573,6 +2859,8 @@ InstallGeneratorTest: test_should_add_migration
|
|
573
2859
|
------------------------------------------------
|
574
2860
|
SnapshotsConcernTest: test_has_snapshot_children
|
575
2861
|
------------------------------------------------
|
2862
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT ?[0m [["LIMIT", 1]]
|
2863
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT ?[0m [["LIMIT", 1]]
|
576
2864
|
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
577
2865
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
578
2866
|
----------------------------------------
|
@@ -584,12 +2872,12 @@ SnapshotsConcernTest: test_relationships
|
|
584
2872
|
SnapshotsConcernTest: test_create_snapshot!
|
585
2873
|
-------------------------------------------
|
586
2874
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
587
|
-
[1m[36mTRANSACTION (0.
|
2875
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
588
2876
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
589
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.
|
590
|
-
[1m[36mTRANSACTION (0.
|
591
|
-
[1m[36mPost Load (0.
|
592
|
-
[1m[36mComment Load (0.
|
2877
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.4ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:21:38.788191"]]
|
2878
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2879
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2880
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
593
2881
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
594
2882
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
595
2883
|
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
@@ -597,21 +2885,21 @@ id: 1
|
|
597
2885
|
a: 2
|
598
2886
|
b: 4
|
599
2887
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
600
|
-
utc:
|
2888
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
601
2889
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
602
2890
|
name: Etc/UTC
|
603
|
-
time:
|
2891
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
604
2892
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
605
|
-
utc:
|
2893
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
606
2894
|
zone: *1
|
607
|
-
time:
|
608
|
-
','
|
2895
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2896
|
+
','2022-02-25 19:21:38.792986',NULL)[0m
|
609
2897
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
610
2898
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
611
2899
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
612
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "
|
613
|
-
[1m[36mTRANSACTION (0.
|
614
|
-
[1m[36mPost Load (0.
|
2900
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:21:38.795333"]]
|
2901
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2902
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
615
2903
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
616
2904
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
617
2905
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
@@ -620,21 +2908,21 @@ id: 1
|
|
620
2908
|
a: 2
|
621
2909
|
b: 4
|
622
2910
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
623
|
-
utc:
|
2911
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
624
2912
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
625
2913
|
name: Etc/UTC
|
626
|
-
time:
|
2914
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
627
2915
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
628
|
-
utc:
|
2916
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
629
2917
|
zone: *1
|
630
|
-
time:
|
631
|
-
','
|
2918
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2919
|
+
','2022-02-25 19:21:38.798731',NULL)[0m
|
632
2920
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
633
2921
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
634
2922
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
635
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "
|
2923
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:21:38.800642"]]
|
636
2924
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
637
|
-
[1m[36mPost Load (0.
|
2925
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
638
2926
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
639
2927
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
640
2928
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
@@ -643,131 +2931,94 @@ id: 1
|
|
643
2931
|
a: 2
|
644
2932
|
b: 4
|
645
2933
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
646
|
-
utc:
|
2934
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
647
2935
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
648
2936
|
name: Etc/UTC
|
649
|
-
time:
|
2937
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
650
2938
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
651
|
-
utc:
|
2939
|
+
utc: 2022-02-25 19:21:38.597166000 Z
|
652
2940
|
zone: *1
|
653
|
-
time:
|
654
|
-
','
|
2941
|
+
time: 2022-02-25 19:21:38.597166000 Z
|
2942
|
+
','2022-02-25 19:21:38.803548',NULL)[0m
|
655
2943
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
656
2944
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
657
2945
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
658
|
-
[1m[36mTRANSACTION (0.
|
659
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
660
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
661
|
-
-----------------------------
|
662
|
-
SnapshotItemTest: test_object
|
663
|
-
-----------------------------
|
664
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
665
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
666
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
667
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
668
|
-
----------------------------------
|
669
|
-
SnapshotItemTest: test_validations
|
670
|
-
----------------------------------
|
671
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
672
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
673
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
674
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
675
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
676
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
677
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
678
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
679
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
680
|
-
------------------------------------
|
681
|
-
SnapshotItemTest: test_restore_item!
|
682
|
-
------------------------------------
|
683
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
684
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
685
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
686
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
687
|
-
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
688
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2946
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
689
2947
|
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
690
|
-
[1m[
|
691
|
-
|
692
|
-
|
693
|
-
------------------------------------
|
694
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
695
|
-
[1m[35m (1.5ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
696
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
697
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2948
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2949
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2950
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
698
2951
|
[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]]
|
699
|
-
[1m[35m (
|
700
|
-
[1m[35m (
|
701
|
-
[1m[35m (
|
702
|
-
[1m[35m (
|
703
|
-
[1m[35m (
|
704
|
-
[1m[35m (
|
2952
|
+
[1m[35m (6.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
2953
|
+
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
2954
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshots;[0m
|
2955
|
+
[1m[35m (0.7ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshots';[0m
|
2956
|
+
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM snapshot_items;[0m
|
2957
|
+
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'snapshot_items';[0m
|
705
2958
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
706
2959
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
707
|
-
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "
|
708
|
-
[1m[36mTRANSACTION (0.
|
2960
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 3], ["created_at", "2022-02-25 19:22:05.476133"], ["updated_at", "2022-02-25 19:22:05.476133"]]
|
2961
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
709
2962
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
710
2963
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
711
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.
|
712
|
-
[1m[36mTRANSACTION (0.
|
2964
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:22:05.490924"]]
|
2965
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
713
2966
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
714
2967
|
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
715
2968
|
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
716
2969
|
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
717
2970
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
718
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.
|
2971
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
719
2972
|
id: 1
|
720
2973
|
a: 1
|
721
2974
|
b: 3
|
722
2975
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
723
|
-
utc: &1
|
2976
|
+
utc: &1 2022-02-25 19:22:05.476133000 Z
|
724
2977
|
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
725
2978
|
name: Etc/UTC
|
726
|
-
time:
|
2979
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
727
2980
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
728
2981
|
utc: *1
|
729
2982
|
zone: *2
|
730
|
-
time:
|
731
|
-
','
|
732
|
-
[1m[36mTRANSACTION (0.
|
733
|
-
[1m[36mPost Update (0.
|
2983
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
2984
|
+
','2022-02-25 19:22:05.509251',NULL)[0m
|
2985
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
2986
|
+
[1m[36mPost Update (0.8ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
734
2987
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
735
2988
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
736
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.
|
737
|
-
[1m[36mTRANSACTION (0.
|
2989
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:22:05.513970"]]
|
2990
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
738
2991
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
739
|
-
[1m[36mComment Load (0.
|
740
|
-
[1m[36mNote Load (0.
|
2992
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
2993
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
741
2994
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
742
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.
|
2995
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
743
2996
|
id: 1
|
744
2997
|
a: 2
|
745
2998
|
b: 4
|
746
2999
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
747
|
-
utc: &1
|
3000
|
+
utc: &1 2022-02-25 19:22:05.476133000 Z
|
748
3001
|
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
749
3002
|
name: Etc/UTC
|
750
|
-
time:
|
3003
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
751
3004
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
752
3005
|
utc: *1
|
753
3006
|
zone: *2
|
754
|
-
time:
|
755
|
-
','
|
756
|
-
[1m[36mTRANSACTION (0.
|
757
|
-
[1m[36mTRANSACTION (0.
|
758
|
-
------------------------------
|
759
|
-
SnapshotTest: test_validations
|
760
|
-
------------------------------
|
761
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
762
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.0ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
763
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
764
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
765
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
766
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
3007
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
3008
|
+
','2022-02-25 19:22:05.517708',NULL)[0m
|
3009
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
3010
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
767
3011
|
---------------------------
|
768
3012
|
SnapshotTest: test_metadata
|
769
3013
|
---------------------------
|
3014
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3015
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
3016
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
3017
|
+
--------------------------------------
|
3018
|
+
SnapshotTest: test_fetch_reified_items
|
3019
|
+
--------------------------------------
|
770
3020
|
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3021
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
771
3022
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
772
3023
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
773
3024
|
--------------------------------
|
@@ -775,480 +3026,310 @@ SnapshotTest: test_relationships
|
|
775
3026
|
--------------------------------
|
776
3027
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
777
3028
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
778
|
-
|
779
|
-
SnapshotTest:
|
780
|
-
|
781
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.
|
782
|
-
[1m[
|
783
|
-
[1m[
|
784
|
-
[1m[
|
785
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
786
|
-
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
787
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
788
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
789
|
-
[1m[36mPost Update (0.2ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
790
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
791
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
792
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
793
|
-
--------------------------------------
|
794
|
-
SnapshotTest: test_fetch_reified_items
|
795
|
-
--------------------------------------
|
796
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
797
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
798
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
799
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
800
|
-
--------------------------------------
|
801
|
-
SnapshotTest: test_build_snapshot_item
|
802
|
-
--------------------------------------
|
803
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
804
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
805
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3029
|
+
------------------------------
|
3030
|
+
SnapshotTest: test_validations
|
3031
|
+
------------------------------
|
3032
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
3033
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
3034
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
3035
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
806
3036
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
807
3037
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3038
|
+
----------------------------------------------------------
|
3039
|
+
SnapshotTest: test_single_model_snapshots_without_children
|
3040
|
+
----------------------------------------------------------
|
812
3041
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
813
|
-
[1m[
|
3042
|
+
[1m[36mParentWithoutChildren Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:22:05.566200"], ["updated_at", "2022-02-25 19:22:05.566200"]]
|
814
3043
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
815
|
-
[1m[
|
816
|
-
[1m[
|
817
|
-
[1m[
|
818
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
819
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2021-08-19 23:29:11.386301"]]
|
3044
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3045
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
3046
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "ParentWithoutChildren"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:22:05.569864"]]
|
820
3047
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
821
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
822
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
823
|
-
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
824
3048
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
825
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'
|
826
|
-
id:
|
827
|
-
a:
|
828
|
-
b:
|
829
|
-
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
830
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
831
|
-
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
832
|
-
name: Etc/UTC
|
833
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
834
|
-
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
835
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
836
|
-
zone: *1
|
837
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
838
|
-
','2021-08-19 23:29:11.389012',NULL),(NULL,3,'Comment',1,'---
|
839
|
-
id: 1
|
840
|
-
content: foo
|
841
|
-
post_id: 1
|
3049
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'ParentWithoutChildren',2,'---
|
3050
|
+
id: 2
|
3051
|
+
a: 1
|
3052
|
+
b: 2
|
842
3053
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
843
|
-
utc:
|
844
|
-
zone: &
|
3054
|
+
utc: &1 2022-02-25 19:22:05.566200000 Z
|
3055
|
+
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
845
3056
|
name: Etc/UTC
|
846
|
-
time:
|
3057
|
+
time: 2022-02-25 19:22:05.566200000 Z
|
847
3058
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
848
|
-
utc:
|
849
|
-
zone: *
|
850
|
-
time:
|
851
|
-
','
|
852
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
853
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
854
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
855
|
-
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2021-08-20 23:29:11.390035"], ["id", 1]]
|
856
|
-
[1m[36mPost Update (0.0ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2021-08-20 23:29:11.390390"], ["id", 1]]
|
857
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
858
|
-
[1m[36mComment Destroy (0.0ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
859
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
860
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
861
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2021-08-19 23:29:11.391260"], ["updated_at", "2021-08-19 23:29:11.391260"]]
|
3059
|
+
utc: *1
|
3060
|
+
zone: *2
|
3061
|
+
time: 2022-02-25 19:22:05.566200000 Z
|
3062
|
+
','2022-02-25 19:22:05.572027',NULL)[0m
|
862
3063
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
863
3064
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
864
|
-
[1m[
|
3065
|
+
[1m[36mParentWithoutChildren Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ?, "updated_at" = ? WHERE "posts"."id" = ?[0m [["a", 9], ["b", 9], ["updated_at", "2022-02-25 19:22:05.572967"], ["id", 2]]
|
865
3066
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
866
|
-
[1m[
|
867
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
868
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
869
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
870
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
871
|
-
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
3067
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "ParentWithoutChildren"], ["LIMIT", 1]]
|
872
3068
|
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
873
|
-
[1m[
|
874
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
875
|
-
[1m[36mComment Destroy (0.0ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
876
|
-
[1m[36mComment Destroy (0.0ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
877
|
-
[1m[36mPost Update (0.0ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2021-08-19 23:29:11.308109"], ["id", 1]]
|
878
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2021-08-19 23:29:11.384159"], ["updated_at", "2021-08-19 23:29:11.384159"]]
|
879
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
880
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
881
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
882
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
883
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
884
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
885
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
886
|
-
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
887
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
888
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
889
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
890
|
-
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
891
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
892
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
893
|
-
----------------------------------------
|
894
|
-
ActiveSnapshotTest: test_exposes_version
|
895
|
-
----------------------------------------
|
896
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
897
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
898
|
-
--------------------------------------------
|
899
|
-
ActiveSnapshotTest: test_exposes_main_module
|
900
|
-
--------------------------------------------
|
901
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
902
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
903
|
-
------------------------------------
|
904
|
-
SnapshotItemTest: test_relationships
|
905
|
-
------------------------------------
|
906
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
907
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
908
|
-
------------------------------------
|
909
|
-
SnapshotItemTest: test_restore_item!
|
910
|
-
------------------------------------
|
911
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
912
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
913
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
914
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
915
|
-
[1m[36mPost Update (0.2ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
916
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
917
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
918
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
919
|
-
----------------------------------
|
920
|
-
SnapshotItemTest: test_validations
|
921
|
-
----------------------------------
|
922
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
923
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
924
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
925
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
926
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
927
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
928
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
929
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
3069
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
930
3070
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
931
|
-
|
932
|
-
|
933
|
-
|
3071
|
+
--------------------------
|
3072
|
+
SnapshotTest: test_restore
|
3073
|
+
--------------------------
|
934
3074
|
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
935
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
936
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
937
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
938
|
-
-------------------------------------------
|
939
|
-
SnapshotsConcernTest: test_create_snapshot!
|
940
|
-
-------------------------------------------
|
941
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
942
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
943
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
944
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2021-08-19 23:29:11.411538"]]
|
945
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
946
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
947
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
948
|
-
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
949
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
950
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
951
|
-
id: 1
|
952
|
-
a: 2
|
953
|
-
b: 4
|
954
|
-
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
955
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
956
|
-
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
957
|
-
name: Etc/UTC
|
958
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
959
|
-
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
960
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
961
|
-
zone: *1
|
962
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
963
|
-
','2021-08-19 23:29:11.413742',NULL)[0m
|
964
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
965
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
966
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
967
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2021-08-19 23:29:11.415146"]]
|
968
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
969
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
970
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
971
|
-
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
972
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
973
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,4,'Post',1,'---
|
974
|
-
id: 1
|
975
|
-
a: 2
|
976
|
-
b: 4
|
977
|
-
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
978
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
979
|
-
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
980
|
-
name: Etc/UTC
|
981
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
982
|
-
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
983
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
984
|
-
zone: *1
|
985
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
986
|
-
','2021-08-19 23:29:11.417040',NULL)[0m
|
987
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
988
3075
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
989
|
-
[1m[
|
990
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2021-08-19 23:29:11.418345"]]
|
991
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3076
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
992
3077
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
993
3078
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
994
3079
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
995
|
-
[1m[
|
996
|
-
[1m[
|
997
|
-
id
|
998
|
-
a: 2
|
999
|
-
b: 4
|
1000
|
-
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1001
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
1002
|
-
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1003
|
-
name: Etc/UTC
|
1004
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
1005
|
-
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1006
|
-
utc: 2021-08-19 23:29:11.308109000 Z
|
1007
|
-
zone: *1
|
1008
|
-
time: 2021-08-19 23:29:11.308109000 Z
|
1009
|
-
','2021-08-19 23:29:11.420235',NULL)[0m
|
3080
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
3081
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
3082
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1010
3083
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1011
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1012
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1013
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
1014
3084
|
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
1015
3085
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
[1m[
|
1020
|
-
[1m[36mPost Load (0.
|
1021
|
-
[1m[
|
1022
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1023
|
-
----------------------------------------
|
1024
|
-
SnapshotsConcernTest: test_relationships
|
1025
|
-
----------------------------------------
|
3086
|
+
--------------------------------------
|
3087
|
+
SnapshotTest: test_build_snapshot_item
|
3088
|
+
--------------------------------------
|
3089
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3090
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3091
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1026
3092
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1027
3093
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[
|
1032
|
-
[1m[
|
1033
|
-
[1m[
|
1034
|
-
[1m[
|
1035
|
-
[1m[
|
1036
|
-
[1m[
|
1037
|
-
[1m[
|
1038
|
-
[1m[
|
1039
|
-
[1m[
|
1040
|
-
[1m[
|
1041
|
-
[1m[
|
1042
|
-
[1m[
|
1043
|
-
[1m[
|
1044
|
-
[1m[
|
1045
|
-
[1m[
|
1046
|
-
|
1047
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1048
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2021-08-19 23:29:21.092194"]]
|
1049
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
1050
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1051
|
-
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1052
|
-
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1053
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1054
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1055
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,1,'Post',1,'---
|
1056
|
-
id: 1
|
3094
|
+
-----------------------------------------------------
|
3095
|
+
SnapshotTest: test_fetch_reified_items_with_sti_class
|
3096
|
+
-----------------------------------------------------
|
3097
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3098
|
+
[1m[36mSubPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("a", "b", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["a", 1], ["b", 2], ["created_at", "2022-02-25 19:22:05.589975"], ["updated_at", "2022-02-25 19:22:05.589975"]]
|
3099
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3100
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3101
|
+
[1m[36mComment Create (0.2ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Example comment"], ["post_id", 2], ["created_at", "2022-02-25 19:22:05.594950"], ["updated_at", "2022-02-25 19:22:05.594950"]]
|
3102
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3103
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3104
|
+
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
3105
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.2ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 2], ["identifier", "v1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:22:05.597775"]]
|
3106
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3107
|
+
[1m[36mSubPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
3108
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 2]]
|
3109
|
+
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 2]]
|
3110
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3111
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'SubPost',2,'---
|
3112
|
+
id: 2
|
1057
3113
|
a: 1
|
1058
|
-
b:
|
3114
|
+
b: 2
|
1059
3115
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1060
|
-
utc: &1
|
3116
|
+
utc: &1 2022-02-25 19:22:05.589975000 Z
|
1061
3117
|
zone: &2 !ruby/object:ActiveSupport::TimeZone
|
1062
3118
|
name: Etc/UTC
|
1063
|
-
time:
|
3119
|
+
time: 2022-02-25 19:22:05.589975000 Z
|
1064
3120
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1065
3121
|
utc: *1
|
1066
3122
|
zone: *2
|
1067
|
-
time:
|
1068
|
-
','
|
1069
|
-
[1m[36mTRANSACTION (1.0ms)[0m [1m[36mcommit transaction[0m
|
1070
|
-
[1m[36mPost Update (1.0ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 2], ["b", 4], ["id", 1]]
|
1071
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1072
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1073
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.4ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "v2"], ["metadata", "--- {}\n"], ["created_at", "2021-08-19 23:29:21.113375"]]
|
1074
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
1075
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1076
|
-
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1077
|
-
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1078
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1079
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.3ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,2,'Post',1,'---
|
3123
|
+
time: 2022-02-25 19:22:05.589975000 Z
|
3124
|
+
','2022-02-25 19:22:05.602664',NULL),(NULL,3,'Comment',1,'---
|
1080
3125
|
id: 1
|
1081
|
-
|
1082
|
-
|
3126
|
+
content: Example comment
|
3127
|
+
post_id: 2
|
1083
3128
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1084
|
-
utc:
|
1085
|
-
zone: &
|
3129
|
+
utc: 2022-02-25 19:22:05.594950000 Z
|
3130
|
+
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1086
3131
|
name: Etc/UTC
|
1087
|
-
time:
|
3132
|
+
time: 2022-02-25 19:22:05.594950000 Z
|
1088
3133
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1089
|
-
utc:
|
1090
|
-
zone: *
|
1091
|
-
time:
|
1092
|
-
','
|
1093
|
-
[1m[36mTRANSACTION (0.
|
1094
|
-
[1m[
|
1095
|
-
|
1096
|
-
|
1097
|
-
----------------------------------------
|
1098
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
3134
|
+
utc: 2022-02-25 19:22:05.594950000 Z
|
3135
|
+
zone: *1
|
3136
|
+
time: 2022-02-25 19:22:05.594950000 Z
|
3137
|
+
','2022-02-25 19:22:05.602664','comments')[0m
|
3138
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3139
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.0ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 2], ["item_type", "Post"], ["LIMIT", 1]]
|
3140
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
3141
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
1099
3142
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1100
3143
|
-------------------------------------------
|
1101
3144
|
ActiveSnapshotTest: test_snapshot_lifecycle
|
1102
3145
|
-------------------------------------------
|
1103
3146
|
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1104
|
-
[1m[36mTRANSACTION (0.
|
1105
|
-
[1m[36mComment Create (0.
|
3147
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3148
|
+
[1m[36mComment Create (0.3ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:22:05.609561"], ["updated_at", "2022-02-25 19:22:05.609561"]]
|
1106
3149
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1107
|
-
[1m[
|
1108
|
-
[1m[
|
3150
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
3151
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1109
3152
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1110
3153
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "snapshot-1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1111
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.
|
3154
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.3ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "snapshot-1"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:22:05.612792"]]
|
1112
3155
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1113
3156
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1114
3157
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1115
3158
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1116
|
-
[1m[36mTRANSACTION (0.
|
1117
|
-
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.
|
3159
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3160
|
+
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
1118
3161
|
id: 1
|
1119
3162
|
a: 2
|
1120
3163
|
b: 4
|
1121
3164
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1122
|
-
utc:
|
3165
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1123
3166
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1124
3167
|
name: Etc/UTC
|
1125
|
-
time:
|
3168
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
1126
3169
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1127
|
-
utc:
|
3170
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1128
3171
|
zone: *1
|
1129
|
-
time:
|
1130
|
-
','
|
3172
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
3173
|
+
','2022-02-25 19:22:05.616971',NULL),(NULL,3,'Comment',1,'---
|
1131
3174
|
id: 1
|
1132
3175
|
content: foo
|
1133
3176
|
post_id: 1
|
1134
3177
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1135
|
-
utc:
|
3178
|
+
utc: 2022-02-25 19:22:05.609561000 Z
|
1136
3179
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1137
3180
|
name: Etc/UTC
|
1138
|
-
time:
|
3181
|
+
time: 2022-02-25 19:22:05.609561000 Z
|
1139
3182
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1140
|
-
utc:
|
3183
|
+
utc: 2022-02-25 19:22:05.609561000 Z
|
1141
3184
|
zone: *1
|
1142
|
-
time:
|
1143
|
-
','
|
3185
|
+
time: 2022-02-25 19:22:05.609561000 Z
|
3186
|
+
','2022-02-25 19:22:05.616971','comments')[0m
|
1144
3187
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1145
|
-
[1m[
|
1146
|
-
[1m[
|
1147
|
-
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "
|
1148
|
-
[1m[36mPost Update (0.
|
1149
|
-
[1m[36mTRANSACTION (0.
|
1150
|
-
[1m[36mComment Destroy (0.
|
3188
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
3189
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
3190
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:22:05.618983"], ["id", 1]]
|
3191
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-26 19:22:05.620010"], ["id", 1]]
|
3192
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3193
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
1151
3194
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1152
3195
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1153
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "
|
3196
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:22:05.621430"], ["updated_at", "2022-02-25 19:22:05.621430"]]
|
1154
3197
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1155
3198
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1156
|
-
[1m[36mComment Create (0.
|
3199
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "bar"], ["post_id", 1], ["created_at", "2022-02-25 19:22:05.622705"], ["updated_at", "2022-02-25 19:22:05.622705"]]
|
1157
3200
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1158
|
-
[1m[
|
1159
|
-
[1m[
|
3201
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
3202
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
1160
3203
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1161
3204
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1162
|
-
[1m[36mComment Load (0.
|
3205
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1163
3206
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1164
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.
|
1165
|
-
[1m[36mPost Load (0.
|
1166
|
-
[1m[36mComment Load (0.
|
1167
|
-
[1m[36mComment Destroy (0.
|
3207
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 3]]
|
3208
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
3209
|
+
[1m[36mComment Load (0.1ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."id" = ?[0m [["id", 1]]
|
3210
|
+
[1m[36mComment Destroy (0.1ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 2]]
|
1168
3211
|
[1m[36mComment Destroy (0.0ms)[0m [1m[31mDELETE FROM "comments" WHERE "comments"."id" = ?[0m [["id", 3]]
|
1169
|
-
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "
|
1170
|
-
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "
|
1171
|
-
[1m[36mTRANSACTION (0.
|
1172
|
-
[1m[
|
1173
|
-
[1m[
|
1174
|
-
[1m[
|
1175
|
-
[1m[36mPost Load (0.
|
1176
|
-
[1m[36mPost Load (0.
|
1177
|
-
[1m[36mComment Load (0.
|
3212
|
+
[1m[36mPost Update (0.1ms)[0m [1m[33mUPDATE "posts" SET "updated_at" = ? WHERE "posts"."id" = ?[0m [["updated_at", "2022-02-25 19:22:05.476133"], ["id", 1]]
|
3213
|
+
[1m[36mComment Create (0.1ms)[0m [1m[32mINSERT INTO "comments" ("id", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["id", 1], ["content", "foo"], ["post_id", 1], ["created_at", "2022-02-25 19:22:05.609561"], ["updated_at", "2022-02-25 19:22:05.609561"]]
|
3214
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3215
|
+
[1m[36mActiveSnapshot::SnapshotItem Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshot_items"[0m
|
3216
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots"[0m
|
3217
|
+
[1m[36mActiveSnapshot::Snapshot Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "snapshots" WHERE "snapshots"."identifier" = ?[0m [["identifier", "snapshot-1"]]
|
3218
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
3219
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
3220
|
+
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1178
3221
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1179
|
-
[1m[
|
3222
|
+
[1m[36mComment Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1180
3223
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1181
3224
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1182
3225
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1183
|
-
[1m[36mTRANSACTION (0.
|
3226
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[31mrollback transaction[0m
|
1184
3227
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1185
3228
|
--------------------------------------------
|
1186
3229
|
ActiveSnapshotTest: test_exposes_main_module
|
1187
3230
|
--------------------------------------------
|
1188
3231
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1189
3232
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
[1m[
|
1194
|
-
[1m[
|
3233
|
+
----------------------------------------
|
3234
|
+
ActiveSnapshotTest: test_exposes_version
|
3235
|
+
----------------------------------------
|
3236
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
3237
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
3238
|
+
------------------------------------
|
3239
|
+
SnapshotItemTest: test_relationships
|
3240
|
+
------------------------------------
|
3241
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
3242
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
3243
|
+
-----------------------------
|
3244
|
+
SnapshotItemTest: test_object
|
3245
|
+
-----------------------------
|
3246
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3247
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
3248
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
3249
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
3250
|
+
----------------------------------
|
3251
|
+
SnapshotItemTest: test_validations
|
3252
|
+
----------------------------------
|
3253
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
3254
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
3255
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
3256
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
3257
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
3258
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
3259
|
+
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
1195
3260
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1196
3261
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
3262
|
+
------------------------------------
|
3263
|
+
SnapshotItemTest: test_restore_item!
|
3264
|
+
------------------------------------
|
3265
|
+
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3266
|
+
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
3267
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
3268
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3269
|
+
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
3270
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3271
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[31mrollback transaction[0m
|
3272
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
3273
|
+
----------------------------------------
|
3274
|
+
SnapshotsConcernTest: test_relationships
|
3275
|
+
----------------------------------------
|
3276
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
3277
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1197
3278
|
-------------------------------------------
|
1198
3279
|
SnapshotsConcernTest: test_create_snapshot!
|
1199
3280
|
-------------------------------------------
|
1200
|
-
[1m[36mPost Load (0.
|
1201
|
-
[1m[36mTRANSACTION (0.
|
3281
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
3282
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1202
3283
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1203
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.
|
1204
|
-
[1m[36mTRANSACTION (0.
|
3284
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.4ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 1"], ["metadata", "---\n:foo: :bar\n"], ["created_at", "2022-02-25 19:22:05.657495"]]
|
3285
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1205
3286
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1206
3287
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1207
|
-
[1m[36mNote Load (0.
|
1208
|
-
[1m[36mTRANSACTION (0.
|
3288
|
+
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
3289
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1209
3290
|
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.2ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,3,'Post',1,'---
|
1210
3291
|
id: 1
|
1211
3292
|
a: 2
|
1212
3293
|
b: 4
|
1213
3294
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1214
|
-
utc:
|
3295
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1215
3296
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1216
3297
|
name: Etc/UTC
|
1217
|
-
time:
|
3298
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
1218
3299
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1219
|
-
utc:
|
3300
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1220
3301
|
zone: *1
|
1221
|
-
time:
|
1222
|
-
','
|
3302
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
3303
|
+
','2022-02-25 19:22:05.661726',NULL)[0m
|
1223
3304
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1224
|
-
[1m[36mTRANSACTION (0.
|
3305
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1225
3306
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 2"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1226
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "
|
3307
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 2"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:22:05.663723"]]
|
1227
3308
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1228
3309
|
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1229
3310
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1230
3311
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1231
|
-
[1m[36mTRANSACTION (0.
|
3312
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1232
3313
|
[1m[36mActiveSnapshot::SnapshotItem Create Many (0.1ms)[0m [1m[32mINSERT INTO "snapshot_items" ("id","snapshot_id","item_type","item_id","object","created_at","child_group_name") VALUES (NULL,4,'Post',1,'---
|
1233
3314
|
id: 1
|
1234
3315
|
a: 2
|
1235
3316
|
b: 4
|
1236
3317
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1237
|
-
utc:
|
3318
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1238
3319
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1239
3320
|
name: Etc/UTC
|
1240
|
-
time:
|
3321
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
1241
3322
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1242
|
-
utc:
|
3323
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1243
3324
|
zone: *1
|
1244
|
-
time:
|
1245
|
-
','
|
3325
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
3326
|
+
','2022-02-25 19:22:05.666294',NULL)[0m
|
1246
3327
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1247
3328
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1248
3329
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1249
|
-
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "
|
3330
|
+
[1m[36mActiveSnapshot::Snapshot Create (0.1ms)[0m [1m[32mINSERT INTO "snapshots" ("item_type", "item_id", "identifier", "metadata", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["item_type", "Post"], ["item_id", 1], ["identifier", "foobar 3"], ["metadata", "--- {}\n"], ["created_at", "2022-02-25 19:22:05.679118"]]
|
1250
3331
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1251
|
-
[1m[36mPost Load (0.
|
3332
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1252
3333
|
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1253
3334
|
[1m[36mNote Load (0.0ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1254
3335
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
@@ -1257,112 +3338,29 @@ id: 1
|
|
1257
3338
|
a: 2
|
1258
3339
|
b: 4
|
1259
3340
|
created_at: !ruby/object:ActiveSupport::TimeWithZone
|
1260
|
-
utc:
|
3341
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1261
3342
|
zone: &1 !ruby/object:ActiveSupport::TimeZone
|
1262
3343
|
name: Etc/UTC
|
1263
|
-
time:
|
3344
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
1264
3345
|
updated_at: !ruby/object:ActiveSupport::TimeWithZone
|
1265
|
-
utc:
|
3346
|
+
utc: 2022-02-25 19:22:05.476133000 Z
|
1266
3347
|
zone: *1
|
1267
|
-
time:
|
1268
|
-
','
|
3348
|
+
time: 2022-02-25 19:22:05.476133000 Z
|
3349
|
+
','2022-02-25 19:22:05.682462',NULL)[0m
|
1269
3350
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1270
3351
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1271
3352
|
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "foobar 3"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1272
3353
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
1273
3354
|
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
1274
3355
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1275
|
-
|
1276
|
-
SnapshotsConcernTest:
|
1277
|
-
|
3356
|
+
------------------------------------------------
|
3357
|
+
SnapshotsConcernTest: test_has_snapshot_children
|
3358
|
+
------------------------------------------------
|
3359
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT ?[0m [["LIMIT", 1]]
|
3360
|
+
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT ?[0m [["LIMIT", 1]]
|
1278
3361
|
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
1279
|
-
[1m[36mTRANSACTION (0.
|
3362
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1280
3363
|
-----------------------------------------------
|
1281
3364
|
InstallGeneratorTest: test_should_add_migration
|
1282
3365
|
-----------------------------------------------
|
1283
3366
|
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
1284
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1285
|
-
--------------------------------------
|
1286
|
-
SnapshotTest: test_fetch_reified_items
|
1287
|
-
--------------------------------------
|
1288
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1289
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1290
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1291
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1292
|
-
--------------------------------
|
1293
|
-
SnapshotTest: test_relationships
|
1294
|
-
--------------------------------
|
1295
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1296
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1297
|
-
--------------------------------------
|
1298
|
-
SnapshotTest: test_build_snapshot_item
|
1299
|
-
--------------------------------------
|
1300
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1301
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1302
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1303
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1304
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1305
|
-
--------------------------
|
1306
|
-
SnapshotTest: test_restore
|
1307
|
-
--------------------------
|
1308
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1309
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1310
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1311
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1312
|
-
[1m[36mComment Load (0.0ms)[0m [1m[34mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ?[0m [["post_id", 1]]
|
1313
|
-
[1m[36mNote Load (0.1ms)[0m [1m[34mSELECT "notes".* FROM "notes" WHERE "notes"."post_id" = ?[0m [["post_id", 1]]
|
1314
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1315
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ?[0m [["id", 1]]
|
1316
|
-
[1m[36mPost Update (0.3ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1317
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1318
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
1319
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1320
|
-
------------------------------
|
1321
|
-
SnapshotTest: test_validations
|
1322
|
-
------------------------------
|
1323
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.2ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1324
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" IS NULL AND "snapshots"."item_id" IS NULL AND "snapshots"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1325
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "v1"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1326
|
-
[1m[36mActiveSnapshot::Snapshot Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshots" WHERE "snapshots"."identifier" = ? AND "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? LIMIT ?[0m [["identifier", "random"], ["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1327
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1328
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1329
|
-
---------------------------
|
1330
|
-
SnapshotTest: test_metadata
|
1331
|
-
---------------------------
|
1332
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1333
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1334
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1335
|
-
-----------------------------
|
1336
|
-
SnapshotItemTest: test_object
|
1337
|
-
-----------------------------
|
1338
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1339
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.1ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1340
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1341
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1342
|
-
----------------------------------
|
1343
|
-
SnapshotItemTest: test_validations
|
1344
|
-
----------------------------------
|
1345
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_type" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1346
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" IS NULL AND "snapshot_items"."snapshot_id" IS NULL AND "snapshot_items"."item_id" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
1347
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" WHERE "snapshots"."item_id" = ? AND "snapshots"."item_type" = ? ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["item_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1348
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Post"], ["LIMIT", 1]]
|
1349
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Post"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
1350
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_id" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_type" = ? LIMIT ?[0m [["item_id", 1], ["snapshot_id", 1], ["item_type", "Foobar"], ["LIMIT", 1]]
|
1351
|
-
[1m[36mActiveSnapshot::SnapshotItem Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "snapshot_items" WHERE "snapshot_items"."item_type" = ? AND "snapshot_items"."snapshot_id" = ? AND "snapshot_items"."item_id" = ? LIMIT ?[0m [["item_type", "Foobar"], ["snapshot_id", 1], ["item_id", 1], ["LIMIT", 1]]
|
1352
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1353
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1354
|
-
------------------------------------
|
1355
|
-
SnapshotItemTest: test_relationships
|
1356
|
-
------------------------------------
|
1357
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
1358
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
1359
|
-
------------------------------------
|
1360
|
-
SnapshotItemTest: test_restore_item!
|
1361
|
-
------------------------------------
|
1362
|
-
[1m[36mActiveSnapshot::Snapshot Load (0.1ms)[0m [1m[34mSELECT "snapshots".* FROM "snapshots" ORDER BY "snapshots"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1363
|
-
[1m[36mActiveSnapshot::SnapshotItem Load (0.0ms)[0m [1m[34mSELECT "snapshot_items".* FROM "snapshot_items" WHERE "snapshot_items"."snapshot_id" = ?[0m [["snapshot_id", 1]]
|
1364
|
-
[1m[36mPost Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1365
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1366
|
-
[1m[36mPost Update (0.2ms)[0m [1m[33mUPDATE "posts" SET "a" = ?, "b" = ? WHERE "posts"."id" = ?[0m [["a", 1], ["b", 3], ["id", 1]]
|
1367
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1368
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|