mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
ADD some columns for project_educoders table
This commit is contained in:
@@ -55,6 +55,8 @@ class SyncEducoderShixunJob < ApplicationJob
|
||||
project_id: project.id,
|
||||
owner: re['username'],
|
||||
repo_name: re['repo_name'],
|
||||
forked_count: re['forked_count'],
|
||||
commit_count: re['commit_count'],
|
||||
image_url: re['image_url'])
|
||||
|
||||
repo = Repository.new(repo_params)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
class AddForkedCountAndCommitCountToProjectEducoders < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :project_educoders, :commit_count, :integer, default: 0
|
||||
add_column :project_educoders, :forked_count, :integer, default: 0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user