Commit 40f57b9b authored by Tomasz Maczukin's avatar Tomasz Maczukin

Use change instead of up/down in simple migrations

parent 27266db0
...@@ -3,11 +3,7 @@ class AddMaximumJobTimeoutToCiRunners < ActiveRecord::Migration ...@@ -3,11 +3,7 @@ class AddMaximumJobTimeoutToCiRunners < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def up def change
add_column :ci_runners, :maximum_job_timeout, :integer add_column :ci_runners, :maximum_job_timeout, :integer
end end
def down
remove_column :ci_runners, :maximum_job_timeout
end
end end
...@@ -3,13 +3,8 @@ class AddUsedTimeoutAndTimeoutSourceColumnsToCiBuilds < ActiveRecord::Migration ...@@ -3,13 +3,8 @@ class AddUsedTimeoutAndTimeoutSourceColumnsToCiBuilds < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def up def change
add_column :ci_builds, :used_timeout, :integer add_column :ci_builds, :used_timeout, :integer
add_column :ci_builds, :timeout_source, :string add_column :ci_builds, :timeout_source, :string
end end
def down
remove_column :ci_builds, :used_timeout
remove_column :ci_builds, :timeout_source
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment