(Originally posted on InterSystems CODE by blaise Zarka, 10/27/14) The following code snippet includes methods for Ensemble that migrate the item settings for the given production to default. The class method "test" runs the process, and it takes the name of a production class as a string:
Class blaisezarka.MigrateSettingsToDefault [ Abstract ]
{
/// Migrate all items settings from production productionClassName to system default settings
ClassMethod test(productionClassName As %String) As %Status
{
set production = ##class(Ens.Config.Production).

