Agregar referencias migración de rieles

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