class ActiveRecord::ConnectionAdapters::PostgreSQL::Table
def validate_constraint(...)
t.validate_constraint "price_check"
t.check_constraint("price > 0", name: "price_check", validate: false)
Validates the given constraint on the table.
def validate_constraint(...) @base.validate_constraint(name, ...) end