mail notifiacation 数据迁移

This commit is contained in:
huang 2016-12-23 13:45:27 +08:00
parent 244303f0e4
commit 5add0af4b8
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
class UpdateUserMailNotification < ActiveRecord::Migration
def up
sql = "update `users` set mail_notification ='all' where mail_notification in ('day','week');"
execute(sql)
end
def down
end
end