2bf5fe5ede
The time tracking feature was backported from EE to CE, thus the CE migrations should be uniquely named and should skip the actual migration content if the table/columns already exist (that means that the EE migrations were already performed). Signed-off-by: Rémy Coutable <remy@rymai.me>
15 lines
383 B
Ruby
15 lines
383 B
Ruby
class AddEstimateToIssuablesCe < ActiveRecord::Migration
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
|
|
|
def change
|
|
unless column_exists?(:issues, :time_estimate)
|
|
add_column :issues, :time_estimate, :integer
|
|
end
|
|
|
|
unless column_exists?(:merge_requests, :time_estimate)
|
|
add_column :merge_requests, :time_estimate, :integer
|
|
end
|
|
end
|
|
end
|