diff options
author | Andre Guedes <andrebsguedes@gmail.com> | 2016-12-13 23:42:43 -0200 |
---|---|---|
committer | Andre Guedes <andrebsguedes@gmail.com> | 2017-02-22 11:29:07 -0300 |
commit | 246df2bd1151d39a04ef553064144eb75ee3e980 (patch) | |
tree | 203bf32cea4f57b5eeb720c3c1aceba9e71965e8 /db | |
parent | eed0b85ad084ad4d13cc26907102063d9372fe75 (diff) | |
download | gitlab-ce-246df2bd1151d39a04ef553064144eb75ee3e980.tar.gz |
Adding registry endpoint authorization
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20161213212947_add_container_registry_access_token_to_application_settings.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/db/migrate/20161213212947_add_container_registry_access_token_to_application_settings.rb b/db/migrate/20161213212947_add_container_registry_access_token_to_application_settings.rb new file mode 100644 index 00000000000..f89f9b00a5f --- /dev/null +++ b/db/migrate/20161213212947_add_container_registry_access_token_to_application_settings.rb @@ -0,0 +1,29 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddContainerRegistryAccessTokenToApplicationSettings < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + # When a migration requires downtime you **must** uncomment the following + # constant and define a short and easy to understand explanation as to why the + # migration requires downtime. + # DOWNTIME_REASON = '' + + # 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 + add_column :application_settings, :container_registry_access_token, :string + end +end |