obdev/db/migrate/20240117025000_add_worker_t...

6 lines
157 B
Ruby

class AddWorkerToParticipants < ActiveRecord::Migration[7.1]
def change
add_reference :participants, :worker, null: false, foreign_key: true
end
end