Return only available service templates
Before, the scenario of removing one service type implies a migration script to delete the service from the database, otherwise, we will have an ActiveRecord::SubclassNotFound error. The new code doesn't assume that the previous available service type records are removed from the database.
Showing
Please register or sign in to comment