Merge branch '15133-remove-jobs-api' refs #15133
[arvados.git] / services / api / db / migrate / 20140709172343_job_task_serial_qsequence.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class JobTaskSerialQsequence < ActiveRecord::Migration[4.2]
6   SEQ_NAME = "job_tasks_qsequence_seq"
7
8   def up
9     execute "CREATE SEQUENCE #{SEQ_NAME} OWNED BY job_tasks.qsequence;"
10   end
11
12   def down
13     execute "DROP SEQUENCE #{SEQ_NAME};"
14   end
15 end