Add comments'

This commit is contained in:
Ryan W
2021-12-16 14:33:08 -08:00
parent 4edabe6ab1
commit 3a146f7f60
15 changed files with 97 additions and 5 deletions
@@ -0,0 +1,10 @@
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