blob: 432b839d6eacb516728247f2727958cad1ba62e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# frozen_string_literal: true
class AddEpicBoards < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
with_lock_retries do
create_table :boards_epic_boards do |t|
t.boolean :hide_backlog_list, default: false, null: false
t.boolean :hide_closed_list, default: false, null: false
t.references :group, index: true, foreign_key: { to_table: :namespaces, on_delete: :cascade }, null: false
t.timestamps_with_timezone
t.text :name, default: 'Development', null: false
end
end
add_text_limit :boards_epic_boards, :name, 255
end
def down
with_lock_retries do
drop_table :boards_epic_boards
end
end
end
|