rename_table(table_name, new_name) Instance Public methods Renames a table. Also renames a table's primary key sequence if the sequence name matches the Active Record default. Example: rename_table('octopuses', 'octopi')
rename_index(table_name, old_name, new_name) Instance Public methods
rename_column(table_name, column_name, new_column_name) Instance Public methods Renames a column in a table.
primary_key(table) Instance Public methods Returns just a table's primary key
indexes(table_name, name = nil) Instance Public methods Returns an array of indexes for the given table.
index_name_length() Instance Public methods
index_name_exists?(table_name, index_name, default) Instance Public methods
encoding() Instance Public methods Returns the current database encoding format.
drop_schema(schema_name) Instance Public methods Drops the schema for the given schema name.
current_schema() Instance Public methods Returns the current schema name.
Page 232 of 2275