forgeplus/db/migrate/20200103062807_create_issue...

13 lines
300 B
Ruby

class CreateIssueDepends < ActiveRecord::Migration[5.2]
def change
create_table :issue_depends do |t|
t.integer :user_id
t.integer :issue_id
t.integer :depend_issue_id
t.timestamps
end
add_index :issue_depends, [:user_id, :issue_id, :depend_issue_id]
end
end