method

change_table_comment

Importance_1
v6.0.0 - Show latest stable - 0 notes - 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")
Show source
Register or log in to add new notes.