-
- Downloads
There was an error fetching the commit references. Please try again later.
Shortcut concurrent index creation/removal if no effect.
Index creation does not have an effect if the index is present already. Index removal does not have an affect if the index is not present. This helps to avoid patterns like this in migrations: ``` if index_exists?(...) remove_concurrent_index(...) end ```
Showing
- doc/development/migration_style_guide.md 4 additions, 1 deletiondoc/development/migration_style_guide.md
- lib/gitlab/database/migration_helpers.rb 15 additions, 0 deletionslib/gitlab/database/migration_helpers.rb
- spec/lib/gitlab/database/migration_helpers_spec.rb 52 additions, 10 deletionsspec/lib/gitlab/database/migration_helpers_spec.rb
Please register or sign in to comment