blob: 24876997cfd3f6420e81b4912bd206d1f7338c1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
class CreateOperationsFeatureFlagsIssues < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
create_table :operations_feature_flags_issues do |t|
t.references :feature_flag, index: false, foreign_key: { on_delete: :cascade, to_table: :operations_feature_flags }, null: false
t.bigint :issue_id, null: false
t.index [:feature_flag_id, :issue_id], unique: true, name: :index_ops_feature_flags_issues_on_feature_flag_id_and_issue_id
t.index :issue_id
end
end
end
|