Class: ActiveRecord::ConnectionAdapters::YugabyteDB::ExclusionConstraintDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_record/connection_adapters/yugabytedb/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



192
193
194
# File 'lib/active_record/connection_adapters/yugabytedb/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 'lib/active_record/connection_adapters/yugabytedb/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 'lib/active_record/connection_adapters/yugabytedb/schema_definitions.rb', line 192

def table_name
  @table_name
end

Instance Method Details

#deferrableObject



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

def deferrable
  options[:deferrable]
end

#export_name_on_schema_dump?Boolean

Returns:

  • (Boolean)


209
210
211
# File 'lib/active_record/connection_adapters/yugabytedb/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 'lib/active_record/connection_adapters/yugabytedb/schema_definitions.rb', line 193

def name
  options[:name]
end

#usingObject



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

def using
  options[:using]
end

#whereObject



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

def where
  options[:where]
end