class DefaultNotificationSetting < ActiveRecord::Migration[6.1] def up NotificationSetting.delete_all execute <<~SQL.squish INSERT INTO notification_settings (user_id, watched, involved, mentioned) SELECT id, true, true, true FROM users WHERE type = 'User' SQL end def down # No data to revert end end