jonatas / timescaledb

The timescaledb gem. Pack of helpers to work with TimescaleDB extension in Ruby.
https://jonatas.github.io/timescaledb/
MIT License
61 stars 18 forks source link

hypertable option not recognized #55

Closed jose96043 closed 5 months ago

jose96043 commented 7 months ago

ArgumentError: Unknown key: :hypertable. Valid keys are: :temporary, :if_not_exists, :options, :as, :comment, :charset, :collation, :limit, :default, :precision (ArgumentError)

Trying to add this to rails 7.1 migration and is not working

jonatas commented 7 months ago

Hi @jose96043, please take a look if you need to maybe require "timescaledb" or if it's a problem in the new migration layer.

I'll try to find sometime to debug it in the next days, but if you can try it yourself.

https://github.com/jonatas/timescaledb/blob/master/lib/timescaledb/migration_helpers.rb#L146

Are you already using the gem or trying first time?

jamescook10 commented 6 months ago

Hi @jonatas any update on this please? Just setting up for the first time and hit the same issue

jamescook10 commented 6 months ago

Passing _skip_validate_options: true to the create_table method bypasses the code causing the issue, although it's not ideal. Would be great to get a fix for this.

jonatas commented 6 months ago

Hello @jamescook10 , I'm sorry for not getting back to you. I still need to find some time to debug the issue. I don't get what you mean by skip validate options. Can you provide an example?

jonatas commented 5 months ago

I finally fixed it on #61.