diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 17:08:06 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 17:08:06 +0200 |
commit | dd74237ddc8bef97e45757caf2e91f157e7dd7d2 (patch) | |
tree | c4dcadc2fa1a08fd692a4ec22e9614e925010fd1 /db/migrate/20170906133745_add_runners_token_to_groups.rb | |
parent | 794ac6c5421e04056dfd336559786fb166c9fa0a (diff) | |
download | gitlab-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.rb | 10 |
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 |