d41d50d52b
and some other de-tenant changes, including removing the controller tenanting concerns
13 lines
539 B
Ruby
13 lines
539 B
Ruby
namespace :seed do
|
|
desc "Seed customer data for a specific account (e.g: rails seed:customer ARTENANT=1234)"
|
|
task :customer, [ :tenant_id ] => "db:tenant" do |t, args|
|
|
raise "TODO:PLANB: Need to re-implement this task for untenanted context"
|
|
# raise "Please provide a tenant ID: rails seed:customer ARTENANT=1234" unless ApplicationRecord.current_tenant
|
|
|
|
# account = Account.sole
|
|
# Account::Seeder.new(account, User.active.first).seed!
|
|
|
|
# puts "✓ Seeded account #{account.name} (tenant: #{account.id})"
|
|
end
|
|
end
|