debian-mirror-gitlab/db/migrate/20200318183553_create_pypi_package_metadata.rb

15 lines
508 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
class CreatePypiPackageMetadata < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
create_table :packages_pypi_metadata, id: false do |t|
t.references :package, primary_key: true, index: false, default: nil, foreign_key: { to_table: :packages_packages, on_delete: :cascade }, type: :bigint
2020-05-24 23:13:21 +05:30
t.string "required_python", null: false, limit: 50 # rubocop:disable Migration/PreventStrings
2020-04-22 19:07:51 +05:30
end
end
end