Update device.rb

user_id is now accessible for connecting users table