2020-03-27 17:07:53 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddVerificationColumnsToPackages < ActiveRecord::Migration[6.0]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:disable Migration/PreventStrings
|
2020-03-27 17:07:53 -04:00
|
|
|
def change
|
|
|
|
add_column :packages_package_files, :verification_retry_at, :datetime_with_timezone
|
|
|
|
add_column :packages_package_files, :verified_at, :datetime_with_timezone
|
|
|
|
add_column :packages_package_files, :verification_checksum, :string, limit: 255
|
|
|
|
add_column :packages_package_files, :verification_failure, :string, limit: 255
|
|
|
|
add_column :packages_package_files, :verification_retry_count, :integer
|
|
|
|
end
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:enable Migration/PreventStrings
|
2020-03-27 17:07:53 -04:00
|
|
|
end
|