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
path: root/db
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-16 15:34:08 +0300
committerAndreas Brandl <abrandl@gitlab.com>2018-03-16 15:35:27 +0300
commitfb6d6fce5a4d0fd833dc1cd231dd284a6c89471a (patch)
treecd60653ee507ae673a6da8a12ebd731bf449f525 /db
parentbc3fc8ec3eec74876a0e2125248c27cde153e32b (diff)
Address review comments.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180305095250_create_internal_ids_table.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/db/migrate/20180305095250_create_internal_ids_table.rb b/db/migrate/20180305095250_create_internal_ids_table.rb
index e972432fb98..432086fe98b 100644
--- a/db/migrate/20180305095250_create_internal_ids_table.rb
+++ b/db/migrate/20180305095250_create_internal_ids_table.rb
@@ -3,7 +3,7 @@ class CreateInternalIdsTable < ActiveRecord::Migration
DOWNTIME = false
- def up
+ def change
create_table :internal_ids, id: :bigserial do |t|
t.references :project, null: false, foreign_key: { on_delete: :cascade }
t.integer :usage, null: false
@@ -12,8 +12,4 @@ class CreateInternalIdsTable < ActiveRecord::Migration
t.index [:usage, :project_id], unique: true
end
end
-
- def down
- drop_table :internal_ids
- end
end