To my knowledge there is no H2 support on the Heroku server. So you can't use H2 as an in memory database.
You can get a list of supported databases here
I would recommend you to use Postgres as a database. This is a good starting point.