method
validate_constraint
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::Table
validate_constraint(...)public
Validates the given constraint on the table.
t.check_constraint("price > 0", name: "price_check", validate: false) t.validate_constraint "price_check"
See {connection.validate_constraint}[rdoc-ref:SchemaStatements#validate_constraint]