Edit or create .irbrc (or .pryrc if you're using pry) file in user home directory. Add the following lines:
if defined?(Rails) && !Rails.env.nil?
puts '... ActiveRecord and ActiveResource Logger set to STDOUT'
puts '... ActiveRecord and ActiveResource Logger set to STDOUT'