12 lines
205 B
Ruby
12 lines
205 B
Ruby
class CreateComments < ActiveRecord::Migration
|
|
def change
|
|
create_table :comments do |t|
|
|
t.text :text
|
|
t.integer :user_id
|
|
t.references :blogpost
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|