class ModifyIsMdForMessages < ActiveRecord::Migration[5.2] def change Message.find_each do |m| m.update_column(:is_md, false) end end end