socialforge/db/migrate/20161223030701_update_user_...

10 lines
212 B
Ruby

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