Create default pop reasons when creating accounts

This commit is contained in:
Jorge Manrubia
2025-04-04 12:10:28 +02:00
parent 77d0cd5e7f
commit afcc65d6fb
4 changed files with 45 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env ruby
require_relative "../config/environment"
ApplicationRecord.with_each_tenant do |tenant|
Account.find_each do |account|
account.send(:create_default_pop_reasons)
end
end