Files
baclight/db/migrate/20211216185503_create_comments.rb
T

11 lines
219 B
Ruby
Raw Normal View History

2021-12-16 14:33:08 -08:00
class CreateComments < ActiveRecord::Migration[7.0]
def change
create_table :comments do |t|
t.references :article, null: false, foreign_key: true
t.text :content
t.timestamps
end
end
end