13 lines
226 B
Ruby
13 lines
226 B
Ruby
|
class CreateComments < ActiveRecord::Migration[5.0]
|
||
|
def change
|
||
|
create_table :comments do |t|
|
||
|
t.string :name
|
||
|
t.string :email
|
||
|
t.text :conent
|
||
|
t.integer :post_id
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|