activerecord-postgres_enum
activerecord-postgres_enum copied to clipboard
Integrate PostgreSQL's enum data type into ActiveRecord's schema and migrations.
**Describe the bug** The following migration: ```ruby def change create_enum :product_type, %w[one-off subscription] add_column :products, :types, :product_type, array: true, default: [] end ``` Fails with the error: ``` TypeError: can't...
_Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then._ Dependabot has...
Symbols?
My expectation when using this gem was that the values would be automatically returned as symbols, however strings are used by default. If I submit a pull request that adds...
When trying to use ActiveRecord's Enum stuff with an enum column I end up with a type mismatch when creating records. ActiveRecord defaults to converting the enum values to integers...