>> Comment.count
SQL (0.3ms) SELECT count(*) AS count_all FROM `comments`
=> 451
>> Comment.count(:conditions => ["author_website not like ?",'aaaa'])
SQL (1.4ms) SELECT count(*) AS count_all FROM `comments` WHERE (author_website not like 'aaaa')
=> 203
>> Comment.count(:conditions => ["author_website like ?",'aaaa'])
SQL (1.2ms) SELECT count(*) AS count_all FROM `comments` WHERE (author_website like 'aaaa')
=> 0
>>
I was expecting the count of NOT LIKE to be 451.
I am using MySQL and Ruby on Rails.