# frozen_string_literal: true

# rubocop:disable Rails/BulkChangeTable - Legacy Migration
class AddGemAndRepoToProjects < ActiveRecord::Migration[5.1]
  def change
    add_column :projects, :rubygem_name, :string
    add_column :projects, :github_repo_path, :string
    add_index  :projects, :rubygem_name, unique: true
    add_foreign_key :projects, :rubygems, column: :rubygem_name, primary_key: :name
  end
end
# rubocop:enable Rails/BulkChangeTable
