20150423033240_add_default_project_visibililty_to_application_settings.rb 438 Bytes
Newer Older
1
class AddDefaultProjectVisibililtyToApplicationSettings < ActiveRecord::Migration[4.2]
2
  def up
Vinnie Okada's avatar
Vinnie Okada committed
3 4 5 6
    add_column :application_settings, :default_project_visibility, :integer
    visibility = Settings.gitlab.default_projects_features['visibility_level']
    execute("update application_settings set default_project_visibility = #{visibility}")
  end
7 8 9 10

  def down
    remove_column :application_settings, :default_project_visibility
  end
Vinnie Okada's avatar
Vinnie Okada committed
11
end