Tuesday, January 28, 2014

Rails4's Active Record where not nil

Since Rails 4.0 no more .where('column_name IS NOT NULL'). Instead, we now can use
.where.not(column_name: nil)
Yay!

No comments:

[PostgreSQL] How to create read-only standby replica (follower)

This link  and this link explain it really well and concise