Migrate custom table name

This fixes the problem that when installing with an existing table called 'activities', the migrations ignore the custom `table_name` in the initializer. I'm afraid I had a bit of difficulty getting the test to run properly, so have not been able to add test cases yet. I've verified manually that it works, though.