新增:同步时间和创建数据返回

This commit is contained in:
2024-04-16 17:53:35 +08:00
parent e358e3b6f6
commit 7271603248
6 changed files with 15 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
class SyncRepository < ApplicationRecord
belongs_to :project
has_many :sync_repository_branches, dependent: :destroy
validates :repo_name, uniqueness: { message: "已存在" }
end

View File

@@ -20,4 +20,6 @@
class SyncRepositoryBranch < ApplicationRecord
belongs_to :sync_repository
enum sync_status: {success: 1, failure: 2}
end