# activerecord-spanner-adapter - Class ActiveRecord::ConnectionAdapters::Spanner::IndexDefinition (v2.2.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.2.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/latest/ActiveRecord-ConnectionAdapters-Spanner-IndexDefinition)
- [2.1.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.1.0/ActiveRecord-ConnectionAdapters-Spanner-IndexDefinition)
- [2.0.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.0.0/ActiveRecord-ConnectionAdapters-Spanner-IndexDefinition)
Reference documentation and code samples for the activerecord-spanner-adapter class ActiveRecord::ConnectionAdapters::Spanner::IndexDefinition.

## Inherits

- ActiveRecord::ConnectionAdapters::IndexDefinition

## Methods

### #columns_with_order

    def columns_with_order()

rubocop:enable Lint/MissingSuper

### #initialize

    def initialize(table_name, name, columns, unique: false, null_filtered: false, interleave_in: nil, storing: nil, orders: nil) -> IndexDefinition

This constructor intentionally does not call super.
rubocop:disable Lint/MissingSuper
**Returns**

- ([IndexDefinition](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/latest/ActiveRecord-ConnectionAdapters-Spanner-IndexDefinition)) --- a new instance of IndexDefinition

### #interleave_in

    def interleave_in()

Returns the value of attribute interleave_in.

### #null_filtered

    def null_filtered()

Returns the value of attribute null_filtered.

### #orders

    def orders()

Returns the value of attribute orders.

### #storing

    def storing()

Returns the value of attribute storing.