diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-16 15:34:08 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-16 15:35:27 +0300 |
commit | fb6d6fce5a4d0fd833dc1cd231dd284a6c89471a (patch) | |
tree | cd60653ee507ae673a6da8a12ebd731bf449f525 /db/migrate | |
parent | bc3fc8ec3eec74876a0e2125248c27cde153e32b (diff) |
Address review comments.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180305095250_create_internal_ids_table.rb | 6 |
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 |