diff options
Diffstat (limited to 'db/migrate/20100129193813_update_mail_notification_values.rb')
-rw-r--r-- | db/migrate/20100129193813_update_mail_notification_values.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20100129193813_update_mail_notification_values.rb b/db/migrate/20100129193813_update_mail_notification_values.rb new file mode 100644 index 000000000..bfe0a5952 --- /dev/null +++ b/db/migrate/20100129193813_update_mail_notification_values.rb @@ -0,0 +1,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 |