method
drop_enum
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
drop_enum(name, values = nil, **options)public
Drops an enum type.
If the if_exists: true option is provided, the enum is dropped only if it exists. Otherwise, if the enum doesn’t exist, an error is raised.
The values parameter will be ignored if present. It can be helpful to provide this in a migration’s change method so it can be reverted. In that case, values will be used by #create_enum.