Closed louisevdb84 closed 6 years ago
try to debug helper method create
but keep in mind that for some reasons it can be broken too
i checked the create
method. it looks like less advanced version, but it should work fine, by my opinion
will have a look at it tomorrow.
i think you don't need to use a long version of db include. i mean if you use mongo connector - you can pass a long link to database. it have all important things like pass/username... i assume error is on including part. it will be easy if you comment some things and go step by step and check where it' generate an issue
The import statement is now working well. Was just some typing errors. It breaks now when I try to send an email as soon as a new reservation is made.
{ Campground: undefined } Error: Cannot migrate models not attached to this datasource: Campground