rails new try_split_bulk_mail
cd try_split_bulk_mail
bin/rails g model User email sent:boolean
bin/rails db:migrate
bin/rails g mailer User agree
bin/rails g job SendBulkAgreement
bundle add sidekiq
config/environments/development.rb
config.active_job.queue_adapter = :sidekiq
bundle add faker --group=development
bin/rails db:seed
bin/rails server
open http://localhost:3000/rails/mailers/user_mailer/agree
less -R +F log/development.log
brew install redis
gem install foreman
touch Procfile.dev
touch ./bin/dev
chmod +x ./bin/dev
bin/dev
bin/rails console
User.where(sent: false).count
SendBulkAgreementJob.perform_later
require 'sidekiq/api'
Sidekiq::Queue.new.size
Sidekiq::Queue.new.clear
Sidekiq::Workers.new.size
User.update_all(sent: false)