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

Instance Attribute Details

#columnsObject

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def columns
  @columns
end

#commentObject

Returns the value of attribute comment

Returns:

  • (Object)

    the current value of comment


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def comment
  @comment
end

#lengthsObject

Returns the value of attribute lengths

Returns:

  • (Object)

    the current value of lengths


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def lengths
  @lengths
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def name
  @name
end

#ordersObject

Returns the value of attribute orders

Returns:

  • (Object)

    the current value of orders


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def orders
  @orders
end

#tableObject

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def table
  @table
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def type
  @type
end

#uniqueObject

Returns the value of attribute unique

Returns:

  • (Object)

    the current value of unique


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def unique
  @unique
end

#usingObject

Returns the value of attribute using

Returns:

  • (Object)

    the current value of using


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def using
  @using
end

#whereObject

Returns the value of attribute where

Returns:

  • (Object)

    the current value of where


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 6

def where
  @where
end