Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-09-17 15:06:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-09-17 15:06:48 +0300
commitbd860c22f6a4b9473cbddd34a53eead8235a7ea1 (patch)
tree3f955a56c2ac90497863da26902a42dba49f3466 /db/migrate/20190828172831_create_package_tag.rb
parente567b4c2df7dc4085d213db029eff6b6fcde0152 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20190828172831_create_package_tag.rb')
-rw-r--r--db/migrate/20190828172831_create_package_tag.rb14
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