summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAndre Guedes <andrebsguedes@gmail.com>2016-12-13 23:42:43 -0200
committerAndre Guedes <andrebsguedes@gmail.com>2017-02-22 11:29:07 -0300
commit246df2bd1151d39a04ef553064144eb75ee3e980 (patch)
tree203bf32cea4f57b5eeb720c3c1aceba9e71965e8 /db
parenteed0b85ad084ad4d13cc26907102063d9372fe75 (diff)
downloadgitlab-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.rb29
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