diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-02-26 16:45:12 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-03-28 13:56:56 +0200 |
commit | 40f57b9b62f768f5aa66ef6d3e8d0922ffe7ec0f (patch) | |
tree | 07193e7ade2f2a9b2dbdb6c2ec3e7b7e47f8a880 /db | |
parent | 27266db06b90ac97f75a902a7255185838d2104d (diff) | |
download | gitlab-ce-40f57b9b62f768f5aa66ef6d3e8d0922ffe7ec0f.tar.gz |
Use change instead of up/down in simple migrations
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180219153455_add_maximum_job_timeout_to_ci_runners.rb | 6 | ||||
-rw-r--r-- | db/migrate/20180221022556_add_used_timeout_and_timeout_source_columns_to_ci_builds.rb | 7 |
2 files changed, 2 insertions, 11 deletions
diff --git a/db/migrate/20180219153455_add_maximum_job_timeout_to_ci_runners.rb b/db/migrate/20180219153455_add_maximum_job_timeout_to_ci_runners.rb index 5656970ede9..1ad7bb86e72 100644 --- a/db/migrate/20180219153455_add_maximum_job_timeout_to_ci_runners.rb +++ b/db/migrate/20180219153455_add_maximum_job_timeout_to_ci_runners.rb @@ -3,11 +3,7 @@ class AddMaximumJobTimeoutToCiRunners < ActiveRecord::Migration DOWNTIME = false - def up + def change add_column :ci_runners, :maximum_job_timeout, :integer end - - def down - remove_column :ci_runners, :maximum_job_timeout - end end diff --git a/db/migrate/20180221022556_add_used_timeout_and_timeout_source_columns_to_ci_builds.rb b/db/migrate/20180221022556_add_used_timeout_and_timeout_source_columns_to_ci_builds.rb index cb8651b1cfd..435fba712aa 100644 --- a/db/migrate/20180221022556_add_used_timeout_and_timeout_source_columns_to_ci_builds.rb +++ b/db/migrate/20180221022556_add_used_timeout_and_timeout_source_columns_to_ci_builds.rb @@ -3,13 +3,8 @@ class AddUsedTimeoutAndTimeoutSourceColumnsToCiBuilds < ActiveRecord::Migration DOWNTIME = false - def up + def change add_column :ci_builds, :used_timeout, :integer add_column :ci_builds, :timeout_source, :string end - - def down - remove_column :ci_builds, :used_timeout - remove_column :ci_builds, :timeout_source - end end |