diff options
Diffstat (limited to 'db/migrate/20200813143356_remove_old_external_diff_migration_index.rb')
-rw-r--r-- | db/migrate/20200813143356_remove_old_external_diff_migration_index.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/migrate/20200813143356_remove_old_external_diff_migration_index.rb b/db/migrate/20200813143356_remove_old_external_diff_migration_index.rb index 9b466f8734f..a3730247f10 100644 --- a/db/migrate/20200813143356_remove_old_external_diff_migration_index.rb +++ b/db/migrate/20200813143356_remove_old_external_diff_migration_index.rb @@ -18,7 +18,8 @@ class RemoveOldExternalDiffMigrationIndex < ActiveRecord::Migration[6.0] add_concurrent_index( :merge_request_diffs, [:merge_request_id, :id], - where: { stored_externally: [nil, false] } + where: 'NOT stored_externally OR stored_externally IS NULL', + name: 'index_merge_request_diffs_on_merge_request_id_and_id_partial' ) end end |