I've confirmed through the rails console that this record doesn't exist. However, when I run this code, 'it exists' gets printed to the console.
Is there an issue with how I'm querying the database using ruby?
if Companyavg.where(:company => 'goog', :word => 'baa')
puts 'it exists'
else
puts 'doesnt exist'
end