The migration generator for ActiveMailer doesn't include the ActiveRecord version number, which causes this error when the migration is executed
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Active Record release the migration was written for:
class CreateInviteTeamMemberEmails < ActiveRecord::Migration[7.0]
/path/to/rails_root/db/migrate/20220804162528_create_invite_team_member_emails.rb:1:in `<main>'
The generator should include the current ActiveRecord number for the project when creating the ActiveMailer migration.