1 2 3 4 5 6 7 8
# frozen_string_literal: true module Projects class ProjectTopic < ApplicationRecord belongs_to :project belongs_to :topic, counter_cache: :total_projects_count end end