instance method
invert_drop_enum
Ruby on Rails edge
Since v7.1.6 Private — implementation detail, not part of the public APISignature
invert_drop_enum(args, kwargs)
No documentation comment.
Parameters
-
argsreq -
kwargsreq
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 354
def invert_drop_enum(args, kwargs)
_enum, values = args
raise ActiveRecord::IrreversibleMigration, "drop_enum is only reversible if given a list of enum values." unless values
super
end
Defined in activerecord/lib/active_record/migration/command_recorder.rb line 354
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CommandRecorder