summaryrefslogtreecommitdiff
path: root/db/migrate/20200215225103_drop_forked_project_links_table.rb
blob: 6acced2c7343510b21da4645cb8c11ce33d6bbda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

# rubocop:disable Migration/Datetime

class DropForkedProjectLinksTable < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def change
    # rubocop:disable Migration/DropTable
    drop_table "forked_project_links", id: :serial do |t|
      t.integer "forked_to_project_id", null: false
      t.integer "forked_from_project_id", null: false
      t.datetime "created_at"
      t.datetime "updated_at"
      t.index ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true
    end
    # rubocop:enable Migration/DropTable
  end
end