Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refinery CMS: generating migrations for existing models within an engine

I want to add an attribute to a model I've created within a Refinery CMS engine. I know I could do the following:

  1. rails generate migration AddPartNumberToProducts part_number:string
  2. Manually move the migration file from db/migrate to vendor/extensions/products/db/migrate

But is there a command to generate the migration into the correct folder in the first place?

Thanks!

like image 204
Mike Avatar asked Nov 13 '22 16:11

Mike


1 Answers

The method I have outlined above is correct, according to @parndt (the lead developer of the Refinery project).

like image 143
Mike Avatar answered Nov 15 '22 05:11

Mike