20161012180455_add_repository_access_level_to_project_feature.rb 387 Bytes
Newer Older
1
class AddRepositoryAccessLevelToProjectFeature < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9 10 11 12 13 14
  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