Добавил генерацию колоды и улучшил бд

This commit is contained in:
2026-03-21 00:15:28 +05:00
parent b99c3f19bc
commit 0aeffffa56
5 changed files with 153 additions and 17 deletions

View File

@@ -1,9 +1,20 @@
# frozen_string_literal: true
module ClashDeckGenerator2
module Repos
class CardsRepo < DB::Repo[:cards]
commands :create
def meta_cards
cards.meta.to_a
cards.meta_cards_scope.to_a
end
def all_cards
cards.to_a
end
def all
cards.to_a
end
end
end
end
end