check out this feature here http://guides.rubyonrails.org/active_record_querying.html#applying-a-default-scope