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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

#as_json

Instance Attribute Details

#expressionObject

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



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

def expression
  @expression
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



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

def options
  @options
end

#table_nameObject

Returns the value of attribute table_name

Returns:

  • (Object)

    the current value of table_name



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

def table_name
  @table_name
end

Instance Method Details

#deferrableObject



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

def deferrable
  options[:deferrable]
end

#export_name_on_schema_dump?Boolean

Returns:

  • (Boolean)


209
210
211
# 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

#nameObject



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

def name
  options[:name]
end

#usingObject



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

def using
  options[:using]
end

#whereObject



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

def where
  options[:where]
end