I have a table(videos) with a column named duration of type interval. I am getting the following error when I try to run the app.
Hanami::Model::Error: missing attributes in ROM::Relation::Name(videos) schema: :duration
Then I followed the instructions specified here to enable interval type and added the following line in my model configuration block
Sequel.extension :pg_interval
then I got this error
LoadError: cannot load such file -- active_support/duration
So I added activesupport to my Gemfile and bundled. But rom-rb doesn't seem to recognize the type and I ended up getting the same error that occured in the beginning. How can I fix this?
I have a table(videos) with a column named duration of type
interval. I am getting the following error when I try to run the app.Hanami::Model::Error: missing attributes in ROM::Relation::Name(videos) schema: :durationThen I followed the instructions specified here to enable interval type and added the following line in my model configuration block
Sequel.extension :pg_intervalthen I got this error
LoadError: cannot load such file -- active_support/durationSo I added activesupport to my Gemfile and bundled. But rom-rb doesn't seem to recognize the type and I ended up getting the same error that occured in the beginning. How can I fix this?