method
change_column_comment
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
change_column_comment(table_name, column_name, comment_or_changes)public
Changes the comment for a column or removes it if nil.
Passing a hash containing :from and :to will make this change reversible in migration:
change_column_comment(:posts, :state, from: "old_comment", to: "new_comment")