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