activerecord-postgres_enum icon indicating copy to clipboard operation
activerecord-postgres_enum copied to clipboard

Integrate PostgreSQL's enum data type into ActiveRecord's schema and migrations.

Results 4 activerecord-postgres_enum issues
Sort by recently updated
recently updated
newest added

**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...

bug

_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...

dependencies

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...

enhancement

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...

docs