instance method
invert_remove_columns
Ruby on Rails edge
Since v6.1.7.10 Private — implementation detail, not part of the public APISignature
invert_remove_columns(args, kwargs)
No documentation comment.
Parameters
-
argsreq -
kwargsreq
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 224
def invert_remove_columns(args, kwargs)
unless kwargs.key?(:type)
raise ActiveRecord::IrreversibleMigration, "remove_columns is only reversible if given a type."
end
[:add_columns, args, kwargs]
end
Defined in activerecord/lib/active_record/migration/command_recorder.rb line 224
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CommandRecorder