instance method
invert_remove_check_constraint
Ruby on Rails 8.1.2
Since v6.1.7.10 PrivateSignature
invert_remove_check_constraint(args)
No documentation comment.
Parameters
-
argsreq
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 347
def invert_remove_check_constraint(args)
raise ActiveRecord::IrreversibleMigration, "remove_check_constraint is only reversible if given an expression." if args.size < 2
if (options = args.last).is_a?(Hash)
options[:if_not_exists] = options.delete(:if_exists) if options.key?(:if_exists)
end
super
end
Defined in activerecord/lib/active_record/migration/command_recorder.rb line 347
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CommandRecorder