diff --git a/ruby/db/migrate/20240121174150_add_accept_desktop_notifications_to_users.rb b/ruby/db/migrate/20240121174150_add_accept_desktop_notifications_to_users.rb index c83cd5896..4d0573009 100644 --- a/ruby/db/migrate/20240121174150_add_accept_desktop_notifications_to_users.rb +++ b/ruby/db/migrate/20240121174150_add_accept_desktop_notifications_to_users.rb @@ -1,6 +1,6 @@ class AddAcceptDesktopNotificationsToUsers < ActiveRecord::Migration def self.up - execute("ALTER TABLE public.users ADD COLUMN accept_desktop_notifications BOOLEAN; UPDATE public.users SET accept_desktop_notifications = FALSE;") + execute("ALTER TABLE public.users ADD COLUMN accept_desktop_notifications BOOLEAN; UPDATE public.users SET accept_desktop_notifications = FALSE; ALTER TABLE public.users ALTER COLUMN accept_desktop_notifications SET DEFAULT FALSE;") end def self.down execute("ALTER TABLE public.users DROP COLUMN accept_desktop_notifications;")