diff --git a/lib/tasks/one_off.rake b/lib/tasks/one_off.rake new file mode 100644 index 00000000..f6ae25de --- /dev/null +++ b/lib/tasks/one_off.rake @@ -0,0 +1,14 @@ +namespace :one_off do + desc "Create a notification for all users telling them about the new notifications" + task notifications_announcement: :environment do + User.all.find_each do |user| + user.notifications.create( + message_html: '