summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-05-02 06:53:32 -0700
committerStan Hu <stanhu@gmail.com>2015-05-02 09:36:52 -0700
commiteb4f1eb5f55fe3630c9191db1b9da2dc92437391 (patch)
tree6aab55f8ab6f46e3126fff4f4e7ae36712cec0f7 /db
parentcfbff017d0ba1ba4fd896b4762b23853f123c60a (diff)
downloadgitlab-ce-eb4f1eb5f55fe3630c9191db1b9da2dc92437391.tar.gz
Add application setting to restrict user signups to e-mail domains
This feature was requested long ago: http://feedback.gitlab.com/forums/176466-general/suggestions/4118466-ability-to-register-only-from-ceratain-domains This MR is based off !253 but changed to use application settings and use wildcard strings to give more flexibility in pattern matching. Regexps seemed overkill and easy to get wrong. Only restrict e-mail addresses upon creation
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb b/db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb
new file mode 100644
index 00000000000..184e2653610
--- /dev/null
+++ b/db/migrate/20150502064022_add_restricted_signup_domains_to_application_settings.rb
@@ -0,0 +1,5 @@
+class AddRestrictedSignupDomainsToApplicationSettings < ActiveRecord::Migration
+ def change
+ add_column :application_settings, :restricted_signup_domains, :text
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 02882186fc8..f0cccb8b749 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: 20150429002313) do
+ActiveRecord::Schema.define(version: 20150502064022) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -31,6 +31,7 @@ ActiveRecord::Schema.define(version: 20150429002313) do
t.integer "max_attachment_size", default: 10, null: false
t.integer "default_project_visibility"
t.integer "default_snippet_visibility"
+ t.text "restricted_signup_domains"
end
create_table "broadcast_messages", force: true do |t|