blob: bfe0a5952768604f8648381891d827ff21a9a1c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# Patch the data from a boolean change.
class UpdateMailNotificationValues < ActiveRecord::Migration
def self.up
User.update_all("mail_notification = 'all'", "mail_notification = '1'")
User.update_all("mail_notification = 'only_my_events'", "mail_notification = '0'")
end
def self.down
# No-op
end
end
|