Class: ActiveRecord::ConnectionAdapters::IndexDefinition

Inherits:
Struct
  • Object
show all
Defined in:
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

Instance Attribute Details

#columnsObject

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns



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

def columns
  @columns
end

#lengthsObject

Returns the value of attribute lengths

Returns:

  • (Object)

    the current value of lengths



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

def lengths
  @lengths
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#ordersObject

Returns the value of attribute orders

Returns:

  • (Object)

    the current value of orders



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

def orders
  @orders
end

#tableObject

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



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

def table
  @table
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

#uniqueObject

Returns the value of attribute unique

Returns:

  • (Object)

    the current value of unique



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

def unique
  @unique
end

#usingObject

Returns the value of attribute using

Returns:

  • (Object)

    the current value of using



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

def using
  @using
end

#whereObject

Returns the value of attribute where

Returns:

  • (Object)

    the current value of where



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

def where
  @where
end