Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20151116144118_add_unique_for_lfs_oid_index.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1f192544ea155d9e04094c126d1f2b02ac75b772 (plain)
1
2
3
4
5
6
7
8
# rubocop:disable all
class AddUniqueForLfsOidIndex < ActiveRecord::Migration
  def change
    remove_index :lfs_objects, :oid
    remove_index :lfs_objects, [:oid, :size]
    add_index :lfs_objects, :oid, unique: true
  end
end