1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/relation
Kevin Deisz 812e90482d
Expose an invert_where method that will invert all scope conditions.
```ruby
class User
  scope :active, -> { where(accepted: true, locked: false) }
end

User.active

User.active.invert_where
```
2020-12-18 16:00:20 -05:00
..
delegation_test.rb Optimize ActiveRecord::Relation#include? on an unloaded relation 2020-10-02 21:52:07 -04:00
delete_all_test.rb Add regression test for https://github.com/rails/rails/pull/40178#issuecomment-688222844 2020-09-09 19:26:57 +09:00
merging_test.rb Allow difference for and/or unless other values are set explicitly 2020-06-15 17:29:19 +09:00
mutation_test.rb Allow where references association names as joined table alias names 2020-08-26 10:07:13 +09:00
or_test.rb Fix or to raise structurally incompatible error for single values 2020-12-02 20:05:01 +09:00
predicate_builder_test.rb
record_fetch_warning_test.rb
select_test.rb Fix eager loading that non-select columns will be loaded 2020-08-17 12:05:43 +09:00
update_all_test.rb Add regression tests for 859fba7c4b 2020-06-20 16:20:16 +09:00
where_chain_test.rb Add where.associated to check association presence 2020-11-26 14:15:18 +01:00
where_clause_test.rb where.not now generates NAND predicates instead of NOR 2020-10-30 00:25:35 +00:00
where_test.rb Expose an invert_where method that will invert all scope conditions. 2020-12-18 16:00:20 -05:00