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

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,11 @@
# frozen_string_literal: true
module ClashDeckGenerator2
module Relations
class Cards < DB::Relation
schema :cards, infer: true
def meta
def meta_cards_scope
where(is_meta: 1)
end
end