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
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
......@@ -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
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