Skip to content
Snippets Groups Projects

Default `authorized_keys_enabled` setting to true

Merged Michael Kozono requested to merge fix-authorized-keys-enabled-default-2738 into master
Compare and
4 files
+ 47
3
Compare changes
  • Side-by-side
  • Inline
Files
4
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class AddDefaultToAuthorizedKeysEnabledApplicationSetting < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
change_column :application_settings, :authorized_keys_enabled, :boolean, default: true, null: false
end
def down
change_column :application_settings, :authorized_keys_enabled, :boolean, default: nil, null: true
end
end
Loading