diff options
author | Nick Thomas <nick@gitlab.com> | 2018-08-15 09:29:20 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-08-15 09:29:20 +0000 |
commit | 9b718a761f1601394c3a1e0a15c7855d7eec6ac3 (patch) | |
tree | 79e1e49fcc38c61b494e1ba431e83e021e91b8fd /db/migrate | |
parent | c87ca8322636db69b6f097336f163d0373bb415e (diff) | |
parent | b6ba8cc696a45e58bde24a592a9c315a0eb16744 (diff) | |
download | gitlab-ce-9b718a761f1601394c3a1e0a15c7855d7eec6ac3.tar.gz |
Merge branch 'add-user_show_add_ssh_key_message-application-setting' into 'master'
Add a "user_show_add_ssh_key_message" application setting for use with SSH certificates
Closes #49953
See merge request gitlab-org/gitlab-ce!21027
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180808162000_add_user_show_add_ssh_key_message_to_application_settings.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20180808162000_add_user_show_add_ssh_key_message_to_application_settings.rb b/db/migrate/20180808162000_add_user_show_add_ssh_key_message_to_application_settings.rb new file mode 100644 index 00000000000..e3019af2cc9 --- /dev/null +++ b/db/migrate/20180808162000_add_user_show_add_ssh_key_message_to_application_settings.rb @@ -0,0 +1,19 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddUserShowAddSshKeyMessageToApplicationSettings < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default :application_settings, :user_show_add_ssh_key_message, :boolean, default: true, allow_null: false + end + + def down + remove_column :application_settings, :user_show_add_ssh_key_message + end +end |