このコミットが含まれているのは:
2025-12-30 10:09:13 +09:00
コミット 83fb6ee456
4個のファイルの変更84行の追加8行の削除
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ class WikiLine < ApplicationRecord
sha = Digest::SHA256.hexdigest(body)
now = Time.current
upsert({ sha256: sha, body:, created_at: now, updated_at: now }, unique_by: :sha256)
upsert({ sha256: sha, body:, created_at: now, updated_at: now })
find_by!(sha256: sha)
end