method

rename

rails latest stable - Class: ActiveRecord::ConnectionAdapters::Table

Method not available on this version

This method is only available on newer versions. The first available version (v2.1.0) is shown here.

rename(column_name, new_column_name)
public

Renames a column.

Example
 t.rename(:description, :name)