2019-01-03 12:48:30 +05:30
|
|
|
class AddRepositoryAccessLevelToProjectFeature < ActiveRecord::Migration
|
2016-11-03 12:29:30 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column_with_default(:project_features, :repository_access_level, :integer, default: ProjectFeature::ENABLED)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :project_features, :repository_access_level
|
|
|
|
end
|
|
|
|
end
|