PNixx / clickhouse-activerecord

A Ruby database ActiveRecord driver for ClickHouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boolean column type is creating a Uint8 column

schorsch opened this issue · comments

This is probably a leftover from the early days. Ch now has a bool column type which still uses uint8 under the hood:

https://github.com/PNixx/clickhouse-activerecord/blob/master/lib/active_record/connection_adapters/clickhouse_adapter.rb#L107
Should probably be changed to

boolean: { name: 'Bool' },