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