2017-12-22 19:07:49 +00:00
|
|
|
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
|
|
|
|
# for more information on how to write migrations for GitLab.
|
|
|
|
|
2018-11-13 07:27:31 +00:00
|
|
|
class AddJobsCacheIndexToProject < ActiveRecord::Migration[4.2]
|
2017-12-22 19:07:49 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2017-12-22 19:22:29 +00:00
|
|
|
def change
|
2018-01-04 18:40:07 +00:00
|
|
|
add_column :projects, :jobs_cache_index, :integer
|
2017-12-22 19:07:49 +00:00
|
|
|
end
|
|
|
|
end
|