Beware of default scope, most of the times it appears to be helpful, it will just be causing you hidden bugs to deal with later
Tag: active_record
Simple and easy way to use ActiveRecord without Rails
After a question in my other post about how to use sidekiq without rails, I decided to also post here how to use ActiveRecord without Rails, the basic idea is the same, we’ll start with an empty directory and create the files as we need.