Closed DBULL7 closed 6 years ago
When creating a new backend project , and adding a model, the params passed in the console are being used to name the file and generate the model incorrectly. See the photo below;
Looks like I may have found a different bug, after digging into the code a bit I noticed that you're setting table columns to process.argv.splice(3, process.argv.length)
but the data needed to create the columns would come from splitting argv[2]. Here is the console.log of argv:
I've made the bookshelf model script a bit more legible. I still can't reproduce your bug, did you pull the latest or perhaps used comma's?
@alocke12992 I suspect this was a double whammy of errors. The folders didn't install correctly and then the script didn't exit when it detected something was wrong. Give it a shot by creating or adding a server with Postgres and try to make a model/migration.