method

invert_remove_check_constraint

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: CommandRecorder
invert_remove_check_constraint(args) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 321
        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
Register or log in to add new notes.