I've a Ruby class that I will use only for console, it monkey patches ActiveRecord::Base with some shortcuts like ua for update_attribute and I don't want to load it when running rails server but only when running the rails console command.
What is the way to achieve this?