forked from Gitlink/forgeplus
Merge branch 'dev_trustie' of http://gitea.trustie.net/jasder/forgeplus into dev_trustie
This commit is contained in:
commit
788a6b3d86
|
@ -4,7 +4,7 @@ class Mirror < ApplicationRecord
|
|||
# 0: 同步镜像成功;1: 正在同步镜像;2: 同步失败,默认值为0
|
||||
enum status: { succeeded: 0, waiting: 1, failed: 2 }
|
||||
|
||||
belongs_to :repository
|
||||
belongs_to :repository, foreign_key: :repo_id
|
||||
|
||||
|
||||
def set_status!(status=Mirror.statuses[:succeeded])
|
||||
|
|
Loading…
Reference in New Issue