add: transfer project

This commit is contained in:
2021-04-25 18:41:13 +08:00
parent 8c71a72fce
commit 1e081b5a3e
28 changed files with 416 additions and 4 deletions
+5
View File
@@ -19,5 +19,10 @@
class AppliedMessage < ApplicationRecord
belongs_to :user
belongs_to :applied, polymorphic: true
belongs_to :project
belongs_to :applied_user, class_name: 'User'
enum viewed: {waiting: 0, viewed: 1}
enum status: {canceled: -1, common: 0, successed: 1, failure: 2} # -1 已取消 0 正在操作 1 操作成功 2 操作失败
end