seeds: drop the 'bare' option

This commit is contained in:
Mike Dalessio
2025-10-06 23:44:42 -04:00
parent c1372e34c9
commit 0425a83577
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -10,12 +10,8 @@ def seed_account(name)
puts " #{elapsed.round(2)} sec"
end
def create_tenant(signal_account_name, bare: false)
if bare
tenant_id = Digest::SHA256.hexdigest(signal_account_name)[0..8].to_i(16)
else
tenant_id = ActiveRecord::FixtureSet.identify signal_account_name
end
def create_tenant(signal_account_name)
tenant_id = ActiveRecord::FixtureSet.identify signal_account_name
ApplicationRecord.destroy_tenant tenant_id
ApplicationRecord.create_tenant(tenant_id) do
+1 -1
View File
@@ -1 +1 @@
create_tenant "cleanslate", bare: true
create_tenant "cleanslate"