123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::ConnectionAdapters::PostgreSQL::Table

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActiveRecord::ConnectionAdapters::Table
Defined in: activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

ColumnMethods - Included

::ActiveRecord::ConnectionAdapters::Table - Inherited

#belongs_to

Alias for Table#references.

#change

Changes the column's definition according to the new options.

#change_default

Sets a new default value for a column.

#column

Adds a new column to the named table.

#column_exists?

Checks to see if a column exists.

#index

Adds a new index to the table.

#index_exists?

Checks to see if an index exists.

#references

Adds a reference.

#remove

Removes the column(s) from the table definition.

#remove_belongs_to
#remove_index

Removes the given index from the table.

#remove_references

Removes a reference.

#remove_timestamps

Removes the timestamp columns (created_at and updated_at) from the table.

#rename

Renames a column.

#rename_index

Renames the given index on the table.

#timestamps

Adds timestamps (created_at and updated_at) columns to the table.

Constructor Details

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