bibendi / activerecord-postgres_enum

Integrate PostgreSQL's enum data type into ActiveRecord's schema and migrations.
MIT License
361 stars 24 forks source link

Converting existing columns from integers to enums #54

Closed Faq closed 2 years ago

Faq commented 2 years ago

Hello, gem can also be used to convert from existing column some data type, for example, from integer to enum? Did not found anything in documentation about this.

bibendi commented 2 years ago

Hi! Sorry, the gem cannot do that. You should do it on your own manually using raw SQL.