ADD some columns for project_educoders table
This commit is contained in:
parent
2eca095608
commit
f5eecdffdc
|
@ -55,6 +55,8 @@ class SyncEducoderShixunJob < ApplicationJob
|
||||||
project_id: project.id,
|
project_id: project.id,
|
||||||
owner: re['username'],
|
owner: re['username'],
|
||||||
repo_name: re['repo_name'],
|
repo_name: re['repo_name'],
|
||||||
|
forked_count: re['forked_count'],
|
||||||
|
commit_count: re['commit_count'],
|
||||||
image_url: re['image_url'])
|
image_url: re['image_url'])
|
||||||
|
|
||||||
repo = Repository.new(repo_params)
|
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
|
Loading…
Reference in New Issue