diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-08 13:01:25 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-13 14:30:26 +0300 |
commit | 505dc808b3c0dc98413506446d368b91b56ff682 (patch) | |
tree | 1f6d5c7fe805bf5ff11a4f5696d73e11d71ca3a6 /db/migrate/20160808085602_add_index_for_build_token.rb | |
parent | 45afdbef0de58f6de207b057e47151611d2ad7e6 (diff) |
Use a permissions of user to access all dependent projects from CI jobs (this also includes a container images, and in future LFS files)
Diffstat (limited to 'db/migrate/20160808085602_add_index_for_build_token.rb')
-rw-r--r-- | db/migrate/20160808085602_add_index_for_build_token.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20160808085602_add_index_for_build_token.rb b/db/migrate/20160808085602_add_index_for_build_token.rb new file mode 100644 index 00000000000..10ef42afce1 --- /dev/null +++ b/db/migrate/20160808085602_add_index_for_build_token.rb @@ -0,0 +1,12 @@ +class AddIndexForBuildToken < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + disable_ddl_transaction! + + def change + add_concurrent_index :ci_builds, :token, unique: true + end +end |