socialforge/db/migrate/20170120120614_update_appli...

9 lines
196 B
Ruby
Raw Normal View History

2017-01-20 20:10:27 +08:00
class UpdateAppliedMessageStatus < ActiveRecord::Migration
def up
AppliedMessage.where(:applied_type => "ApplyAddSchools", :status => 0).update_all(:status => 1)
end
def down
end
end