123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Inherits: Struct
  • ::Object
Defined in: activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#export_name_on_schema_dump?Boolean (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 209

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

#expression (rw)

[ GitHub ]

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

ExclusionConstraintDefinition = Struct.new(:table_name, :expression, :options)

#options (rw)

[ GitHub ]

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

ExclusionConstraintDefinition = Struct.new(:table_name, :expression, :options)

#table_name (rw)

[ GitHub ]

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

ExclusionConstraintDefinition = Struct.new(:table_name, :expression, :options)

Instance Method Details

#deferrable

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 205

def deferrable
  options[:deferrable]
end

#name

[ GitHub ]

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

def name
  options[:name]
end

#using

[ GitHub ]

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

def using
  options[:using]
end

#where

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 201

def where
  options[:where]
end