Console URL shortener based on ActiveRecord