Fixes #28838, #28931 - Safer seeding on initialization
Make sure that migartions have run before attempting to run seeds, to ensure we don't get into a wierd state of the database if the app is started before the db has been migrated. Also, catch and log errors during seeding to prevent passanger from failing to start if an error occurs.
Related issues
Bug #28838: don't seed on startup if migrations are pending
Bug #28931: If seeding fails, Passenger refuses to start
Fixes #28838, #28931 - Safer seeding on initialization
Make sure that migartions have run before attempting to run seeds, to
ensure we don't get into a wierd state of the database if the app is
started before the db has been migrated.
Also, catch and log errors during seeding to prevent passanger from
failing to start if an error occurs.