Commit 10458bc4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6463 from gussan/add_index_merge_request_diffs_on_merge_request_id

Add index_merge_request_diffs_on_merge_request_id
parents d0e73eec 93bc67ab
class AddIndexMergeRequestDiffsOnMergeRequestId < ActiveRecord::Migration
def change
add_index :merge_request_diffs, :merge_request_id, unique: true
end
end
......@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140214102325) do
ActiveRecord::Schema.define(version: 20140304005354) do
create_table "broadcast_messages", force: true do |t|
t.text "message", null: false
......@@ -114,6 +114,8 @@ ActiveRecord::Schema.define(version: 20140214102325) do
t.datetime "updated_at"
end
add_index "merge_request_diffs", ["merge_request_id"], name: "index_merge_request_diffs_on_merge_request_id", unique: true, using: :btree
create_table "merge_requests", force: true do |t|
t.string "target_branch", null: false
t.string "source_branch", null: false
......
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