Referenzen hinzufügen Rails Migration

class AddUserToUploads < ActiveRecord::Migration
  def change
    add_reference :uploads, :user, index: true
  end
end
Adventurous Ant