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

## Inherits

- Object

## Methods

### #allow_commit_timestamp

    def allow_commit_timestamp()

Returns the value of attribute allow_commit_timestamp.

### #allow_commit_timestamp=

    def allow_commit_timestamp=(value)

Sets the attribute allow_commit_timestamp

### #default

    def default()

Returns the value of attribute default.

### #default=

    def default=(value)

Sets the attribute default

### #default_function

    def default_function()

Returns the value of attribute default_function.

### #default_function=

    def default_function=(value)

Sets the attribute default_function

### #generated

    def generated()

Returns the value of attribute generated.

### #generated=

    def generated=(value)

Sets the attribute generated

### #initialize

    def initialize(table_name, name, type, schema_name: "", limit: nil, ordinal_position: nil, nullable: true, allow_commit_timestamp: nil, default: nil, default_function: nil, generated: nil, primary_key: false, is_identity: false) -> Column

**Returns**

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

### #is_identity

    def is_identity()

Returns the value of attribute is_identity.

### #is_identity=

    def is_identity=(value)

Sets the attribute is_identity

### #limit

    def limit()

Returns the value of attribute limit.

### #limit=

    def limit=(value)

Sets the attribute limit

### #name

    def name()

Returns the value of attribute name.

### #name=

    def name=(value)

Sets the attribute name

### #nullable

    def nullable()

Returns the value of attribute nullable.

### #nullable=

    def nullable=(value)

Sets the attribute nullable

### #options

    def options()

### #ordinal_position

    def ordinal_position()

Returns the value of attribute ordinal_position.

### #ordinal_position=

    def ordinal_position=(value)

Sets the attribute ordinal_position

### #primary_key

    def primary_key()

Returns the value of attribute primary_key.

### #primary_key=

    def primary_key=(value)

Sets the attribute primary_key

### #schema_name

    def schema_name()

Returns the value of attribute schema_name.

### #schema_name=

    def schema_name=(value)

Sets the attribute schema_name

### #spanner_type

    def spanner_type()

### #table_name

    def table_name()

Returns the value of attribute table_name.

### #table_name=

    def table_name=(value)

Sets the attribute table_name

### #type

    def type()

Returns the value of attribute type.

### #type=

    def type=(value)

Sets the attribute type