method

check_constraint_exists?

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
check_constraint_exists?(table_name, **options)
public

Checks to see if a check constraint exists on a table for a given check constraint definition.

check_constraint_exists?(:products, name: "price_check")