Class: ActiveRecord::ConnectionAdapters::PostgreSQLConstraint

Inherits:
Object
  • Object
show all
Includes:
PostgreSQLExtensions::Utils
Defined in:
lib/active_record/postgresql_extensions/constraints.rb

Overview

This is a base class for other PostgreSQL constraint classes. It isn’t really meant to be used directly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PostgreSQLExtensions::Utils

#hash_or_array_of_hashes, #options_from_hash_or_string, #strip_heredoc

Constructor Details

#initialize(base, options) ⇒ PostgreSQLConstraint

:nodoc:



90
91
92
# File 'lib/active_record/postgresql_extensions/constraints.rb', line 90

def initialize(base, options) #:nodoc:
  @base, @options = base, options
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



88
89
90
# File 'lib/active_record/postgresql_extensions/constraints.rb', line 88

def base
  @base
end

#optionsObject

Returns the value of attribute options.



88
89
90
# File 'lib/active_record/postgresql_extensions/constraints.rb', line 88

def options
  @options
end