Method: Sequel::Postgres::EnumDatabaseMethods#drop_enum
- Defined in:
- lib/sequel/extensions/pg_enum.rb
#drop_enum(enum, opts = OPTS) ⇒ Object
Run the SQL to drop the enum type with the given name. Options:
- :if_exists
-
Do not raise an error if the enum type does not exist
- :cascade
-
Also drop other objects that depend on the enum type
122 123 124 |
# File 'lib/sequel/extensions/pg_enum.rb', line 122 def drop_enum(enum, opts=OPTS) _process_enum_change_sql("DROP TYPE#{' IF EXISTS' if opts[:if_exists]} #{quote_schema_table(enum)}#{' CASCADE' if opts[:cascade]}") end |