hensei-api/db/migrate/20221203112452_add_base_job_to_jobs.rb

7 lines
193 B
Ruby

class AddBaseJobToJobs < ActiveRecord::Migration[6.1]
def change
change_table(:jobs) do |t|
t.references :base_job, type: :uuid, foreign_key: { to_table: 'jobs' }
end
end
end