Class: ActiveRecord::ConnectionAdapters::IndexDefinition

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

Overview

Abstract representation of an index definition on a table. Instances of this type are typically created and returned by methods in database adapters. e.g. ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter#indexes

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#as_json, #to_h

Instance Attribute Details

#columnsObject

Returns the value of attribute columns


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def columns
  @columns
end

#lengthsObject

Returns the value of attribute lengths


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def lengths
  @lengths
end

#nameObject

Returns the value of attribute name


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def name
  @name
end

#ordersObject

Returns the value of attribute orders


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def orders
  @orders
end

#tableObject

Returns the value of attribute table


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def table
  @table
end

#typeObject

Returns the value of attribute type


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def type
  @type
end

#uniqueObject

Returns the value of attribute unique


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def unique
  @unique
end

#usingObject

Returns the value of attribute using


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def using
  @using
end

#whereObject

Returns the value of attribute where


11
12
13
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 11

def where
  @where
end