Adding a rescue around the check for columns that allow null to correctly handle the event in which the database does not yet exist when enums are declared (largely needed because the Devise routing helper loads the model itself, and the routes are loaded as part of the environment; whether or not the database exists yet)
Adding a rescue around the check for columns that allow null to correctly handle the event in which the database does not yet exist when enums are declared (largely needed because the Devise routing helper loads the model itself, and the routes are loaded as part of the environment; whether or not the database exists yet)

centresource/enum_simulator