Method: ActiveRecord::PGExtensions::PessimisticMigrations#remove_check_constraint

Defined in:
lib/active_record/pg_extensions/pessimistic_migrations.rb

#remove_check_constraint(table_name, expression = nil, if_exists: false, **options) ⇒ Object



100
101
102
103
104
105
# File 'lib/active_record/pg_extensions/pessimistic_migrations.rb', line 100

def remove_check_constraint(table_name, expression = nil, if_exists: false, **options)
  options = check_constraint_options(table_name, expression, options)
  return if if_exists && !check_constraint_for(table_name, **options)

  super
end