• Yorick Peterse's avatar
    Fix migration for removing MR diff indexes · fd4ad654
    Yorick Peterse authored
    For whatever reason on some PostgreSQL installations there would be a
    separate UNIQUE constraint on the merge_request_id column. Rails'
    index_exists?() returns false for this constraint (even when using the
    full name), yet the indexes() method returns it.
    
    This commit changes the migration so that the constraint is dropped as
    well. MySQL installations don't appear to be affected.
    
    Fixes gitlab-org/gitlab-ce#22136
    fd4ad654
20160725104020_merge_request_diff_remove_uniq.rb 1.08 KB