11 lines
228 B
Ruby
11 lines
228 B
Ruby
|
class CreateComments < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :comments do |t|
|
||
|
t.string :content
|
||
|
t.references :mission, index: true, foreign_key: true
|
||
|
|
||
|
t.timestamps null: false
|
||
|
end
|
||
|
end
|
||
|
end
|