11 lines
229 B
Ruby
11 lines
229 B
Ruby
class CreateComments < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :comments do |t|
|
|
t.string :commenter
|
|
t.text :body
|
|
t.references :article, foreign_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|