feat: clean up old instances automatically
This commit is contained in:
parent
5aa5fe0f5a
commit
070ffa8eeb
8 changed files with 85 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue