bibendi / activerecord-postgres_enum

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

Add note on disable_ddl_transaction! to README #16

Closed mikker closed 5 years ago

mikker commented 5 years ago

Trying to add an enum value I was greeted by the error PG::ActiveSqlTransaction: ERROR: ALTER TYPE ... ADD cannot run inside a transaction block. Disabling the wrapping transaction made it work but I had to look that up first.

bibendi commented 5 years ago

Thanks!

mikker commented 5 years ago

Thank you! Gem works great 👌