measuring a user's storage (in the db)

Just a quick question. In a typical rails app, how do you go about measuring the amount of storage (in the db) used by each user? Say in a typical photo sharing site, how do you measure how much space each user is taking up? Thanks.