# typed: true class Platform < ApplicationRecord extend T::Sig # Associations has_many :games, dependent: :restrict_with_error has_many :items, dependent: :restrict_with_error # Validations validates :name, presence: true, uniqueness: { case_sensitive: false } end