• pbair's avatar
    Rename partitions when swapping partitioned tables · 5d1a3f59
    pbair authored
    When replacing a non-partitioned table with its partitioned copy, also
    rename the underlying partitions to follow the same naming scheme as the
    parent table. This includes renaming the primary key constraints of
    those partitions, which typically would be `"#{table_name}_pkey"`.
    5d1a3f59
table_schema_helpers.rb 3.2 KB