2020-02-21 21:08:57 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-04-07 21:09:46 +00:00
|
|
|
# rubocop:disable Migration/Datetime
|
|
|
|
|
2020-02-21 21:08:57 +00:00
|
|
|
class DropForkedProjectLinksTable < ActiveRecord::Migration[6.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
2020-06-16 12:09:00 +00:00
|
|
|
# rubocop:disable Migration/DropTable
|
2020-02-21 21:08:57 +00:00
|
|
|
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
|
2020-06-16 12:09:00 +00:00
|
|
|
# rubocop:enable Migration/DropTable
|
2020-02-21 21:08:57 +00:00
|
|
|
end
|
|
|
|
end
|