diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-09 10:09:00 -0500 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-22 08:49:04 -0400 |
commit | 44f37504fb229ab78606a5fd11f75316ebc2667b (patch) | |
tree | 084a49e025463f67942c85c3f99edd4a827e1a89 /db/migrate | |
parent | e1f076ecb5c0e92e62ee628b6c18bc8869812b2e (diff) | |
download | gitlab-ce-44f37504fb229ab78606a5fd11f75316ebc2667b.tar.gz |
Backport ee-40781-os-to-ce
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb b/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb index deba890a478..e82109190a7 100644 --- a/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb +++ b/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb @@ -3,15 +3,8 @@ class AddArtifactsStoreToCiBuild < ActiveRecord::Migration DOWNTIME = false - disable_ddl_transaction! - - def up - add_column_with_default(:ci_builds, :artifacts_file_store, :integer, default: 1) - add_column_with_default(:ci_builds, :artifacts_metadata_store, :integer, default: 1) - end - - def down - remove_column(:ci_builds, :artifacts_file_store) - remove_column(:ci_builds, :artifacts_metadata_store) + def change + add_column(:ci_builds, :artifacts_file_store, :integer) + add_column(:ci_builds, :artifacts_metadata_store, :integer) end end |