Module: Torque::PostgreSQL::Adapter::TableDefinition

Includes:
ColumnMethods
Defined in:
lib/torque/postgresql/adapter/schema_definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ColumnMethods

#enum, #enum_set, #interval

Instance Attribute Details

#inheritsObject (readonly)

Returns the value of attribute inherits.



35
36
37
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 35

def inherits
  @inherits
end

Instance Method Details

#initialize(*args, **options) ⇒ Object



37
38
39
40
41
42
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 37

def initialize(*args, **options)
  super

  @inherits = Array.wrap(options.delete(:inherits)).flatten.compact \
    if options.key?(:inherits)
end