Method: Sequel::Postgres::EnumDatabaseMethods#rename_enum_value

Defined in:
lib/sequel/extensions/pg_enum.rb

#rename_enum_value(enum, old_name, new_name) ⇒ Object

Run the SQL to rename the enum value with the given name to the another given name.



114
115
116
# File 'lib/sequel/extensions/pg_enum.rb', line 114

def rename_enum_value(enum, old_name, new_name)
  _process_enum_change_sql("ALTER TYPE #{quote_schema_table(enum)} RENAME VALUE #{literal(old_name.to_s)} TO #{literal(new_name.to_s)}")
end