update activity to use mongoid embedded documents