socialforge/db/migrate/20170120120614_update_appli...

9 lines
196 B
Ruby

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