forgeplus/app/models/project_trend.rb

6 lines
139 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class ProjectTrend < ApplicationRecord
belongs_to :project
belongs_to :trend, polymorphic: true, optional: true
belongs_to :user
end