instance method invert_add_check_constraint

Ruby on Rails 7.1.6

Since v7.1.6 Private

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

invert_add_check_constraint(args)

No documentation comment.

Parameters

args req
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 313
        def invert_add_check_constraint(args)
          if (options = args.last).is_a?(Hash)
            options.delete(:validate)
            options[:if_exists] = options.delete(:if_not_exists) if options.key?(:if_not_exists)
          end
          super
        end

Defined in activerecord/lib/active_record/migration/command_recorder.rb line 313 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Migration::CommandRecorder

Type at least 2 characters to search.

↑↓ navigate · open · esc close