Commit e97ce957 authored by Alexandru Croitor's avatar Alexandru Croitor

Add a newline between table creation and add_index for readability

parent 21c2e88e
......@@ -8,6 +8,7 @@ class SupportMultipleMilestonesForIssues < ActiveRecord::Migration[5.2]
t.references :issue, foreign_key: { on_delete: :cascade }, index: { unique: true }, null: false
t.references :milestone, foreign_key: { on_delete: :cascade }, index: true, null: false
end
add_index :issue_milestones, [:issue_id, :milestone_id], unique: true
end
end
......@@ -8,6 +8,7 @@ class SupportMultipleMilestonesForMergeRequests < ActiveRecord::Migration[5.2]
t.references :merge_request, foreign_key: { on_delete: :cascade }, index: { unique: true }, null: false
t.references :milestone, foreign_key: { on_delete: :cascade }, index: true, null: false
end
add_index :merge_request_milestones, [:merge_request_id, :milestone_id], name: 'index_mrs_milestones_on_mr_id_and_milestone_id', unique: true
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment