diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 18:08:06 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 18:08:06 +0300 |
commit | dd74237ddc8bef97e45757caf2e91f157e7dd7d2 (patch) | |
tree | c4dcadc2fa1a08fd692a4ec22e9614e925010fd1 /db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb | |
parent | 794ac6c5421e04056dfd336559786fb166c9fa0a (diff) |
Split migration to add and index namespaces.runners_token
Diffstat (limited to 'db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb')
-rw-r--r-- | db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb b/db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb new file mode 100644 index 00000000000..d6c4a5c432c --- /dev/null +++ b/db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb @@ -0,0 +1,14 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddIndexToNamespacesRunnersToken < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def change + add_concurrent_index :namespaces, :runners_token, unique: true + end +end |