class User < ApplicationRecord include CableReady::Updatable enable_updates has_many :posts, enable_updates: true belongs_to :team, optional: true, touch: true end