Fix Runner access for programming groups

* We also rename the corresponding columns in the Runner model, so that for polymorphic association gets clear.
This commit is contained in:
Sebastian Serth
2023-08-20 20:32:41 +02:00
committed by Sebastian Serth
parent 977fa4539e
commit a1941336d9
8 changed files with 36 additions and 25 deletions

View File

@ -0,0 +1,10 @@
# frozen_string_literal: true
class RenameUserToContributorInRunners < ActiveRecord::Migration[7.0]
def change
change_table :runners do |t|
t.rename :user_id, :contributor_id
t.rename :user_type, :contributor_type
end
end
end