• Andreas Brandl's avatar
    Shortcut concurrent index creation/removal if no effect. · 1362d9fe
    Andreas Brandl authored
    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
    ```
    1362d9fe
migration_style_guide.md 12 KB