mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:同步时间和创建数据返回
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
class SyncRepository < ApplicationRecord
|
||||
|
||||
belongs_to :project
|
||||
has_many :sync_repository_branches, dependent: :destroy
|
||||
|
||||
validates :repo_name, uniqueness: { message: "已存在" }
|
||||
end
|
||||
|
||||
@@ -20,4 +20,6 @@
|
||||
class SyncRepositoryBranch < ApplicationRecord
|
||||
|
||||
belongs_to :sync_repository
|
||||
|
||||
enum sync_status: {success: 1, failure: 2}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user