Class: ActiveRecord::ConnectionAdapters::PostgreSQL::ExclusionConstraintDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_record/connection_adapters/postgresql/schema_definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expression ⇒ Object

Returns the value of attribute expression

Returns:

  • (Object) —

    the current value of expression



179
180
181
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 179

def expression
  @expression
end

#options ⇒ Object

Returns the value of attribute options

Returns:

  • (Object) —

    the current value of options



179
180
181
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 179

def options
  @options
end

#table_name ⇒ Object

Returns the value of attribute table_name

Returns:

  • (Object) —

    the current value of table_name



179
180
181
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 179

def table_name
  @table_name
end

Instance Method Details

#deferrable ⇒ Object



192
193
194
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 192

def deferrable
  options[:deferrable]
end

#export_name_on_schema_dump? ⇒ Boolean

Returns:

  • (Boolean)


196
197
198
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 196

def export_name_on_schema_dump?
  !ActiveRecord::SchemaDumper.excl_ignore_pattern.match?(name) if name
end

#name ⇒ Object



180
181
182
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 180

def name
  options[:name]
end

#using ⇒ Object



184
185
186
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 184

def using
  options[:using]
end

#where ⇒ Object



188
189
190
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 188

def where
  options[:where]
end