Removed unnecessary .all at ends of ActiveRecord queries

I changed .all[0] to [0]