instance method
invert_change_table_comment
Ruby on Rails 6.1.7.10
Since v6.0.6 PrivateSignature
invert_change_table_comment(args)
No documentation comment.
Parameters
-
argsreq
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 262
def invert_change_table_comment(args)
table, options = args
unless options.is_a?(Hash) && options.has_key?(:from) && options.has_key?(:to)
raise ActiveRecord::IrreversibleMigration, "change_table_comment is only reversible if given a :from and :to option."
end
[:change_table_comment, [table, from: options[:to], to: options[:from]]]
end
Defined in activerecord/lib/active_record/migration/command_recorder.rb line 262
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CommandRecorder