Class: ActiveRecord::ConnectionAdapters::PostgreSQLConstraint
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::PostgreSQLConstraint
- 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.
Direct Known Subclasses
PostgreSQLCheckConstraint, PostgreSQLExcludeConstraint, PostgreSQLForeignKeyConstraint, PostgreSQLPrimaryKeyConstraint, PostgreSQLUniqueConstraint
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(base, options) ⇒ PostgreSQLConstraint
constructor
:nodoc:.
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, ) #:nodoc: @base, @options = base, end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
88 89 90 |
# File 'lib/active_record/postgresql_extensions/constraints.rb', line 88 def base @base end |
#options ⇒ Object
Returns the value of attribute options.
88 89 90 |
# File 'lib/active_record/postgresql_extensions/constraints.rb', line 88 def @options end |