method
invert_drop_enum
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Migration::CommandRecorder
invert_drop_enum(args)private
No documentation available.
# File activerecord/lib/active_record/migration/command_recorder.rb, line 360
def invert_drop_enum(args)
_enum, values = args.dup.tap(&:extract_options!)
raise ActiveRecord::IrreversibleMigration, "drop_enum is only reversible if given a list of enum values." unless values
super
end