Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-24 12:19:58 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-05-04 14:52:55 +0300
commit4019c8c256eae72665a2e4b1ffc68891f41f448c (patch)
treea4d08c9930456a3b303440965b6f50d47fc07bde /db/migrate/20180424090541_add_enforce_terms_to_application_settings.rb
parent96373b0bcf0798a91e64f57620d55e6973b7bd4c (diff)
Add `enforce_terms` to `application_settings`
Add a flag to applications settings to enforce users to accept terms before using the GitLab instance
Diffstat (limited to 'db/migrate/20180424090541_add_enforce_terms_to_application_settings.rb')
-rw-r--r--db/migrate/20180424090541_add_enforce_terms_to_application_settings.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20180424090541_add_enforce_terms_to_application_settings.rb b/db/migrate/20180424090541_add_enforce_terms_to_application_settings.rb
new file mode 100644
index 00000000000..306cd737771
--- /dev/null
+++ b/db/migrate/20180424090541_add_enforce_terms_to_application_settings.rb
@@ -0,0 +1,9 @@
+class AddEnforceTermsToApplicationSettings < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ add_column :application_settings, :enforce_terms, :boolean, default: false
+ end
+end