# activerecord-spanner-adapter - Class ActiveRecordSpannerAdapter::Table (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/ActiveRecordSpannerAdapter-Table)
- [2.1.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.1.0/ActiveRecordSpannerAdapter-Table)
- [2.0.0](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/2.0.0/ActiveRecordSpannerAdapter-Table)
Reference documentation and code samples for the activerecord-spanner-adapter class ActiveRecordSpannerAdapter::Table.

## Inherits

- Object

## Methods

### #cascade?

    def cascade?() -> Boolean

**Returns**

- (Boolean)

### #catalog

    def catalog()

Returns the value of attribute catalog.

### #catalog=

    def catalog=(value)

Sets the attribute catalog

### #columns

    def columns()

Returns the value of attribute columns.

### #columns=

    def columns=(value)

Sets the attribute columns

### #foreign_keys

    def foreign_keys()

Returns the value of attribute foreign_keys.

### #foreign_keys=

    def foreign_keys=(value)

Sets the attribute foreign_keys

### #indexes

    def indexes()

Returns the value of attribute indexes.

### #indexes=

    def indexes=(value)

Sets the attribute indexes

### #initialize

    def initialize(name, parent_table: nil, on_delete: nil, schema_name: nil, catalog: nil) -> Table

parent_table == interleave_in
**Returns**

- ([Table](https://docs.cloud.google.com/ruby/docs/reference/activerecord-spanner-adapter/latest/ActiveRecordSpannerAdapter-Table)) --- a new instance of Table

### #name

    def name()

Returns the value of attribute name.

### #name=

    def name=(value)

Sets the attribute name

### #on_delete

    def on_delete()

Returns the value of attribute on_delete.

### #on_delete=

    def on_delete=(value)

Sets the attribute on_delete

### #parent_table

    def parent_table()

Returns the value of attribute parent_table.

### #parent_table=

    def parent_table=(value)

Sets the attribute parent_table

### #primary_keys

    def primary_keys()

### #schema_name

    def schema_name()

Returns the value of attribute schema_name.

### #schema_name=

    def schema_name=(value)

Sets the attribute schema_name