Công cụ tìm sau in ra IS NULL
.ActiveRecord IS NOT NULL sql finder
User.where(:id =>nil) #=> []
User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IS NULL ORDER BY created_at DESC
Nhưng tôi không thể tìm cách in ra IS NOT NULL
một?
Duplicate http://stackoverflow.com/questions/4252349/rail-3-where-condition-using-not-null – Vache
Câu hỏi này có câu trả lời của bạn - http://stackoverflow.com/questions/4252349/rail-3- where-condition-using-not-null – ipr101