debian-mirror-gitlab/db/migrate/20190828170945_create_package_metadatum.rb
2019-12-04 20:38:33 +05:30

14 lines
427 B
Ruby

# frozen_string_literal: true
class CreatePackageMetadatum < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
create_table :packages_package_metadata do |t|
t.references :package, index: { unique: true }, null: false, foreign_key: { to_table: :packages_packages, on_delete: :cascade }, type: :integer
t.binary :metadata, null: false
end
end
end