From 2c4159d11ae673d6ba5ca1a8baf3686316ef9809 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 2 Nov 2025 13:29:07 +0100 Subject: [PATCH] Style --- app/models/collection.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/collection.rb b/app/models/collection.rb index 504439e2e..756d987cf 100644 --- a/app/models/collection.rb +++ b/app/models/collection.rb @@ -17,8 +17,6 @@ class Collection < ApplicationRecord private def ensure_default_collection - if Collection.count.zero? - Collection.create!(name: "Cards") - end + Collection.create!(name: "Cards") if Collection.none? end end