instance method
invert_remove_check_constraint
Ruby on Rails edge
Since v6.1.7.10 Private — implementation detail, not part of the public APISignature
invert_remove_check_constraint(args, kwargs)
No documentation comment.
Parameters
-
argsreq -
kwargsreq
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 331
def invert_remove_check_constraint(args, kwargs)
raise ActiveRecord::IrreversibleMigration, "remove_check_constraint is only reversible if given an expression." if args.size < 2
kwargs[:if_not_exists] = kwargs.delete(:if_exists) if kwargs.key?(:if_exists)
super
end
Defined in activerecord/lib/active_record/migration/command_recorder.rb line 331
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CommandRecorder