mail notifiacation 数据迁移
This commit is contained in:
parent
244303f0e4
commit
5add0af4b8
|
@ -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
|
Loading…
Reference in New Issue