123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition

Class Method Summary

Instance Attribute Summary

Instance Method Summary

ColumnMethods - Included

::ActiveRecord::ConnectionAdapters::TableDefinition - Inherited

#[]

Returns a ::ActiveRecord::ConnectionAdapters::ColumnDefinition for the column with name name.

#belongs_to
#column

Instantiates a new column for the table.

#columns

Returns an array of ::ActiveRecord::ConnectionAdapters::ColumnDefinition objects for the columns of the table.

#index

Adds index options to the indexes hash, keyed by column name This is primarily used to track indexes that need to be created after the table.

#references

Adds a reference.

#remove_column

remove the column name from the table.

#timestamps

Appends :datetime columns :created_at and :updated_at to the table.

::ActiveRecord::ConnectionAdapters::ColumnMethods - Included

#numeric,
#primary_key

Appends a primary key definition to the table definition.

Constructor Details

This class inherits a constructor from ActiveRecord::ConnectionAdapters::TableDefinition