method

check_constraint

rails latest stable - Class: ActiveRecord::ConnectionAdapters::TableDefinition

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

check_constraint(expression, **options)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 517
      def check_constraint(expression, **options)
        check_constraints << new_check_constraint_definition(expression, options)
      end