historiographer 4.4.3 → 4.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +14 -0
  3. data/VERSION +1 -1
  4. data/historiographer.gemspec +26 -13
  5. data/lib/historiographer.rb +5 -0
  6. data/spec/db/migrate/20250827000000_create_templates.rb +9 -0
  7. data/spec/db/migrate/20250827000001_create_template_histories.rb +9 -0
  8. data/spec/db/migrate/20250827000002_create_websites.rb +9 -0
  9. data/spec/db/migrate/20250827000003_create_website_histories.rb +9 -0
  10. data/spec/db/migrate/20250827000004_create_template_files.rb +15 -0
  11. data/spec/db/migrate/20250827000005_create_template_file_histories.rb +9 -0
  12. data/spec/db/migrate/20250827000006_create_website_files.rb +15 -0
  13. data/spec/db/migrate/20250827000007_create_website_file_histories.rb +9 -0
  14. data/spec/db/migrate/20250827000008_create_code_files_view.rb +62 -0
  15. data/spec/db/schema.rb +126 -1
  16. data/spec/examples.txt +71 -0
  17. data/spec/internal/log/development.log +0 -0
  18. data/spec/internal/log/test.log +1479 -0
  19. data/spec/models/code_file.rb +16 -0
  20. data/spec/models/template.rb +6 -0
  21. data/spec/models/template_file.rb +5 -0
  22. data/spec/models/template_file_history.rb +3 -0
  23. data/spec/models/template_history.rb +3 -0
  24. data/spec/models/website.rb +7 -0
  25. data/spec/models/website_file.rb +5 -0
  26. data/spec/models/website_file_history.rb +3 -0
  27. data/spec/models/website_history.rb +3 -0
  28. data/spec/view_backed_model_spec.rb +166 -0
  29. metadata +24 -11
  30. data/.document +0 -5
  31. data/.rspec +0 -1
  32. data/.ruby-version +0 -1
  33. data/.standalone_migrations +0 -6
  34. data/Gemfile.lock +0 -355
  35. data/historiographer-4.1.12.gem +0 -0
  36. data/historiographer-4.1.13.gem +0 -0
  37. data/historiographer-4.1.14.gem +0 -0
  38. data/historiographer-4.3.0.gem +0 -0
@@ -0,0 +1,1479 @@
1
+  (25.3ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
2
+  (37.3ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
3
+  (0.1ms) DROP TABLE IF EXISTS "websites"
4
+  (1.7ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
5
+  (0.2ms) DROP TABLE IF EXISTS "website_histories"
6
+  (1.0ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
7
+  (0.4ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
8
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
9
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
10
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
11
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
12
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
13
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
14
+  (0.7ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
15
+  (0.1ms) DROP TABLE IF EXISTS "users"
16
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
17
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
18
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
19
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
20
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
21
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
22
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 10:58:49.656912', '2025-08-22 10:58:49.656915') RETURNING "key"
23
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
24
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
25
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
26
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
27
+ TRANSACTION (0.1ms) BEGIN
28
+  (0.5ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
29
+ TRANSACTION (0.1ms) COMMIT
30
+  (1.7ms)  SELECT schemaname || '.' || tablename
31
+ FROM pg_tables
32
+ WHERE
33
+ tablename !~ '_prt_' AND
34
+ tablename <> 'schema_migrations'
35
+ AND tablename <> 'ar_internal_metadata'
36
+ AND
37
+ schemaname = ANY (current_schemas(false))
38
+ 
39
+  (0.9ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
40
+  (12.7ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
41
+ TRANSACTION (0.3ms) BEGIN
42
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
43
+ TRANSACTION (0.1ms) COMMIT
44
+ TRANSACTION (0.2ms) BEGIN
45
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
46
+ User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 10:58:49.821105"], ["updated_at", "2025-08-22 10:58:49.821105"]]
47
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
48
+ TRANSACTION (0.1ms) ROLLBACK
49
+  (39.4ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
50
+  (43.8ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
51
+  (0.1ms) DROP TABLE IF EXISTS "websites"
52
+  (1.7ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
53
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
54
+  (0.9ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
55
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
56
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
57
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
58
+  (0.2ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
59
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
60
+  (0.2ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
61
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
62
+  (0.7ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
63
+  (0.1ms) DROP TABLE IF EXISTS "users"
64
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
65
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
66
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
67
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
68
+  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
69
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
70
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 10:59:08.221282', '2025-08-22 10:59:08.221284') RETURNING "key"
71
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
72
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
73
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
74
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
75
+ TRANSACTION (0.1ms) BEGIN
76
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
77
+ TRANSACTION (0.1ms) COMMIT
78
+  (0.5ms)  SELECT schemaname || '.' || tablename
79
+ FROM pg_tables
80
+ WHERE
81
+ tablename !~ '_prt_' AND
82
+ tablename <> 'schema_migrations'
83
+ AND tablename <> 'ar_internal_metadata'
84
+ AND
85
+ schemaname = ANY (current_schemas(false))
86
+ 
87
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
88
+  (5.3ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
89
+ TRANSACTION (0.2ms) BEGIN
90
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
91
+ TRANSACTION (0.1ms) COMMIT
92
+ TRANSACTION (0.1ms) BEGIN
93
+ TRANSACTION (0.1ms) ROLLBACK
94
+ TRANSACTION (0.1ms) BEGIN
95
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
96
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 10:59:08.332001"], ["updated_at", "2025-08-22 10:59:08.332001"]]
97
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
98
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
99
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 10:59:08.334332"], ["updated_at", "2025-08-22 10:59:08.334332"]]
100
+ WebsiteHistory Load (0.4ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
101
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 10:59:08.334332', '2025-08-22 10:59:08.334332', 1, '2025-08-22 10:59:08.334814', 1) ON CONFLICT DO NOTHING RETURNING "id"
102
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
103
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
104
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
105
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
106
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
107
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 10:59:08.345249"], ["id", 1]]
108
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
109
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 10:59:08.334332', '2025-08-22 10:59:08.345249', 1, '2025-08-22 10:59:08.345698', 1) ON CONFLICT DO NOTHING RETURNING "id"
110
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
111
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 10:59:08.345698"], ["id", 1]]
112
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
113
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
114
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
115
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
116
+ TRANSACTION (0.1ms) ROLLBACK
117
+ TRANSACTION (0.1ms) BEGIN
118
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
119
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 10:59:08.348127"], ["updated_at", "2025-08-22 10:59:08.348127"]]
120
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
121
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 10:59:08.348127', '2025-08-22 10:59:08.348127', 2, '2025-08-22 10:59:08.348594', 1) ON CONFLICT DO NOTHING RETURNING "id"
122
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
123
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
124
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
125
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
126
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
127
+ Deploy Create (0.3ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 10:59:08.357498"], ["updated_at", "2025-08-22 10:59:08.357498"]]
128
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
129
+ Deploy Exists? (0.1ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
130
+ Deploy Count (0.1ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
131
+ TRANSACTION (0.1ms) ROLLBACK
132
+ TRANSACTION (0.1ms) BEGIN
133
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
134
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 10:59:08.359658"], ["updated_at", "2025-08-22 10:59:08.359658"]]
135
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
136
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 10:59:08.359658', '2025-08-22 10:59:08.359658', 3, '2025-08-22 10:59:08.360180', 1) ON CONFLICT DO NOTHING RETURNING "id"
137
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
138
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
139
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
140
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 10:59:08.361028"], ["id", 3]]
141
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
142
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 10:59:08.359658', '2025-08-22 10:59:08.361028', 3, '2025-08-22 10:59:08.361375', 1) ON CONFLICT DO NOTHING RETURNING "id"
143
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
144
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 10:59:08.361375"], ["id", 4]]
145
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
146
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
147
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
148
+ TRANSACTION (0.1ms) ROLLBACK
149
+ TRANSACTION (0.1ms) BEGIN
150
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
151
+ Website Create (0.2ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 10:59:08.366902"], ["updated_at", "2025-08-22 10:59:08.366902"]]
152
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
153
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 10:59:08.366902', '2025-08-22 10:59:08.366902', 4, '2025-08-22 10:59:08.367403', 1) ON CONFLICT DO NOTHING RETURNING "id"
154
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
155
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
156
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
157
+ TRANSACTION (0.1ms) ROLLBACK
158
+  (40.5ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
159
+  (44.2ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
160
+  (0.1ms) DROP TABLE IF EXISTS "websites"
161
+  (1.5ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
162
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
163
+  (1.0ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
164
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
165
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
166
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
167
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
168
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
169
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
170
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
171
+  (0.8ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
172
+  (0.1ms) DROP TABLE IF EXISTS "users"
173
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
174
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
175
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
176
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
177
+  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
178
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
179
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 10:59:35.302522', '2025-08-22 10:59:35.302524') RETURNING "key"
180
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
181
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
182
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
183
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
184
+ TRANSACTION (0.1ms) BEGIN
185
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
186
+ TRANSACTION (0.1ms) COMMIT
187
+  (0.6ms)  SELECT schemaname || '.' || tablename
188
+ FROM pg_tables
189
+ WHERE
190
+ tablename !~ '_prt_' AND
191
+ tablename <> 'schema_migrations'
192
+ AND tablename <> 'ar_internal_metadata'
193
+ AND
194
+ schemaname = ANY (current_schemas(false))
195
+ 
196
+  (0.4ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
197
+  (5.4ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
198
+ TRANSACTION (0.2ms) BEGIN
199
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
200
+ TRANSACTION (0.0ms) COMMIT
201
+ TRANSACTION (0.1ms) BEGIN
202
+ TRANSACTION (0.1ms) ROLLBACK
203
+ TRANSACTION (0.1ms) BEGIN
204
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
205
+ User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 10:59:35.413656"], ["updated_at", "2025-08-22 10:59:35.413656"]]
206
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
207
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
208
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 10:59:35.416045"], ["updated_at", "2025-08-22 10:59:35.416045"]]
209
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
210
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 10:59:35.416045', '2025-08-22 10:59:35.416045', 1, '2025-08-22 10:59:35.416542', 1) ON CONFLICT DO NOTHING RETURNING "id"
211
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
212
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
213
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
214
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
215
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
216
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 10:59:35.426913"], ["id", 1]]
217
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
218
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 10:59:35.416045', '2025-08-22 10:59:35.426913', 1, '2025-08-22 10:59:35.427364', 1) ON CONFLICT DO NOTHING RETURNING "id"
219
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
220
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 10:59:35.427364"], ["id", 1]]
221
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
222
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
223
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
224
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
225
+ TRANSACTION (0.1ms) ROLLBACK
226
+ TRANSACTION (0.1ms) BEGIN
227
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
228
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 10:59:35.429847"], ["updated_at", "2025-08-22 10:59:35.429847"]]
229
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
230
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 10:59:35.429847', '2025-08-22 10:59:35.429847', 2, '2025-08-22 10:59:35.430294', 1) ON CONFLICT DO NOTHING RETURNING "id"
231
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
232
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
233
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
234
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
235
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
236
+ Deploy Create (0.2ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 10:59:35.438755"], ["updated_at", "2025-08-22 10:59:35.438755"]]
237
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
238
+ Deploy Exists? (0.2ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
239
+ Deploy Count (0.1ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
240
+ TRANSACTION (0.1ms) ROLLBACK
241
+ TRANSACTION (0.1ms) BEGIN
242
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
243
+ Website Create (0.5ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 10:59:35.441026"], ["updated_at", "2025-08-22 10:59:35.441026"]]
244
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
245
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 10:59:35.441026', '2025-08-22 10:59:35.441026', 3, '2025-08-22 10:59:35.441739', 1) ON CONFLICT DO NOTHING RETURNING "id"
246
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
247
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
248
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
249
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 10:59:35.442763"], ["id", 3]]
250
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
251
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 10:59:35.441026', '2025-08-22 10:59:35.442763', 3, '2025-08-22 10:59:35.443124', 1) ON CONFLICT DO NOTHING RETURNING "id"
252
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
253
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 10:59:35.443124"], ["id", 4]]
254
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
255
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
256
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
257
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
258
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 10:59:35.444767"], ["id", 3]]
259
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
260
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 10:59:35.441026', '2025-08-22 10:59:35.444767', 3, '2025-08-22 10:59:35.445113', NULL) ON CONFLICT DO NOTHING RETURNING "id"
261
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
262
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 10:59:35.445113"], ["id", 5]]
263
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
264
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
265
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
266
+ TRANSACTION (0.1ms) ROLLBACK
267
+ TRANSACTION (0.1ms) BEGIN
268
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
269
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 10:59:35.447011"], ["updated_at", "2025-08-22 10:59:35.447011"]]
270
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
271
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 10:59:35.447011', '2025-08-22 10:59:35.447011', 4, '2025-08-22 10:59:35.447502', 1) ON CONFLICT DO NOTHING RETURNING "id"
272
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
273
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
274
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
275
+ TRANSACTION (0.1ms) ROLLBACK
276
+  (40.1ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
277
+  (49.7ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
278
+  (0.1ms) DROP TABLE IF EXISTS "websites"
279
+  (1.3ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
280
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
281
+  (0.8ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
282
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
283
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
284
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
285
+  (0.2ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
286
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
287
+  (0.2ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
288
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
289
+  (0.7ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
290
+  (0.1ms) DROP TABLE IF EXISTS "users"
291
+  (0.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
292
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
293
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
294
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
295
+  (0.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
296
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
297
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:22:43.165585', '2025-08-22 11:22:43.165586') RETURNING "key"
298
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
299
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
300
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
301
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
302
+ TRANSACTION (0.1ms) BEGIN
303
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
304
+ TRANSACTION (0.1ms) COMMIT
305
+  (0.8ms)  SELECT schemaname || '.' || tablename
306
+ FROM pg_tables
307
+ WHERE
308
+ tablename !~ '_prt_' AND
309
+ tablename <> 'schema_migrations'
310
+ AND tablename <> 'ar_internal_metadata'
311
+ AND
312
+ schemaname = ANY (current_schemas(false))
313
+ 
314
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
315
+  (5.7ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
316
+ TRANSACTION (0.1ms) BEGIN
317
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
318
+ TRANSACTION (0.1ms) COMMIT
319
+ TRANSACTION (0.1ms) BEGIN
320
+ TRANSACTION (0.1ms) ROLLBACK
321
+ TRANSACTION (0.1ms) BEGIN
322
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
323
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 11:22:43.282801"], ["updated_at", "2025-08-22 11:22:43.282801"]]
324
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
325
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
326
+ Website Create (0.2ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 11:22:43.285063"], ["updated_at", "2025-08-22 11:22:43.285063"]]
327
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
328
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 11:22:43.285063', '2025-08-22 11:22:43.285063', 1, '2025-08-22 11:22:43.285516', 1) ON CONFLICT DO NOTHING RETURNING "id"
329
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
330
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
331
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
332
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
333
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
334
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 11:22:43.295798"], ["id", 1]]
335
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
336
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 11:22:43.285063', '2025-08-22 11:22:43.295798', 1, '2025-08-22 11:22:43.296257', 1) ON CONFLICT DO NOTHING RETURNING "id"
337
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
338
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:22:43.296257"], ["id", 1]]
339
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
340
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
341
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
342
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
343
+ TRANSACTION (0.1ms) ROLLBACK
344
+ TRANSACTION (0.1ms) BEGIN
345
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
346
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:22:43.298742"], ["updated_at", "2025-08-22 11:22:43.298742"]]
347
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
348
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 11:22:43.298742', '2025-08-22 11:22:43.298742', 2, '2025-08-22 11:22:43.299186', 1) ON CONFLICT DO NOTHING RETURNING "id"
349
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
350
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
351
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
352
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
353
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
354
+ Deploy Create (0.2ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 11:22:43.307992"], ["updated_at", "2025-08-22 11:22:43.307992"]]
355
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
356
+ Deploy Exists? (0.1ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
357
+ Deploy Count (0.2ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
358
+ TRANSACTION (0.1ms) ROLLBACK
359
+ TRANSACTION (0.1ms) BEGIN
360
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
361
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:22:43.310280"], ["updated_at", "2025-08-22 11:22:43.310280"]]
362
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
363
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:22:43.310280', '2025-08-22 11:22:43.310280', 3, '2025-08-22 11:22:43.310935', 1) ON CONFLICT DO NOTHING RETURNING "id"
364
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
365
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
366
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
367
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 11:22:43.311994"], ["id", 3]]
368
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
369
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:22:43.310280', '2025-08-22 11:22:43.311994', 3, '2025-08-22 11:22:43.312355', 1) ON CONFLICT DO NOTHING RETURNING "id"
370
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
371
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:22:43.312355"], ["id", 4]]
372
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
373
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
374
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
375
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
376
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 11:22:43.314207"], ["id", 3]]
377
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
378
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 11:22:43.310280', '2025-08-22 11:22:43.314207', 3, '2025-08-22 11:22:43.314577', NULL) ON CONFLICT DO NOTHING RETURNING "id"
379
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
380
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:22:43.314577"], ["id", 5]]
381
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
382
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
383
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
384
+ TRANSACTION (0.1ms) ROLLBACK
385
+ TRANSACTION (0.1ms) BEGIN
386
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
387
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:22:43.316562"], ["updated_at", "2025-08-22 11:22:43.316562"]]
388
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
389
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 11:22:43.316562', '2025-08-22 11:22:43.316562', 4, '2025-08-22 11:22:43.317066', 1) ON CONFLICT DO NOTHING RETURNING "id"
390
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
391
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
392
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
393
+ TRANSACTION (0.1ms) ROLLBACK
394
+  (46.5ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
395
+  (39.6ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
396
+  (0.1ms) DROP TABLE IF EXISTS "websites"
397
+  (1.5ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
398
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
399
+  (0.9ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
400
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
401
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
402
+  (0.2ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
403
+  (0.2ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
404
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
405
+  (0.2ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
406
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
407
+  (0.9ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
408
+  (0.1ms) DROP TABLE IF EXISTS "users"
409
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
410
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
411
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
412
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
413
+  (0.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
414
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
415
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:24:18.908546', '2025-08-22 11:24:18.908548') RETURNING "key"
416
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
417
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
418
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
419
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
420
+ TRANSACTION (0.1ms) BEGIN
421
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
422
+ TRANSACTION (0.1ms) COMMIT
423
+  (0.5ms)  SELECT schemaname || '.' || tablename
424
+ FROM pg_tables
425
+ WHERE
426
+ tablename !~ '_prt_' AND
427
+ tablename <> 'schema_migrations'
428
+ AND tablename <> 'ar_internal_metadata'
429
+ AND
430
+ schemaname = ANY (current_schemas(false))
431
+ 
432
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
433
+  (5.3ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
434
+ TRANSACTION (0.2ms) BEGIN
435
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
436
+ TRANSACTION (0.1ms) COMMIT
437
+ TRANSACTION (0.1ms) BEGIN
438
+ TRANSACTION (0.1ms) ROLLBACK
439
+ TRANSACTION (0.1ms) BEGIN
440
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
441
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 11:24:19.021421"], ["updated_at", "2025-08-22 11:24:19.021421"]]
442
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
443
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
444
+ Website Create (0.2ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 11:24:19.023636"], ["updated_at", "2025-08-22 11:24:19.023636"]]
445
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
446
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 11:24:19.023636', '2025-08-22 11:24:19.023636', 1, '2025-08-22 11:24:19.024053', 1) ON CONFLICT DO NOTHING RETURNING "id"
447
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
448
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
449
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
450
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
451
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
452
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 11:24:19.034094"], ["id", 1]]
453
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
454
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 11:24:19.023636', '2025-08-22 11:24:19.034094', 1, '2025-08-22 11:24:19.034590', 1) ON CONFLICT DO NOTHING RETURNING "id"
455
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
456
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:19.034590"], ["id", 1]]
457
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
458
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
459
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
460
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
461
+ TRANSACTION (0.1ms) ROLLBACK
462
+ TRANSACTION (0.1ms) BEGIN
463
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
464
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:19.037313"], ["updated_at", "2025-08-22 11:24:19.037313"]]
465
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
466
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 11:24:19.037313', '2025-08-22 11:24:19.037313', 2, '2025-08-22 11:24:19.037859', 1) ON CONFLICT DO NOTHING RETURNING "id"
467
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
468
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
469
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
470
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
471
+ Deploy Create (0.4ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 11:24:19.044975"], ["updated_at", "2025-08-22 11:24:19.044975"]]
472
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
473
+ Deploy Exists? (0.1ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
474
+ TRANSACTION (0.1ms) ROLLBACK
475
+ TRANSACTION (0.1ms) BEGIN
476
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
477
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:19.048298"], ["updated_at", "2025-08-22 11:24:19.048298"]]
478
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
479
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:24:19.048298', '2025-08-22 11:24:19.048298', 3, '2025-08-22 11:24:19.048887', 1) ON CONFLICT DO NOTHING RETURNING "id"
480
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
481
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
482
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
483
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 11:24:19.049908"], ["id", 3]]
484
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
485
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:24:19.048298', '2025-08-22 11:24:19.049908', 3, '2025-08-22 11:24:19.050267', 1) ON CONFLICT DO NOTHING RETURNING "id"
486
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
487
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:19.050267"], ["id", 4]]
488
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
489
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
490
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
491
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
492
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 11:24:19.051904"], ["id", 3]]
493
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
494
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 11:24:19.048298', '2025-08-22 11:24:19.051904', 3, '2025-08-22 11:24:19.052200', NULL) ON CONFLICT DO NOTHING RETURNING "id"
495
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
496
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:19.052200"], ["id", 5]]
497
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
498
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
499
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
500
+ TRANSACTION (0.1ms) ROLLBACK
501
+ TRANSACTION (0.1ms) BEGIN
502
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
503
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:19.054122"], ["updated_at", "2025-08-22 11:24:19.054122"]]
504
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
505
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 11:24:19.054122', '2025-08-22 11:24:19.054122', 4, '2025-08-22 11:24:19.054555', 1) ON CONFLICT DO NOTHING RETURNING "id"
506
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
507
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
508
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
509
+ TRANSACTION (0.1ms) ROLLBACK
510
+  (40.8ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
511
+  (41.2ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
512
+  (0.1ms) DROP TABLE IF EXISTS "websites"
513
+  (1.4ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
514
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
515
+  (0.9ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
516
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
517
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
518
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
519
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
520
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
521
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
522
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
523
+  (0.8ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
524
+  (0.1ms) DROP TABLE IF EXISTS "users"
525
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
526
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
527
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
528
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
529
+  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
530
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
531
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:24:28.256793', '2025-08-22 11:24:28.256795') RETURNING "key"
532
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
533
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
534
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
535
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
536
+ TRANSACTION (0.1ms) BEGIN
537
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
538
+ TRANSACTION (0.1ms) COMMIT
539
+  (0.6ms)  SELECT schemaname || '.' || tablename
540
+ FROM pg_tables
541
+ WHERE
542
+ tablename !~ '_prt_' AND
543
+ tablename <> 'schema_migrations'
544
+ AND tablename <> 'ar_internal_metadata'
545
+ AND
546
+ schemaname = ANY (current_schemas(false))
547
+ 
548
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
549
+  (5.2ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
550
+ TRANSACTION (0.2ms) BEGIN
551
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
552
+ TRANSACTION (0.1ms) COMMIT
553
+ TRANSACTION (0.1ms) BEGIN
554
+ TRANSACTION (0.1ms) ROLLBACK
555
+ TRANSACTION (0.1ms) BEGIN
556
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
557
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 11:24:28.368574"], ["updated_at", "2025-08-22 11:24:28.368574"]]
558
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
559
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
560
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 11:24:28.370886"], ["updated_at", "2025-08-22 11:24:28.370886"]]
561
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
562
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 11:24:28.370886', '2025-08-22 11:24:28.370886', 1, '2025-08-22 11:24:28.371341', 1) ON CONFLICT DO NOTHING RETURNING "id"
563
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
564
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
565
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
566
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
567
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
568
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 11:24:28.381380"], ["id", 1]]
569
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
570
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 11:24:28.370886', '2025-08-22 11:24:28.381380', 1, '2025-08-22 11:24:28.381893', 1) ON CONFLICT DO NOTHING RETURNING "id"
571
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
572
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:28.381893"], ["id", 1]]
573
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
574
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
575
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
576
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
577
+ TRANSACTION (0.1ms) ROLLBACK
578
+ TRANSACTION (0.1ms) BEGIN
579
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
580
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:28.384590"], ["updated_at", "2025-08-22 11:24:28.384590"]]
581
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
582
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 11:24:28.384590', '2025-08-22 11:24:28.384590', 2, '2025-08-22 11:24:28.385071', 1) ON CONFLICT DO NOTHING RETURNING "id"
583
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
584
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
585
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
586
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
587
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
588
+ Deploy Create (0.3ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 11:24:28.394232"], ["updated_at", "2025-08-22 11:24:28.394232"]]
589
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
590
+ Deploy Exists? (0.1ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
591
+ Deploy Count (0.1ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
592
+ TRANSACTION (0.1ms) ROLLBACK
593
+ TRANSACTION (0.1ms) BEGIN
594
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
595
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:28.396554"], ["updated_at", "2025-08-22 11:24:28.396554"]]
596
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
597
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:24:28.396554', '2025-08-22 11:24:28.396554', 3, '2025-08-22 11:24:28.397020', 1) ON CONFLICT DO NOTHING RETURNING "id"
598
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
599
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
600
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
601
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 11:24:28.398004"], ["id", 3]]
602
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
603
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:24:28.396554', '2025-08-22 11:24:28.398004', 3, '2025-08-22 11:24:28.398412', 1) ON CONFLICT DO NOTHING RETURNING "id"
604
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
605
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:28.398412"], ["id", 4]]
606
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
607
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
608
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
609
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
610
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 11:24:28.400131"], ["id", 3]]
611
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
612
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 11:24:28.396554', '2025-08-22 11:24:28.400131', 3, '2025-08-22 11:24:28.400512', NULL) ON CONFLICT DO NOTHING RETURNING "id"
613
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
614
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:28.400512"], ["id", 5]]
615
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
616
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
617
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
618
+ TRANSACTION (0.1ms) ROLLBACK
619
+ TRANSACTION (0.1ms) BEGIN
620
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
621
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:28.402623"], ["updated_at", "2025-08-22 11:24:28.402623"]]
622
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
623
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 11:24:28.402623', '2025-08-22 11:24:28.402623', 4, '2025-08-22 11:24:28.403115', 1) ON CONFLICT DO NOTHING RETURNING "id"
624
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
625
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
626
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
627
+ TRANSACTION (0.1ms) ROLLBACK
628
+  (50.2ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
629
+  (41.6ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
630
+  (0.1ms) DROP TABLE IF EXISTS "websites"
631
+  (1.4ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
632
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
633
+  (0.9ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
634
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
635
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
636
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
637
+  (0.2ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
638
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
639
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
640
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
641
+  (0.8ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
642
+  (0.1ms) DROP TABLE IF EXISTS "users"
643
+  (0.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
644
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
645
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
646
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
647
+  (0.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
648
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
649
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:24:38.143179', '2025-08-22 11:24:38.143181') RETURNING "key"
650
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
651
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
652
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
653
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
654
+ TRANSACTION (0.1ms) BEGIN
655
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
656
+ TRANSACTION (0.1ms) COMMIT
657
+  (0.6ms)  SELECT schemaname || '.' || tablename
658
+ FROM pg_tables
659
+ WHERE
660
+ tablename !~ '_prt_' AND
661
+ tablename <> 'schema_migrations'
662
+ AND tablename <> 'ar_internal_metadata'
663
+ AND
664
+ schemaname = ANY (current_schemas(false))
665
+ 
666
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
667
+  (5.2ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
668
+ TRANSACTION (0.2ms) BEGIN
669
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
670
+ TRANSACTION (0.1ms) COMMIT
671
+ TRANSACTION (0.1ms) BEGIN
672
+ TRANSACTION (0.1ms) ROLLBACK
673
+ TRANSACTION (0.1ms) BEGIN
674
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
675
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 11:24:38.258453"], ["updated_at", "2025-08-22 11:24:38.258453"]]
676
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
677
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
678
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 11:24:38.260738"], ["updated_at", "2025-08-22 11:24:38.260738"]]
679
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
680
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 11:24:38.260738', '2025-08-22 11:24:38.260738', 1, '2025-08-22 11:24:38.261268', 1) ON CONFLICT DO NOTHING RETURNING "id"
681
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
682
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
683
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
684
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
685
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
686
+ Website Update (0.4ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 11:24:38.271724"], ["id", 1]]
687
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
688
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 11:24:38.260738', '2025-08-22 11:24:38.271724', 1, '2025-08-22 11:24:38.272406', 1) ON CONFLICT DO NOTHING RETURNING "id"
689
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
690
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:38.272406"], ["id", 1]]
691
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
692
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
693
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
694
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
695
+ TRANSACTION (0.1ms) ROLLBACK
696
+ TRANSACTION (0.1ms) BEGIN
697
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
698
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:38.275343"], ["updated_at", "2025-08-22 11:24:38.275343"]]
699
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
700
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 11:24:38.275343', '2025-08-22 11:24:38.275343', 2, '2025-08-22 11:24:38.275904', 1) ON CONFLICT DO NOTHING RETURNING "id"
701
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
702
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
703
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
704
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
705
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
706
+ Deploy Create (0.2ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 11:24:38.285979"], ["updated_at", "2025-08-22 11:24:38.285979"]]
707
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
708
+ Deploy Exists? (0.1ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
709
+ Deploy Count (0.1ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
710
+ TRANSACTION (0.1ms) ROLLBACK
711
+ TRANSACTION (0.1ms) BEGIN
712
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
713
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:38.288435"], ["updated_at", "2025-08-22 11:24:38.288435"]]
714
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
715
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:24:38.288435', '2025-08-22 11:24:38.288435', 3, '2025-08-22 11:24:38.289073', 1) ON CONFLICT DO NOTHING RETURNING "id"
716
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
717
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
718
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
719
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 11:24:38.290075"], ["id", 3]]
720
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
721
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:24:38.288435', '2025-08-22 11:24:38.290075', 3, '2025-08-22 11:24:38.290466', 1) ON CONFLICT DO NOTHING RETURNING "id"
722
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
723
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:38.290466"], ["id", 4]]
724
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
725
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
726
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
727
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
728
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 11:24:38.292167"], ["id", 3]]
729
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
730
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 11:24:38.288435', '2025-08-22 11:24:38.292167', 3, '2025-08-22 11:24:38.292504', NULL) ON CONFLICT DO NOTHING RETURNING "id"
731
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
732
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:24:38.292504"], ["id", 5]]
733
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
734
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
735
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
736
+ TRANSACTION (0.1ms) ROLLBACK
737
+ TRANSACTION (0.1ms) BEGIN
738
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
739
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:24:38.294365"], ["updated_at", "2025-08-22 11:24:38.294365"]]
740
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
741
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 11:24:38.294365', '2025-08-22 11:24:38.294365', 4, '2025-08-22 11:24:38.294803', 1) ON CONFLICT DO NOTHING RETURNING "id"
742
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
743
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
744
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
745
+ TRANSACTION (0.1ms) ROLLBACK
746
+  (1330.0ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
747
+  (30.3ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
748
+  (0.1ms) DROP TABLE IF EXISTS "websites"
749
+  (1.6ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
750
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
751
+  (0.9ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
752
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
753
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
754
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
755
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
756
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
757
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
758
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
759
+  (0.7ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
760
+  (0.1ms) DROP TABLE IF EXISTS "users"
761
+  (0.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
762
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
763
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
764
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (1)
765
+  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
766
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
767
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:30:16.684027', '2025-08-22 11:30:16.684030') RETURNING "key"
768
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
769
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
770
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
771
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
772
+ TRANSACTION (0.1ms) BEGIN
773
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
774
+ TRANSACTION (0.1ms) COMMIT
775
+  (0.5ms)  SELECT schemaname || '.' || tablename
776
+ FROM pg_tables
777
+ WHERE
778
+ tablename !~ '_prt_' AND
779
+ tablename <> 'schema_migrations'
780
+ AND tablename <> 'ar_internal_metadata'
781
+ AND
782
+ schemaname = ANY (current_schemas(false))
783
+ 
784
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
785
+  (4.3ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
786
+ TRANSACTION (0.2ms) BEGIN
787
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
788
+ TRANSACTION (0.0ms) COMMIT
789
+ TRANSACTION (0.1ms) BEGIN
790
+ TRANSACTION (0.1ms) ROLLBACK
791
+ TRANSACTION (0.1ms) BEGIN
792
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
793
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 11:30:16.826829"], ["updated_at", "2025-08-22 11:30:16.826829"]]
794
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
795
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
796
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 11:30:16.829248"], ["updated_at", "2025-08-22 11:30:16.829248"]]
797
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
798
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 11:30:16.829248', '2025-08-22 11:30:16.829248', 1, '2025-08-22 11:30:16.829725', 1) ON CONFLICT DO NOTHING RETURNING "id"
799
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
800
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
801
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
802
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
803
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
804
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 11:30:16.840688"], ["id", 1]]
805
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
806
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 11:30:16.829248', '2025-08-22 11:30:16.840688', 1, '2025-08-22 11:30:16.841157', 1) ON CONFLICT DO NOTHING RETURNING "id"
807
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
808
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:30:16.841157"], ["id", 1]]
809
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
810
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
811
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
812
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
813
+ TRANSACTION (0.1ms) ROLLBACK
814
+ TRANSACTION (0.1ms) BEGIN
815
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
816
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:30:16.843622"], ["updated_at", "2025-08-22 11:30:16.843622"]]
817
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
818
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 11:30:16.843622', '2025-08-22 11:30:16.843622', 2, '2025-08-22 11:30:16.844075', 1) ON CONFLICT DO NOTHING RETURNING "id"
819
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
820
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
821
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
822
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
823
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
824
+ Deploy Create (0.3ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 11:30:16.854600"], ["updated_at", "2025-08-22 11:30:16.854600"]]
825
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
826
+ Deploy Exists? (0.1ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
827
+ Deploy Count (0.1ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
828
+ TRANSACTION (0.1ms) ROLLBACK
829
+ TRANSACTION (0.1ms) BEGIN
830
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
831
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:30:16.857434"], ["updated_at", "2025-08-22 11:30:16.857434"]]
832
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
833
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:30:16.857434', '2025-08-22 11:30:16.857434', 3, '2025-08-22 11:30:16.858047', 1) ON CONFLICT DO NOTHING RETURNING "id"
834
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
835
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
836
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
837
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 11:30:16.859444"], ["id", 3]]
838
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
839
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:30:16.857434', '2025-08-22 11:30:16.859444', 3, '2025-08-22 11:30:16.860048', 1) ON CONFLICT DO NOTHING RETURNING "id"
840
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
841
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:30:16.860048"], ["id", 4]]
842
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
843
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
844
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
845
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
846
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 11:30:16.862139"], ["id", 3]]
847
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
848
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 11:30:16.857434', '2025-08-22 11:30:16.862139', 3, '2025-08-22 11:30:16.862574', NULL) ON CONFLICT DO NOTHING RETURNING "id"
849
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
850
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:30:16.862574"], ["id", 5]]
851
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
852
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
853
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
854
+ TRANSACTION (0.1ms) ROLLBACK
855
+ TRANSACTION (0.1ms) BEGIN
856
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
857
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:30:16.864975"], ["updated_at", "2025-08-22 11:30:16.864975"]]
858
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
859
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 11:30:16.864975', '2025-08-22 11:30:16.864975', 4, '2025-08-22 11:30:16.865593', 1) ON CONFLICT DO NOTHING RETURNING "id"
860
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
861
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
862
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
863
+ TRANSACTION (0.1ms) ROLLBACK
864
+  (539.8ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
865
+  (30.4ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
866
+  (0.1ms) DROP TABLE IF EXISTS "websites"
867
+  (1.5ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
868
+  (0.3ms) DROP TABLE IF EXISTS "website_histories"
869
+  (1.0ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
870
+  (0.4ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
871
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
872
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
873
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
874
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
875
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
876
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
877
+  (0.9ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
878
+  (0.2ms) DROP TABLE IF EXISTS "users"
879
+  (0.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
880
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
881
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
882
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (1)
883
+  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
884
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
885
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:37:18.443920', '2025-08-22 11:37:18.443923') RETURNING "key"
886
+  (0.2ms) SELECT pg_try_advisory_lock(4588497535401185595)
887
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
888
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
889
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
890
+ TRANSACTION (0.1ms) BEGIN
891
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
892
+ TRANSACTION (0.1ms) COMMIT
893
+  (0.5ms)  SELECT schemaname || '.' || tablename
894
+ FROM pg_tables
895
+ WHERE
896
+ tablename !~ '_prt_' AND
897
+ tablename <> 'schema_migrations'
898
+ AND tablename <> 'ar_internal_metadata'
899
+ AND
900
+ schemaname = ANY (current_schemas(false))
901
+ 
902
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
903
+  (7.1ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
904
+ TRANSACTION (0.1ms) BEGIN
905
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
906
+ TRANSACTION (0.0ms) COMMIT
907
+ TRANSACTION (0.1ms) BEGIN
908
+ TRANSACTION (0.1ms) ROLLBACK
909
+ TRANSACTION (0.1ms) BEGIN
910
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
911
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 11:37:18.604575"], ["updated_at", "2025-08-22 11:37:18.604575"]]
912
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
913
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
914
+ Website Create (0.8ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 11:37:18.606924"], ["updated_at", "2025-08-22 11:37:18.606924"]]
915
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
916
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 11:37:18.606924', '2025-08-22 11:37:18.606924', 1, '2025-08-22 11:37:18.607934', 1) ON CONFLICT DO NOTHING RETURNING "id"
917
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
918
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
919
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
920
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
921
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
922
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 11:37:18.618000"], ["id", 1]]
923
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
924
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 11:37:18.606924', '2025-08-22 11:37:18.618000', 1, '2025-08-22 11:37:18.618481', 1) ON CONFLICT DO NOTHING RETURNING "id"
925
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
926
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:37:18.618481"], ["id", 1]]
927
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
928
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
929
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
930
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
931
+ TRANSACTION (0.1ms) ROLLBACK
932
+ TRANSACTION (0.1ms) BEGIN
933
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
934
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:37:18.620846"], ["updated_at", "2025-08-22 11:37:18.620846"]]
935
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
936
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 11:37:18.620846', '2025-08-22 11:37:18.620846', 2, '2025-08-22 11:37:18.621316', 1) ON CONFLICT DO NOTHING RETURNING "id"
937
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
938
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
939
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
940
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
941
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
942
+ Deploy Create (0.6ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 11:37:18.630779"], ["updated_at", "2025-08-22 11:37:18.630779"]]
943
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
944
+ Deploy Exists? (0.6ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
945
+ Deploy Count (0.4ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
946
+ TRANSACTION (0.1ms) ROLLBACK
947
+ TRANSACTION (0.1ms) BEGIN
948
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
949
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:37:18.634382"], ["updated_at", "2025-08-22 11:37:18.634382"]]
950
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
951
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:37:18.634382', '2025-08-22 11:37:18.634382', 3, '2025-08-22 11:37:18.634967', 1) ON CONFLICT DO NOTHING RETURNING "id"
952
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
953
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
954
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
955
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 11:37:18.636305"], ["id", 3]]
956
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
957
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:37:18.634382', '2025-08-22 11:37:18.636305', 3, '2025-08-22 11:37:18.636713', 1) ON CONFLICT DO NOTHING RETURNING "id"
958
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
959
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:37:18.636713"], ["id", 4]]
960
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
961
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
962
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
963
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
964
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 11:37:18.638655"], ["id", 3]]
965
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
966
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 11:37:18.634382', '2025-08-22 11:37:18.638655', 3, '2025-08-22 11:37:18.639085', NULL) ON CONFLICT DO NOTHING RETURNING "id"
967
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
968
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:37:18.639085"], ["id", 5]]
969
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
970
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
971
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
972
+ TRANSACTION (0.3ms) ROLLBACK
973
+ TRANSACTION (0.2ms) BEGIN
974
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
975
+ Website Create (0.6ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:37:18.641449"], ["updated_at", "2025-08-22 11:37:18.641449"]]
976
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
977
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 11:37:18.641449', '2025-08-22 11:37:18.641449', 4, '2025-08-22 11:37:18.642182', 1) ON CONFLICT DO NOTHING RETURNING "id"
978
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
979
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
980
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
981
+ TRANSACTION (0.1ms) ROLLBACK
982
+  (2113.0ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
983
+  (31.4ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
984
+  (0.3ms) DROP TABLE IF EXISTS "websites"
985
+  (1.5ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
986
+  (0.3ms) DROP TABLE IF EXISTS "website_histories"
987
+  (1.3ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
988
+  (0.5ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
989
+  (0.4ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
990
+  (0.4ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
991
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
992
+  (0.4ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
993
+  (0.5ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
994
+  (0.2ms) DROP TABLE IF EXISTS "deploys"
995
+  (1.0ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
996
+  (0.2ms) DROP TABLE IF EXISTS "users"
997
+  (0.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
998
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
999
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1000
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (1)
1001
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1002
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1003
+ ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:39:16.748301', '2025-08-22 11:39:16.748304') RETURNING "key"
1004
+  (0.2ms) SELECT pg_try_advisory_lock(4588497535401185595)
1005
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1006
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1007
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
1008
+  (694.5ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
1009
+  (34.6ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
1010
+  (0.1ms) DROP TABLE IF EXISTS "websites"
1011
+  (1.5ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1012
+  (0.2ms) DROP TABLE IF EXISTS "website_histories"
1013
+  (0.9ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
1014
+  (0.4ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
1015
+  (0.6ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
1016
+  (0.5ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
1017
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
1018
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
1019
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
1020
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
1021
+  (0.7ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1022
+  (0.1ms) DROP TABLE IF EXISTS "users"
1023
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1024
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1025
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1026
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (1)
1027
+  (0.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1028
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1029
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-08-22 11:39:55.591344', '2025-08-22 11:39:55.591347') RETURNING "key"
1030
+  (0.2ms) SELECT pg_try_advisory_lock(4588497535401185595)
1031
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1032
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1033
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
1034
+ TRANSACTION (0.1ms) BEGIN
1035
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
1036
+ TRANSACTION (0.1ms) COMMIT
1037
+  (0.6ms)  SELECT schemaname || '.' || tablename
1038
+ FROM pg_tables
1039
+ WHERE
1040
+ tablename !~ '_prt_' AND
1041
+ tablename <> 'schema_migrations'
1042
+ AND tablename <> 'ar_internal_metadata'
1043
+ AND
1044
+ schemaname = ANY (current_schemas(false))
1045
+ 
1046
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
1047
+  (7.3ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
1048
+ TRANSACTION (0.2ms) BEGIN
1049
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1050
+ TRANSACTION (0.0ms) COMMIT
1051
+ TRANSACTION (0.1ms) BEGIN
1052
+ TRANSACTION (0.1ms) ROLLBACK
1053
+ TRANSACTION (0.1ms) BEGIN
1054
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1055
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-08-22 11:39:55.761400"], ["updated_at", "2025-08-22 11:39:55.761400"]]
1056
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1057
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1058
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-08-22 11:39:55.763786"], ["updated_at", "2025-08-22 11:39:55.763786"]]
1059
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1060
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-08-22 11:39:55.763786', '2025-08-22 11:39:55.763786', 1, '2025-08-22 11:39:55.764255', 1) ON CONFLICT DO NOTHING RETURNING "id"
1061
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
1062
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1063
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1064
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1065
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1066
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-08-22 11:39:55.774584"], ["id", 1]]
1067
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1068
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-08-22 11:39:55.763786', '2025-08-22 11:39:55.774584', 1, '2025-08-22 11:39:55.775052', 1) ON CONFLICT DO NOTHING RETURNING "id"
1069
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1070
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:39:55.775052"], ["id", 1]]
1071
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1072
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1073
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1074
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1075
+ TRANSACTION (0.1ms) ROLLBACK
1076
+ TRANSACTION (0.1ms) BEGIN
1077
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1078
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:39:55.777686"], ["updated_at", "2025-08-22 11:39:55.777686"]]
1079
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1080
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-08-22 11:39:55.777686', '2025-08-22 11:39:55.777686', 2, '2025-08-22 11:39:55.778193', 1) ON CONFLICT DO NOTHING RETURNING "id"
1081
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1082
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1083
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1084
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1085
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1086
+ Deploy Create (0.5ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-08-22 11:39:55.787945"], ["updated_at", "2025-08-22 11:39:55.787945"]]
1087
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1088
+ Deploy Exists? (0.2ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
1089
+ Deploy Count (0.2ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
1090
+ TRANSACTION (0.1ms) ROLLBACK
1091
+ TRANSACTION (0.1ms) BEGIN
1092
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1093
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:39:55.790757"], ["updated_at", "2025-08-22 11:39:55.790757"]]
1094
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1095
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:39:55.790757', '2025-08-22 11:39:55.790757', 3, '2025-08-22 11:39:55.791411', 1) ON CONFLICT DO NOTHING RETURNING "id"
1096
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
1097
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1098
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1099
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-08-22 11:39:55.792595"], ["id", 3]]
1100
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1101
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-08-22 11:39:55.790757', '2025-08-22 11:39:55.792595', 3, '2025-08-22 11:39:55.793029', 1) ON CONFLICT DO NOTHING RETURNING "id"
1102
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
1103
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:39:55.793029"], ["id", 4]]
1104
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1105
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1106
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1107
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1108
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-08-22 11:39:55.795249"], ["id", 3]]
1109
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1110
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-08-22 11:39:55.790757', '2025-08-22 11:39:55.795249', 3, '2025-08-22 11:39:55.795670', NULL) ON CONFLICT DO NOTHING RETURNING "id"
1111
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1112
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-08-22 11:39:55.795670"], ["id", 5]]
1113
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1114
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1115
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1116
+ TRANSACTION (0.1ms) ROLLBACK
1117
+ TRANSACTION (0.1ms) BEGIN
1118
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1119
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-08-22 11:39:55.797855"], ["updated_at", "2025-08-22 11:39:55.797855"]]
1120
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1121
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-08-22 11:39:55.797855', '2025-08-22 11:39:55.797855', 4, '2025-08-22 11:39:55.798332', 1) ON CONFLICT DO NOTHING RETURNING "id"
1122
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1123
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1124
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1125
+ TRANSACTION (0.1ms) ROLLBACK
1126
+  (99.7ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
1127
+  (36.2ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
1128
+  (0.1ms) DROP TABLE IF EXISTS "websites"
1129
+  (1.5ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1130
+  (0.1ms) DROP TABLE IF EXISTS "website_histories"
1131
+  (0.9ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
1132
+  (0.3ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
1133
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
1134
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
1135
+  (0.2ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
1136
+  (0.3ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
1137
+  (0.2ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
1138
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
1139
+  (0.7ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1140
+  (0.1ms) DROP TABLE IF EXISTS "users"
1141
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1142
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1143
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1144
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (1)
1145
+  (0.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1146
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1147
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-09-19 15:56:59.899115', '2025-09-19 15:56:59.899117') RETURNING "key"
1148
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
1149
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1150
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1151
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
1152
+ TRANSACTION (0.1ms) BEGIN
1153
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
1154
+ TRANSACTION (0.1ms) COMMIT
1155
+  (0.6ms)  SELECT schemaname || '.' || tablename
1156
+ FROM pg_tables
1157
+ WHERE
1158
+ tablename !~ '_prt_' AND
1159
+ tablename <> 'schema_migrations'
1160
+ AND tablename <> 'ar_internal_metadata'
1161
+ AND
1162
+ schemaname = ANY (current_schemas(false))
1163
+ 
1164
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
1165
+  (13.8ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
1166
+ TRANSACTION (0.2ms) BEGIN
1167
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1168
+ TRANSACTION (0.0ms) COMMIT
1169
+ TRANSACTION (0.1ms) BEGIN
1170
+ TRANSACTION (0.1ms) ROLLBACK
1171
+ TRANSACTION (0.1ms) BEGIN
1172
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1173
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-09-19 15:57:00.056891"], ["updated_at", "2025-09-19 15:57:00.056891"]]
1174
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1175
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1176
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-09-19 15:57:00.059300"], ["updated_at", "2025-09-19 15:57:00.059300"]]
1177
+ WebsiteHistory Load (1.4ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1178
+ WebsiteHistory Insert (0.8ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-09-19 15:57:00.059300', '2025-09-19 15:57:00.059300', 1, '2025-09-19 15:57:00.059906', 1) ON CONFLICT DO NOTHING RETURNING "id"
1179
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
1180
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1181
+ WebsiteHistory Count (0.4ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1182
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1183
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1184
+ Website Update (0.4ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-09-19 15:57:00.075991"], ["id", 1]]
1185
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1186
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-09-19 15:57:00.059300', '2025-09-19 15:57:00.075991', 1, '2025-09-19 15:57:00.076653', 1) ON CONFLICT DO NOTHING RETURNING "id"
1187
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1188
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 15:57:00.076653"], ["id", 1]]
1189
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1190
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1191
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1192
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1193
+ TRANSACTION (0.1ms) ROLLBACK
1194
+ TRANSACTION (0.2ms) BEGIN
1195
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1196
+ Website Create (4.6ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 15:57:00.079941"], ["updated_at", "2025-09-19 15:57:00.079941"]]
1197
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1198
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-09-19 15:57:00.079941', '2025-09-19 15:57:00.079941', 2, '2025-09-19 15:57:00.084761', 1) ON CONFLICT DO NOTHING RETURNING "id"
1199
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1200
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1201
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1202
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
1203
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1204
+ Deploy Create (0.7ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-09-19 15:57:00.092400"], ["updated_at", "2025-09-19 15:57:00.092400"]]
1205
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
1206
+ Deploy Exists? (0.3ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
1207
+ Deploy Count (0.3ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
1208
+ TRANSACTION (0.2ms) ROLLBACK
1209
+ TRANSACTION (0.2ms) BEGIN
1210
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1211
+ Website Create (0.6ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 15:57:00.095676"], ["updated_at", "2025-09-19 15:57:00.095676"]]
1212
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1213
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-09-19 15:57:00.095676', '2025-09-19 15:57:00.095676', 3, '2025-09-19 15:57:00.096448', 1) ON CONFLICT DO NOTHING RETURNING "id"
1214
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
1215
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1216
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1217
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-09-19 15:57:00.097849"], ["id", 3]]
1218
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1219
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-09-19 15:57:00.095676', '2025-09-19 15:57:00.097849', 3, '2025-09-19 15:57:00.098309', 1) ON CONFLICT DO NOTHING RETURNING "id"
1220
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
1221
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 15:57:00.098309"], ["id", 4]]
1222
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1223
+ WebsiteHistory Count (0.3ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1224
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1225
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1226
+ Website Update (0.4ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-09-19 15:57:00.100722"], ["id", 3]]
1227
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1228
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-09-19 15:57:00.095676', '2025-09-19 15:57:00.100722', 3, '2025-09-19 15:57:00.101213', NULL) ON CONFLICT DO NOTHING RETURNING "id"
1229
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1230
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 15:57:00.101213"], ["id", 5]]
1231
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1232
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1233
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1234
+ TRANSACTION (0.1ms) ROLLBACK
1235
+ TRANSACTION (0.1ms) BEGIN
1236
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1237
+ Website Create (0.5ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 15:57:00.103753"], ["updated_at", "2025-09-19 15:57:00.103753"]]
1238
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1239
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-09-19 15:57:00.103753', '2025-09-19 15:57:00.103753', 4, '2025-09-19 15:57:00.104400', 1) ON CONFLICT DO NOTHING RETURNING "id"
1240
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1241
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1242
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1243
+ TRANSACTION (0.2ms) ROLLBACK
1244
+  (1133.8ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
1245
+  (32.4ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
1246
+  (0.2ms) DROP TABLE IF EXISTS "websites"
1247
+  (1.9ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1248
+  (0.4ms) DROP TABLE IF EXISTS "website_histories"
1249
+  (1.0ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
1250
+  (0.4ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
1251
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
1252
+  (0.4ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
1253
+  (0.5ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
1254
+  (0.4ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
1255
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
1256
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
1257
+  (0.7ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1258
+  (0.1ms) DROP TABLE IF EXISTS "users"
1259
+  (0.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1260
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1261
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1262
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (1)
1263
+  (0.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1264
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1265
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-09-19 15:58:47.432413', '2025-09-19 15:58:47.432417') RETURNING "key"
1266
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
1267
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1268
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1269
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
1270
+ TRANSACTION (0.1ms) BEGIN
1271
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
1272
+ TRANSACTION (0.1ms) COMMIT
1273
+  (0.5ms)  SELECT schemaname || '.' || tablename
1274
+ FROM pg_tables
1275
+ WHERE
1276
+ tablename !~ '_prt_' AND
1277
+ tablename <> 'schema_migrations'
1278
+ AND tablename <> 'ar_internal_metadata'
1279
+ AND
1280
+ schemaname = ANY (current_schemas(false))
1281
+ 
1282
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
1283
+  (7.1ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
1284
+ TRANSACTION (0.1ms) BEGIN
1285
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1286
+ TRANSACTION (0.0ms) COMMIT
1287
+ TRANSACTION (0.1ms) BEGIN
1288
+ TRANSACTION (0.1ms) ROLLBACK
1289
+ TRANSACTION (0.1ms) BEGIN
1290
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1291
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-09-19 15:58:47.585681"], ["updated_at", "2025-09-19 15:58:47.585681"]]
1292
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1293
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1294
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-09-19 15:58:47.588013"], ["updated_at", "2025-09-19 15:58:47.588013"]]
1295
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1296
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-09-19 15:58:47.588013', '2025-09-19 15:58:47.588013', 1, '2025-09-19 15:58:47.588499', 1) ON CONFLICT DO NOTHING RETURNING "id"
1297
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
1298
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1299
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1300
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1301
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1302
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-09-19 15:58:47.599032"], ["id", 1]]
1303
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1304
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-09-19 15:58:47.588013', '2025-09-19 15:58:47.599032', 1, '2025-09-19 15:58:47.599473', 1) ON CONFLICT DO NOTHING RETURNING "id"
1305
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1306
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 15:58:47.599473"], ["id", 1]]
1307
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1308
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1309
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1310
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1311
+ TRANSACTION (0.1ms) ROLLBACK
1312
+ TRANSACTION (0.1ms) BEGIN
1313
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1314
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 15:58:47.601722"], ["updated_at", "2025-09-19 15:58:47.601722"]]
1315
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1316
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-09-19 15:58:47.601722', '2025-09-19 15:58:47.601722', 2, '2025-09-19 15:58:47.602151', 1) ON CONFLICT DO NOTHING RETURNING "id"
1317
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1318
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1319
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1320
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1321
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1322
+ Deploy Create (0.6ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-09-19 15:58:47.611405"], ["updated_at", "2025-09-19 15:58:47.611405"]]
1323
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1324
+ Deploy Exists? (0.2ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
1325
+ Deploy Count (0.2ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
1326
+ TRANSACTION (0.1ms) ROLLBACK
1327
+ TRANSACTION (0.1ms) BEGIN
1328
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1329
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 15:58:47.614353"], ["updated_at", "2025-09-19 15:58:47.614353"]]
1330
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1331
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-09-19 15:58:47.614353', '2025-09-19 15:58:47.614353', 3, '2025-09-19 15:58:47.614923', 1) ON CONFLICT DO NOTHING RETURNING "id"
1332
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
1333
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1334
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1335
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-09-19 15:58:47.616066"], ["id", 3]]
1336
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1337
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-09-19 15:58:47.614353', '2025-09-19 15:58:47.616066', 3, '2025-09-19 15:58:47.616438', 1) ON CONFLICT DO NOTHING RETURNING "id"
1338
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
1339
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 15:58:47.616438"], ["id", 4]]
1340
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1341
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1342
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1343
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1344
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-09-19 15:58:47.618320"], ["id", 3]]
1345
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1346
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-09-19 15:58:47.614353', '2025-09-19 15:58:47.618320', 3, '2025-09-19 15:58:47.618671', NULL) ON CONFLICT DO NOTHING RETURNING "id"
1347
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1348
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 15:58:47.618671"], ["id", 5]]
1349
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1350
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1351
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1352
+ TRANSACTION (0.1ms) ROLLBACK
1353
+ TRANSACTION (0.1ms) BEGIN
1354
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1355
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 15:58:47.620584"], ["updated_at", "2025-09-19 15:58:47.620584"]]
1356
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1357
+ WebsiteHistory Insert (0.2ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-09-19 15:58:47.620584', '2025-09-19 15:58:47.620584', 4, '2025-09-19 15:58:47.621063', 1) ON CONFLICT DO NOTHING RETURNING "id"
1358
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1359
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1360
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1361
+ TRANSACTION (0.1ms) ROLLBACK
1362
+  (1002.2ms) DROP DATABASE IF EXISTS "historiographer_combustion_test"
1363
+  (32.4ms) CREATE DATABASE "historiographer_combustion_test" ENCODING = 'utf8'
1364
+  (0.1ms) DROP TABLE IF EXISTS "websites"
1365
+  (1.5ms) CREATE TABLE "websites" ("id" bigserial primary key, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1366
+  (0.2ms) DROP TABLE IF EXISTS "website_histories"
1367
+  (1.0ms) CREATE TABLE "website_histories" ("id" bigserial primary key, "website_id" integer NOT NULL, "name" character varying, "project_id" integer, "user_id" integer, "template_id" integer, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "history_started_at" timestamp(6) NOT NULL, "history_ended_at" timestamp(6), "history_user_id" integer, "snapshot_id" character varying, "thread_id" character varying)
1368
+  (0.4ms) CREATE INDEX "index_website_histories_on_website_id" ON "website_histories" ("website_id")
1369
+  (0.4ms) CREATE INDEX "index_website_histories_on_history_started_at" ON "website_histories" ("history_started_at")
1370
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_ended_at" ON "website_histories" ("history_ended_at")
1371
+  (0.3ms) CREATE INDEX "index_website_histories_on_history_user_id" ON "website_histories" ("history_user_id")
1372
+  (0.5ms) CREATE INDEX "index_website_histories_on_snapshot_id" ON "website_histories" ("snapshot_id")
1373
+  (0.3ms) CREATE UNIQUE INDEX "index_website_histories_on_thread_id" ON "website_histories" ("thread_id")
1374
+  (0.1ms) DROP TABLE IF EXISTS "deploys"
1375
+  (0.8ms) CREATE TABLE "deploys" ("id" bigserial primary key, "website_history_id" integer, "status" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1376
+  (0.1ms) DROP TABLE IF EXISTS "users"
1377
+  (0.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1378
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1379
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1380
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES (1)
1381
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1382
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1383
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-09-19 16:01:00.392649', '2025-09-19 16:01:00.392652') RETURNING "key"
1384
+  (0.1ms) SELECT pg_try_advisory_lock(4588497535401185595)
1385
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1386
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1387
+  (0.1ms) SELECT pg_advisory_unlock(4588497535401185595)
1388
+ TRANSACTION (0.1ms) BEGIN
1389
+  (0.2ms) ALTER TABLE "websites" DISABLE TRIGGER ALL;ALTER TABLE "website_histories" DISABLE TRIGGER ALL;ALTER TABLE "deploys" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
1390
+ TRANSACTION (0.1ms) COMMIT
1391
+  (0.6ms)  SELECT schemaname || '.' || tablename
1392
+ FROM pg_tables
1393
+ WHERE
1394
+ tablename !~ '_prt_' AND
1395
+ tablename <> 'schema_migrations'
1396
+ AND tablename <> 'ar_internal_metadata'
1397
+ AND
1398
+ schemaname = ANY (current_schemas(false))
1399
+ 
1400
+  (0.3ms) select table_name from information_schema.views where table_schema = 'historiographer_combustion_test'
1401
+  (6.8ms) TRUNCATE TABLE "websites", "website_histories", "deploys", "users" RESTART IDENTITY RESTRICT;
1402
+ TRANSACTION (0.1ms) BEGIN
1403
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "websites" ENABLE TRIGGER ALL;ALTER TABLE "website_histories" ENABLE TRIGGER ALL;ALTER TABLE "deploys" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1404
+ TRANSACTION (0.0ms) COMMIT
1405
+ TRANSACTION (0.1ms) BEGIN
1406
+ TRANSACTION (0.1ms) ROLLBACK
1407
+ TRANSACTION (0.1ms) BEGIN
1408
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1409
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Test User"], ["created_at", "2025-09-19 16:01:00.542200"], ["updated_at", "2025-09-19 16:01:00.542200"]]
1410
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1411
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1412
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Production Site"], ["project_id", 1], ["user_id", 1], ["template_id", nil], ["created_at", "2025-09-19 16:01:00.544581"], ["updated_at", "2025-09-19 16:01:00.544581"]]
1413
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1414
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Production Site', 1, 1, NULL, '2025-09-19 16:01:00.544581', '2025-09-19 16:01:00.544581', 1, '2025-09-19 16:01:00.545053', 1) ON CONFLICT DO NOTHING RETURNING "id"
1415
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
1416
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1417
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1418
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1419
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1420
+ Website Update (0.2ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Site"], ["updated_at", "2025-09-19 16:01:00.555472"], ["id", 1]]
1421
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1422
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Site', 1, 1, NULL, '2025-09-19 16:01:00.544581', '2025-09-19 16:01:00.555472', 1, '2025-09-19 16:01:00.555914', 1) ON CONFLICT DO NOTHING RETURNING "id"
1423
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
1424
+ WebsiteHistory Update (0.1ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 16:01:00.555914"], ["id", 1]]
1425
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1426
+ WebsiteHistory Count (0.1ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 1]]
1427
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NOT NULL ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1428
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 1], ["LIMIT", 1]]
1429
+ TRANSACTION (0.1ms) ROLLBACK
1430
+ TRANSACTION (0.1ms) BEGIN
1431
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1432
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Deploy Test Site"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 16:01:00.558317"], ["updated_at", "2025-09-19 16:01:00.558317"]]
1433
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1434
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Deploy Test Site', NULL, NULL, NULL, '2025-09-19 16:01:00.558317', '2025-09-19 16:01:00.558317', 2, '2025-09-19 16:01:00.558746', 1) ON CONFLICT DO NOTHING RETURNING "id"
1435
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1436
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1437
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 2], ["LIMIT", 1]]
1438
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1439
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
1440
+ Deploy Create (0.2ms) INSERT INTO "deploys" ("website_history_id", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["website_history_id", 3], ["status", "pending"], ["created_at", "2025-09-19 16:01:00.567504"], ["updated_at", "2025-09-19 16:01:00.567504"]]
1441
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1442
+ Deploy Exists? (0.4ms) SELECT 1 AS one FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."id" = $2 LIMIT $3 [["website_history_id", 3], ["id", 1], ["LIMIT", 1]]
1443
+ Deploy Count (0.3ms) SELECT COUNT(*) FROM "deploys" WHERE "deploys"."website_history_id" = $1 AND "deploys"."status" = $2 [["website_history_id", 3], ["status", "pending"]]
1444
+ TRANSACTION (0.1ms) ROLLBACK
1445
+ TRANSACTION (0.1ms) BEGIN
1446
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1447
+ Website Create (0.4ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Safe Mode Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 16:01:00.570295"], ["updated_at", "2025-09-19 16:01:00.570295"]]
1448
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1449
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Safe Mode Test', NULL, NULL, NULL, '2025-09-19 16:01:00.570295', '2025-09-19 16:01:00.570295', 3, '2025-09-19 16:01:00.570895', 1) ON CONFLICT DO NOTHING RETURNING "id"
1450
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
1451
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1452
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1453
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Updated Safe Mode Test"], ["updated_at", "2025-09-19 16:01:00.572225"], ["id", 3]]
1454
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1455
+ WebsiteHistory Insert (0.3ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Updated Safe Mode Test', NULL, NULL, NULL, '2025-09-19 16:01:00.570295', '2025-09-19 16:01:00.572225', 3, '2025-09-19 16:01:00.572656', 1) ON CONFLICT DO NOTHING RETURNING "id"
1456
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
1457
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 16:01:00.572656"], ["id", 4]]
1458
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1459
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1460
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1461
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1462
+ Website Update (0.3ms) UPDATE "websites" SET "name" = $1, "updated_at" = $2 WHERE "websites"."id" = $3 [["name", "Another Update"], ["updated_at", "2025-09-19 16:01:00.574798"], ["id", 3]]
1463
+ WebsiteHistory Load (0.3ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1464
+ WebsiteHistory Insert (3.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Another Update', NULL, NULL, NULL, '2025-09-19 16:01:00.570295', '2025-09-19 16:01:00.574798', 3, '2025-09-19 16:01:00.575207', NULL) ON CONFLICT DO NOTHING RETURNING "id"
1465
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
1466
+ WebsiteHistory Update (0.2ms) UPDATE "website_histories" SET "history_ended_at" = $1 WHERE "website_histories"."id" = $2 [["history_ended_at", "2025-09-19 16:01:00.575207"], ["id", 5]]
1467
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
1468
+ WebsiteHistory Count (0.2ms) SELECT COUNT(*) FROM "website_histories" WHERE "website_histories"."website_id" = $1 [["website_id", 3]]
1469
+ WebsiteHistory Load (0.2ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY "website_histories"."id" DESC LIMIT $2 [["website_id", 3], ["LIMIT", 1]]
1470
+ TRANSACTION (0.2ms) ROLLBACK
1471
+ TRANSACTION (0.1ms) BEGIN
1472
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1473
+ Website Create (0.3ms) INSERT INTO "websites" ("name", "project_id", "user_id", "template_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "Method Delegation Test"], ["project_id", nil], ["user_id", nil], ["template_id", nil], ["created_at", "2025-09-19 16:01:00.580891"], ["updated_at", "2025-09-19 16:01:00.580891"]]
1474
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 AND "website_histories"."history_ended_at" IS NULL ORDER BY id desc LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1475
+ WebsiteHistory Insert (0.1ms) INSERT INTO "website_histories" ("name","project_id","user_id","template_id","created_at","updated_at","website_id","history_started_at","history_user_id") VALUES ('Method Delegation Test', NULL, NULL, NULL, '2025-09-19 16:01:00.580891', '2025-09-19 16:01:00.580891', 4, '2025-09-19 16:01:00.581339', 1) ON CONFLICT DO NOTHING RETURNING "id"
1476
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]]
1477
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1478
+ WebsiteHistory Load (0.1ms) SELECT "website_histories".* FROM "website_histories" WHERE "website_histories"."website_id" = $1 ORDER BY "website_histories"."id" ASC LIMIT $2 [["website_id", 4], ["LIMIT", 1]]
1479
+ TRANSACTION (0.1ms) ROLLBACK