activerecord persistence and scoping