forgeplus/app/models/project_trend.rb

6 lines
139 B
Ruby

class ProjectTrend < ApplicationRecord
belongs_to :project
belongs_to :trend, polymorphic: true, optional: true
belongs_to :user
end