# NOTE: ALTER TYPE ... ADD VALUE cannot be executed inside of a transaction block so here we are using disable_ddl_transaction!
# NOTE: ALTER TYPE ... ADD VALUE cannot be executed inside of a transaction block so here we are using disable_ddl_transaction!
...
@@ -264,9 +265,10 @@ def up
...
@@ -264,9 +265,10 @@ def up
end
end
```
```
NOTE: by now we can't drop ENUM values. You can read why [here](http://www.postgresql.org/message-id/29F36C7C98AB09499B1A209D48EAA615B7653DBC8A@mail2a.alliedtesting.com).
NOTE: ENUM values can't be dropped currently. You can read why [here](http://www.postgresql.org/message-id/29F36C7C98AB09499B1A209D48EAA615B7653DBC8A@mail2a.alliedtesting.com).
Hint: to show all the values of the all enums you have, you should call this query in `bin/rails db` or `psql` console:
Hint: to show all the values of the all enums you have, you should call this query in `bin/rails db` or `psql` console:
```sql
```sql
SELECTn.nspnameASenum_schema,
SELECTn.nspnameASenum_schema,
t.typnameASenum_name,
t.typnameASenum_name,
...
@@ -282,7 +284,7 @@ SELECT n.nspname AS enum_schema,
...
@@ -282,7 +284,7 @@ SELECT n.nspname AS enum_schema,