feat: clean up old instances automatically

This commit is contained in:
insects 2025-03-12 14:08:04 +01:00
parent 5aa5fe0f5a
commit 070ffa8eeb
8 changed files with 85 additions and 42 deletions

View file

@ -1,6 +1,6 @@
class Instance < ApplicationRecord
has_many :pops
has_many :fairies
has_many :pops, dependent: :destroy
has_many :fairies, dependent: :destroy
validates :zone, inclusion: { in: %w[anemos pagos pyros hydatos] }
end