Następujący znalazca wypisze IS NULL
.ActiveRecord NIE JEST NULL Wyszukiwarka sql
User.where(:id =>nil) #=> []
User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IS NULL ORDER BY created_at DESC
Ale nie mogłem znaleźć wydrukowania IS NOT NULL
?
Duplikat http://stackoverflow.com/questions/4252349/rail-3-where-condition-using-not-null – Vache
To pytanie ma odpowiedź - http://stackoverflow.com/questions/4252349/rail-3- where-condition-using-not-null – ipr101