Fix some small things related to accounts

This commit is contained in:
Mike Dalessio
2025-10-03 16:55:00 -04:00
parent f1dae88003
commit 48783824ee
3 changed files with 3 additions and 4 deletions
+1
View File
@@ -4,6 +4,7 @@ bin/rails runner - <<EOF
puts "Login with david@37signals.com / secret123456 to:"
ApplicationRecord.with_each_tenant do |tenant|
next unless tenant =~ /\A\d+\z/
next unless Account.count > 0
puts " - #{Account.sole.name}: http://fizzy.localhost:3006#{Account.sole.slug}"
end
EOF
-3
View File
@@ -1,6 +1,3 @@
37s:
name: 37signals
join_code: "ejpP-THlQ-Cc2f"
<% if Account.reflect_on_association :external_account %>
tenant_id: <%= ActiveRecord::FixtureSet.identify :'37s_fizzy' %>
<% end %>
+2 -1
View File
@@ -1,7 +1,8 @@
ENV["RAILS_ENV"] ||= "test"
require_relative "../config/environment"
Rails.application.config.active_record_tenanted.default_tenant = ActiveRecord::FixtureSet.identify :'37s_fizzy'
# there's no fixture for this, we're just generating a stable integer
Rails.application.config.active_record_tenanted.default_tenant = ActiveRecord::FixtureSet.identify "37s_fizzy"
require "rails/test_help"
require "webmock/minitest"