method
validate_check_constraint
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements
validate_check_constraint(table_name, **options)public
Validates the given check constraint.
validate_check_constraint :products, name: "price_check"
The options hash accepts the same keys as add_check_constraint[rdoc-ref:ConnectionAdapters::SchemaStatements#add_check_constraint].