Squash migrations: create files table directly
Replaces the three-step create documents / add name / rename to files
with a single migration. Drops the name column since it'll only be
needed on documents later.

https://claude.ai/code/session_018Ym45siELMvsBQj4w9QAXf
change
commit f0bf06f0b92366f3829d841a615e491866d0a7fe
author Alpha Chen <alpha@kejadlen.dev>
date
parent 12e02993
diff --git a/db/migrate/001_create_files.rb b/db/migrate/001_create_files.rb
new file mode 100644
index 0000000..d571a55
--- /dev/null
+++ b/db/migrate/001_create_files.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+Sequel.migration do
+  change do
+    create_table(:files) do
+      primary_key :id
+      String :path, null: false
+      String :kind, null: false
+      DateTime :received_at, null: false
+      DateTime :created_at, null: false
+    end
+  end
+end