blob: 2de1749721d5c1f44ba636820d2796d149b6b848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
class DropCiTestCasesTable < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
drop_table :ci_test_cases
end
def down
create_table_with_constraints :ci_test_cases do |t|
t.bigint :project_id, null: false
t.text :key_hash, null: false
t.text_limit :key_hash, 64
t.index [:project_id, :key_hash], unique: true
end
end
end
|