2020-02-26 19:09:19 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
class AddConfidentialToNote < ActiveRecord::Migration[6.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-03-12 08:09:17 -04:00
|
|
|
def up
|
2020-02-26 19:09:19 -05:00
|
|
|
with_lock_retries do
|
|
|
|
add_column :notes, :confidential, :boolean
|
|
|
|
end
|
|
|
|
end
|
2020-03-12 08:09:17 -04:00
|
|
|
|
|
|
|
def down
|
|
|
|
with_lock_retries do
|
|
|
|
remove_column :notes, :confidential
|
|
|
|
end
|
|
|
|
end
|
2020-02-26 19:09:19 -05:00
|
|
|
end
|