method
rename_column
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::SchemaStatements
rename_column(table_name, column_name, new_column_name)
public
Renames a column.
rename_column(:suppliers, :description, :name)