You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails 7 adds support for native PG enum types. You can read more about it here.
When I try to use the enum columns with pg_column_byte_packer, I get this error
== 20230320215807 CreateSubscriptions: migrating ==============================
-- create_enum(:subscription_billing_cycle, ["monthly", "yearly"])
-> 0.0030s
-- create_enum(:subscription_status, ["payment_pending", "active", "user_canceled", "inactive"])
-> 0.0009s
-- create_table(:subscriptions)
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:
enum_type is required for enums
/Users/vitor/Developer/subscriber_only/db/migrate/20230320215807_create_subscriptions.rb:11:in `change'
Caused by:
ArgumentError: enum_type is required for enums
/Users/vitor/Developer/subscriber_only/db/migrate/20230320215807_create_subscriptions.rb:11:in `change'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
If I comment out the gem, everything works as expected. Any idea if this can be fixed?
The text was updated successfully, but these errors were encountered:
vmsp
added a commit
to vmsp/pg_column_byte_packer
that referenced
this issue
Mar 20, 2023
Rails 7 adds support for native PG enum types. You can read more about it here.
When I try to use the enum columns with
pg_column_byte_packer
, I get this errorIf I comment out the gem, everything works as expected. Any idea if this can be fixed?
The text was updated successfully, but these errors were encountered: