debian-mirror-gitlab/db/migrate/20210902171406_add_latest_column_into_the_security_scans_table.rb

14 lines
295 B
Ruby
Raw Normal View History

2021-11-11 11:23:49 +05:30
# frozen_string_literal: true
class AddLatestColumnIntoTheSecurityScansTable < Gitlab::Database::Migration[1.0]
enable_lock_retries!
def up
add_column :security_scans, :latest, :boolean, default: true, null: false
end
def down
remove_column :security_scans, :latest
end
end