PNixx / clickhouse-activerecord

A Ruby database ActiveRecord driver for ClickHouse
MIT License
202 stars 100 forks source link

Primary keys with a name other than `id` no longer dumped correctly #171

Closed danielwestendorf closed 1 month ago

danielwestendorf commented 1 month ago

ddfa259bbec88aefa3eaf2942392b8473a477601 introduced a change which limited schema dumping of primary keys only to columns which are named id. If the primary key has a different name, the table definition receives id: false and the primary key column definition is omitted.