diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-29 13:29:16 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-29 13:29:16 +0200 |
commit | 96d6fdc27cc3721ec76b6542a32ae236d5e78956 (patch) | |
tree | 16f4e0d428caacb21eeae74cead4edb05f5080db /db | |
parent | 70b29c3576f646371c3a5bee312b921a3053fb70 (diff) | |
download | gitlab-ce-96d6fdc27cc3721ec76b6542a32ae236d5e78956.tar.gz |
Add option to disallow users from registering any application to use GitLab as an OAuth provideruser-oauth-applications
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150529111607_add_user_oauth_applications_to_application_settings.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20150529111607_add_user_oauth_applications_to_application_settings.rb b/db/migrate/20150529111607_add_user_oauth_applications_to_application_settings.rb new file mode 100644 index 00000000000..6a78294f0b2 --- /dev/null +++ b/db/migrate/20150529111607_add_user_oauth_applications_to_application_settings.rb @@ -0,0 +1,5 @@ +class AddUserOauthApplicationsToApplicationSettings < ActiveRecord::Migration + def change + add_column :application_settings, :user_oauth_applications, :bool, default: true + end +end diff --git a/db/schema.rb b/db/schema.rb index 1ab91256406..dfd93d056e9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150516060434) do +ActiveRecord::Schema.define(version: 20150529111607) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -33,6 +33,7 @@ ActiveRecord::Schema.define(version: 20150516060434) do t.integer "default_project_visibility" t.integer "default_snippet_visibility" t.text "restricted_signup_domains" + t.boolean "user_oauth_applications", default: true end create_table "broadcast_messages", force: true do |t| |