Method: ActiveRecord::ConnectionAdapters::Table#remove_check_constraint

Defined in:
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb

#remove_check_constraint(*args, **options) ⇒ Object

Removes the given check constraint from the table.

t.remove_check_constraint(name: "price_check")

See connection.remove_check_constraint



934
935
936
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 934

def remove_check_constraint(*args, **options)
  @base.remove_check_constraint(name, *args, **options)
end