Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 590 Bytes

score.markdown

File metadata and controls

27 lines (19 loc) · 590 Bytes
# 1
bundle exec rake db:seed

#2
#bundle exec rails c 下跑
# all ready moved to seed
#Repository.get_bay6_repos

#bundle exec rails console 跑关联  
#already moved to seed
#Project.all.each{|p| Repository.find_by_name(p.name).update_column('project_id', p.id)}

#bundle exec rails console 跑分 
#already moved to fetch_scores
#User.update_all_scores

#3
#(optional 用来从30天算分得)bundle exec 下跑
Participation.all.each{|p|p.update_column('created_at', 30.days.ago)} 

#4从github bay6取commits并且更新用户积分
bundle exec rake github:fetch_scores