blob: 14a7421c1e495880aa9a3208b30d497ecd3d356d (
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
|
# frozen_string_literal: true
class AddBulkImportExportsTable < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
def up
create_table_with_constraints :bulk_import_exports do |t|
t.bigint :group_id
t.bigint :project_id
t.timestamps_with_timezone null: false
t.integer :status, limit: 2, null: false, default: 0
t.text :relation, null: false
t.text :jid, unique: true
t.text :error
t.text_limit :relation, 255
t.text_limit :jid, 255
t.text_limit :error, 255
end
end
def down
drop_table :bulk_import_exports
end
end
|