• pbair's avatar
    Helper to safely add indexes to partitioned tables · 9a58817b
    pbair authored
    Add a new set of migration helpers to concurrently create indexes
    on partitioned tables. Postgres does not support concurrent index
    creation on partitioned tables, so the index must be created
    concurrently on each partition, and then finally added in a
    non-concurrent fashion on the parent table.
    9a58817b
index_helpers.rb 3.93 KB