diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-07-15 18:30:38 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-18 17:53:43 -0500 |
commit | c71e658ccac85f111517e04b79d915c10867c7e3 (patch) | |
tree | ffbea4cb96791b4f78ae0d9e4bb3b51f54cc8ecc /db/migrate | |
parent | a3f0f2cc4d9a4c689ae0eeae73e6d4ef19c39cce (diff) | |
download | gitlab-ce-c71e658ccac85f111517e04b79d915c10867c7e3.tar.gz |
Refactor and rename `restricted_signup_domains` to `domain_whitelist` to better conform to its behavior and newly introduced behavior.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160715230841_rename_application_settings_restricted_signup_domains.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/migrate/20160715230841_rename_application_settings_restricted_signup_domains.rb b/db/migrate/20160715230841_rename_application_settings_restricted_signup_domains.rb new file mode 100644 index 00000000000..dd15704800a --- /dev/null +++ b/db/migrate/20160715230841_rename_application_settings_restricted_signup_domains.rb @@ -0,0 +1,21 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class RenameApplicationSettingsRestrictedSignupDomains < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # When using the methods "add_concurrent_index" or "add_column_with_default" + # you must disable the use of transactions as these methods can not run in an + # existing transaction. When using "add_concurrent_index" make sure that this + # method is the _only_ method called in the migration, any other changes + # should go in a separate migration. This ensures that upon failure _only_ the + # index creation fails and can be retried or reverted easily. + # + # To disable transactions uncomment the following line and remove these + # comments: + # disable_ddl_transaction! + + def change + rename_column :application_settings, :restricted_signup_domains, :domain_whitelist + end +end |