summaryrefslogtreecommitdiff
path: root/db/migrate/20170906133745_add_runners_token_to_groups.rb
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-03 17:08:06 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-03 17:08:06 +0200
commitdd74237ddc8bef97e45757caf2e91f157e7dd7d2 (patch)
treec4dcadc2fa1a08fd692a4ec22e9614e925010fd1 /db/migrate/20170906133745_add_runners_token_to_groups.rb
parent794ac6c5421e04056dfd336559786fb166c9fa0a (diff)
downloadgitlab-ce-dd74237ddc8bef97e45757caf2e91f157e7dd7d2.tar.gz
Split migration to add and index namespaces.runners_token
Diffstat (limited to 'db/migrate/20170906133745_add_runners_token_to_groups.rb')
-rw-r--r--db/migrate/20170906133745_add_runners_token_to_groups.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/db/migrate/20170906133745_add_runners_token_to_groups.rb b/db/migrate/20170906133745_add_runners_token_to_groups.rb
index 54d0fddd5e3..852f4cba670 100644
--- a/db/migrate/20170906133745_add_runners_token_to_groups.rb
+++ b/db/migrate/20170906133745_add_runners_token_to_groups.rb
@@ -3,15 +3,7 @@ class AddRunnersTokenToGroups < ActiveRecord::Migration
DOWNTIME = false
- disable_ddl_transaction!
-
- def up
+ def change
add_column :namespaces, :runners_token, :string
-
- add_concurrent_index :namespaces, :runners_token, unique: true
- end
-
- def down
- remove_column :namespaces, :runners_token
end
end