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