Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 21st, 2018
74
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
rails 3 not nil
MyModel.where(:some_id => !nil)
MyModel.where("some_id is not null")
MyModel.where(MyModel.arel_table['some_id'].not_eq(nil))
MyModel.where("some_id IS NOT NULL")
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 7 min ago | 0.38 KB
Untitled
FreeBasic | 7 min ago | 0.28 KB
News April25 24
Email | 8 min ago | 27.02 KB
Untitled
FreeBasic | 10 min ago | 0.32 KB
Crypto Adoption Worldwide Development and Cur...
PHP | 26 min ago | 6.09 KB
RequestException: error with request
Python | 26 min ago | 3.24 KB
Untitled
Bash | 37 min ago | 7.64 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 39 min ago | 0.39 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!