#1 順番修正

This commit is contained in:
2025-02-27 22:09:51 +09:00
parent c6854b7a54
commit c6deba7c26
4 changed files with 120 additions and 4 deletions
@@ -0,0 +1,12 @@
class CreatePosts < ActiveRecord::Migration[7.0]
def change
create_table :posts do |t|
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.timestamps
end
end
end