Active Record PostgreSQL Adapter Table Definition

Methods

Included Modules

Attributes

[R] exclusion_constraints
[R] unique_constraints
[R] unlogged

Class Public methods

new(*, **)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 248
        def initialize(*, **)
          super
          @exclusion_constraints = []
          @unique_constraints = []
          @unlogged = ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables
        end
🔎 See on GitHub

Instance Public methods

exclusion_constraint(expression, **options)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 255
        def exclusion_constraint(expression, **options)
          exclusion_constraints << new_exclusion_constraint_definition(expression, options)
        end
🔎 See on GitHub

unique_constraint(column_name, **options)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 259
        def unique_constraint(column_name, **options)
          unique_constraints << new_unique_constraint_definition(column_name, options)
        end
🔎 See on GitHub