2017-05-26 18:57:36 +00:00
|
|
|
class AddStageIdToCiBuilds < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2017-06-06 12:10:50 +00:00
|
|
|
def up
|
2017-05-26 18:57:36 +00:00
|
|
|
add_column :ci_builds, :stage_id, :integer
|
2017-06-06 12:10:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :ci_builds, :stage_id, :integer
|
2017-05-26 18:57:36 +00:00
|
|
|
end
|
|
|
|
end
|