diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-08 17:22:13 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-08 17:22:13 +0300 |
commit | 1fefc2831eed7f88ecead78cc6fbc9836e94fa64 (patch) | |
tree | dd9331af1faa8754dbadb71760d388efff4a8fed /db/migrate/20160608211215_add_user_default_external_to_application_settings.rb | |
parent | 354471bd7c1a1d00e1105bbd938756fd26709ca2 (diff) | |
parent | 7dba769886e662d4a5701285421f6e75b917d1eb (diff) |
Merge remote-tracking branch 'origin/master' into 8-10-stable
Diffstat (limited to 'db/migrate/20160608211215_add_user_default_external_to_application_settings.rb')
-rw-r--r-- | db/migrate/20160608211215_add_user_default_external_to_application_settings.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20160608211215_add_user_default_external_to_application_settings.rb b/db/migrate/20160608211215_add_user_default_external_to_application_settings.rb new file mode 100644 index 00000000000..34c702e3fa6 --- /dev/null +++ b/db/migrate/20160608211215_add_user_default_external_to_application_settings.rb @@ -0,0 +1,13 @@ +class AddUserDefaultExternalToApplicationSettings < ActiveRecord::Migration + 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 |