rake db:migrate fails on missing relation when registering fields from plugins
Steps to reproduce:
1) have a foreman where db:create and db:migrate was already executed
2) add a plugin registering graphql fields with plugin dsl, bundle
3) run db:migrate
The cause is that `field` methods are called within the type class immediately when the class constant is used, so we need to use strings for registration and constantize later.