20160608211215_add_user_default_external_to_application_settings.rb 404 Bytes
Newer Older
1
class AddUserDefaultExternalToApplicationSettings < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9 10 11 12 13
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  def up
    add_column_with_default(:application_settings, :user_default_external, :boolean,
                            default: false, allow_null: false)
  end

  def down
    remove_column(:application_settings, :user_default_external)
  end
end