Commit 63b8a79e authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Remove subtransactions from OnboardingProgress

This is only called when a root group is created so we don't need to use
safe_find_or_create_by
parent 86022ed9
...@@ -45,7 +45,7 @@ class OnboardingProgress < ApplicationRecord ...@@ -45,7 +45,7 @@ class OnboardingProgress < ApplicationRecord
def onboard(namespace) def onboard(namespace)
return unless root_namespace?(namespace) return unless root_namespace?(namespace)
safe_find_or_create_by(namespace: namespace) create(namespace: namespace)
end end
def onboarding?(namespace) def onboarding?(namespace)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment