View the Project on GitHub codn/adminpanel
This generator helps your to add fields to your adminpanel models, just put your migration to add_fields_to_product
and it’s going to migrate your Adminpanel::Product
with the specified attributes, that are the same that when generating a resource.