blob: 127f93f41eadb46232cfe9286de939cabaf3ee60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
class AddWorkItemColor < Gitlab::Database::Migration[2.2]
enable_lock_retries!
milestone '16.8'
def up
create_table :work_item_colors, id: false do |t|
t.timestamps_with_timezone null: false
t.references :issue, primary_key: true, index: false, default: nil,
foreign_key: { on_delete: :cascade, to_table: :issues }
t.bigint :namespace_id, null: false
t.text :color, null: false, limit: 7
end
end
def down
drop_table :work_item_colors
end
end
|