Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20161012180455_add_repository_access_level_to_project_feature.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b33da3ea111e7938fd23f0a692ff23e91570e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class AddRepositoryAccessLevelToProjectFeature < ActiveRecord::Migration
  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