blob: 37e2d19e022a6b742a589f79dcb9533f6cc7be39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class AddFurtherScopeColumnsToInternalIdTable < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
change_column_null :internal_ids, :project_id, true
add_column :internal_ids, :namespace_id, :integer, null: true
end
def down
change_column_null :internal_ids, :project_id, false
remove_column :internal_ids, :namespace_id
end
end
|