rich seed data

This commit is contained in:
Pranav
2026-02-08 13:49:24 -08:00
parent 656ae41b24
commit 859ab6777c
5 changed files with 2166 additions and 469 deletions
+13
View File
@@ -2,6 +2,19 @@ class Internal::SeedAccountJob < ApplicationJob
queue_as :low
def perform(account)
# Reload account to ensure we have fresh data
account.reload
# Perform seeding
Seeders::AccountSeeder.new(account: account).perform!
# Reload again after seeding to ensure cache is fresh
account.reload
Rails.logger.info("Account seeding completed successfully for account_id: #{account.id}")
rescue StandardError => e
Rails.logger.error("Account seeding failed for account_id: #{account.id} - #{e.message}")
Rails.logger.error(e.backtrace.join("\n"))
raise
end
end