mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-08 22:14:04 +08:00
init project
This commit is contained in:
9
app/models/applied_project.rb
Normal file
9
app/models/applied_project.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class AppliedProject < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :project
|
||||
|
||||
has_many :applied_messages, as: :applied, dependent: :destroy
|
||||
has_many :forge_activities, as: :forge_act, dependent: :destroy
|
||||
|
||||
scope :pending, -> { where(status: 0) }
|
||||
end
|
||||
Reference in New Issue
Block a user