depends on activerecord higher or equal 3.2