diff --git a/db/migrate/20201227140150_create_issue_tags_relates.rb b/db/migrate/20201227140150_create_issue_tags_relates.rb new file mode 100644 index 000000000..857f1706e --- /dev/null +++ b/db/migrate/20201227140150_create_issue_tags_relates.rb @@ -0,0 +1,10 @@ +class CreateIssueTagsRelates < ActiveRecord::Migration[5.2] + def change + create_table :issue_tags_relates do |t| + t.integer :issue_id + t.integer :issue_tag_id + t.timestamps + end + add_index :issue_tags_relates, [:issue_id, :issue_tag_id] + end +end