mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 13:53:37 +01:00
13 lines
257 B
Ruby
13 lines
257 B
Ruby
|
class CreateComments < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :comments do |t|
|
||
|
t.string :content
|
||
|
t.integer :answer_id
|
||
|
t.integer :user_id
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :comments, [:user_id, :created_at]
|
||
|
end
|
||
|
end
|