ActiveRecord associations exercise and URLShortener rails project