rails--rails/activerecord/test
Carlos Antonio da Silva 8d02afeaee Rollback where.like and where.not_like
The real win with these chain methods is where.not, that takes care of
different scenarios in a graceful way, for instance when the given value
is nil.

    where("author.id != ?", author_to_ignore.id)
    where.not("author.id", author_to_ignore.id)

Both where.like and where.not_like compared to the SQL versions doesn't
seem to give us that much:

    Post.where("title LIKE 'ruby on%'")
    Post.where.like(title: 'ruby on%'")
    Post.where("title NOT LIKE 'ruby on%'")
    Post.where.not_like(title: 'ruby on%'")

Thus Rails is adding where.not, but not where.like/not_like and others.
2012-12-07 16:52:55 -02:00
..
active_record/connection_adapters
assets
cases Rollback where.like and where.not_like 2012-12-07 16:52:55 -02:00
fixtures
migrations Add migration history to schema.rb dump 2012-12-02 21:16:32 -08:00
models Do not instantiate intermediate AR objects when eager loading. 2012-12-04 11:52:08 +01:00
schema Fix some indentation in the postgresql_specific_schema 2012-11-28 12:02:11 -02:00
support Revert "Fix annoy warning, when executing testcase." 2012-11-30 12:07:55 +04:00
.gitignore
config.example.yml
config.rb