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

#expressionObject

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

#optionsObject

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_nameObject

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

#deferrableObject



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

#nameObject



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

def name
  options[:name]
end

#usingObject



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

def using
  options[:using]
end

#whereObject



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

def where
  options[:where]
end