You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
335 B
10 lines
335 B
class GccCourseCompetitionRankData < ActiveRecord::Migration[5.2]
|
|
def change
|
|
competition = Competition.find_by(identifier: 'gcc-course-2019')
|
|
stage = competition.competition_stages.first
|
|
return if competition.blank? || stage.blank?
|
|
|
|
competition.competition_scores.update_all(competition_stage_id: stage.id)
|
|
end
|
|
end
|