Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Geting error when using interval type in postgres #486

Description

@bhanuone

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions