12 lines
242 B
Ruby
12 lines
242 B
Ruby
class CreateComments < ActiveRecord::Migration[7.1]
|
|
def change
|
|
create_table :comments do |t|
|
|
t.string :commenter
|
|
t.text :body
|
|
t.references :article, null: false, foreign_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|