class UpdateAppliedMessageStatus < ActiveRecord::Migration def up AppliedMessage.where(:applied_type => "ApplyAddSchools", :status => 0).update_all(:status => 1) end def down end end