Flowdock
method

change_column_comment

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