blob: d47bd93fff77ff0e0f450fdea5e4ab3d7e2367ce (
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 CreateDependencyListExportsTable < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
create_table :dependency_list_exports do |t|
t.timestamps_with_timezone null: false
t.bigint :project_id, null: false
t.bigint :user_id
t.integer :file_store
t.integer :status, default: 0, null: false, limit: 2
t.text :file, limit: 255
t.index :user_id
t.index :project_id
end
end
def down
drop_table :dependency_list_exports
end
end
|