-
Magento 2 create yes/no product attribute
magento 2 create yes/no product attribute and assigns to all attributes sets. Using Data patch installer. Your module must be a dependency on the Magento_Catalog module using module.xml. Example: Data match installer script: