method
invert_remove_check_constraint
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Migration::CommandRecorder
invert_remove_check_constraint(args)private
No documentation available.
# 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