| #add_belongs_to |
|
| #add_column |
Adds a new column to the named table. |
| #add_foreign_key |
|
| #add_index |
Adds a new index to the table. |
| #add_reference |
|
| #add_timestamps |
Adds timestamps (created_at and updated_at) columns to table_name. |
|
#assume_migrated_upto_version,
|
| #change_column |
Changes the column's definition according to the new options. |
| #change_column_default |
Sets a new default value for a column: |
| #change_column_null |
Sets or removes a NOT NULL constraint on a column. |
| #change_table |
A block for changing columns in table. |
| #column_exists? |
Checks to see if a column exists in a given table. |
| #columns |
Returns an array of Column objects for the table specified by table_name. |
| #create_join_table |
Creates a new join table with the name created using the lexical order of the first two arguments. |
| #create_table |
Creates a new table with the name table_name. |
| #data_source_exists? |
Checks to see if the data source name exists on the database. |
| #data_sources |
Returns the relation names useable to back Active Record models. |
| #drop_join_table |
Drops the join table specified by the given arguments. |
| #drop_table |
Drops a table from the database. |
| #foreign_keys |
Returns an array of foreign keys for the given table. |
| #index_exists? |
Checks to see if an index exists on a table for a given index definition. |
| #index_name_exists? |
Verifies the existence of an index with a given name. |
| #initialize_schema_migrations_table |
Should not be called normally, but this operation is non-destructive. |
| #native_database_types |
Returns a hash of mappings from the abstract data types to the native database types. |
| #remove_belongs_to |
|
| #remove_column |
Removes the column from the table definition. |
| #remove_columns |
Removes the given columns from the table definition. |
| #remove_foreign_key |
Removes the given foreign key from the table. |
| #remove_index |
Removes the given index from the table. |
| #remove_reference |
Removes the reference(s). |
| #remove_timestamps |
Removes the timestamp columns (created_at and updated_at) from the table definition. |
| #rename_column |
|
| #rename_index |
|
| #rename_table |
|
| #table_alias_for |
Truncates a table alias according to the limits of the current adapter. |
| #table_exists? |
Checks to see if the table table_name exists on the database. |