Touch colections when creating columns

This commit is contained in:
Jorge Manrubia
2025-10-01 16:15:14 +02:00
parent 180c10bc92
commit eec9bf2cbe
+1 -1
View File
@@ -1,5 +1,5 @@
class Column < ApplicationRecord
belongs_to :collection
belongs_to :collection, touch: true
has_many :cards, dependent: :nullify
validates :name, presence: true