Don't force the media to belong to an user.

So set nullable to 1 and test accordingly.

The relationship is still belongs_to to avoid dbic barfing.