#2 ぼちぼち

This commit is contained in:
2025-02-27 23:38:45 +09:00
parent c6deba7c26
commit 137c86bba7
18 changed files with 156 additions and 31 deletions
@@ -4,8 +4,8 @@ class CreatePosts < ActiveRecord::Migration[7.0]
t.string :url, limit: 2000, null: false
t.string :thumbnail, limit: 255, null: false
t.string :thumbnail_base, limit: 2000, null: false
t.references :post, foreign_key: { to_table: :posts }
t.references :uploaded_by, foreign_key: { to_table: :users }
t.references :parent, foreign_key: { to_table: :posts }
t.references :uploaded_user, foreign_key: { to_table: :users }
t.timestamps
end
end