diff options
author | gussan <egussan@gmail.com> | 2014-03-04 05:38:09 +0400 |
---|---|---|
committer | gussan <egussan@gmail.com> | 2014-03-04 05:38:09 +0400 |
commit | 93bc67ab114d73589c385cc83dc2dda70fa3b211 (patch) | |
tree | 7bac1508c53b3bd9253d7b821aab48a467faaea0 /db/migrate | |
parent | d0e73eeca1f4e9d460a50200518e49b3afebbac9 (diff) |
Add index_merge_request_diffs_on_merge_request_id
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20140304005354_add_index_merge_request_diffs_on_merge_request_id.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20140304005354_add_index_merge_request_diffs_on_merge_request_id.rb b/db/migrate/20140304005354_add_index_merge_request_diffs_on_merge_request_id.rb new file mode 100644 index 00000000000..65d28e8cb01 --- /dev/null +++ b/db/migrate/20140304005354_add_index_merge_request_diffs_on_merge_request_id.rb @@ -0,0 +1,5 @@ +class AddIndexMergeRequestDiffsOnMergeRequestId < ActiveRecord::Migration + def change + add_index :merge_request_diffs, :merge_request_id, unique: true + end +end |