2019-02-15 15:39:39 +05:30
|
|
|
class AddPagesAccessLevelToProjectFeature < ActiveRecord::Migration[4.2]
|
2018-12-05 23:21:45 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column_with_default(:project_features, :pages_access_level, :integer, default: ProjectFeature::PUBLIC, allow_null: false)
|
|
|
|
|
|
|
|
change_column_default(:project_features, :pages_access_level, ProjectFeature::ENABLED)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :project_features, :pages_access_level
|
|
|
|
end
|
|
|
|
end
|