diff options
Diffstat (limited to 'db/migrate/20190828172831_create_package_tag.rb')
-rw-r--r-- | db/migrate/20190828172831_create_package_tag.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20190828172831_create_package_tag.rb b/db/migrate/20190828172831_create_package_tag.rb new file mode 100644 index 00000000000..baf0a5cf11b --- /dev/null +++ b/db/migrate/20190828172831_create_package_tag.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true . + +class CreatePackageTag < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + create_table :packages_package_tags do |t| + t.references :package, index: true, null: false, foreign_key: { to_table: :packages_packages, on_delete: :cascade }, type: :integer + t.string :name, limit: 255, null: false + end + end +end |