迁移待审批高校消息的数据

This commit is contained in:
daiao 2017-01-20 20:10:27 +08:00
parent 43cbb18aaf
commit b0d78003a6
1 changed files with 8 additions and 0 deletions

View File

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