Comments (1)
I solved the problem by changing, in the ~/avia-develop/apps/snitch_core/lib/core/data/model/user.ex file,
the Repo.update
to Repo.delete
on line 23. As this change prompted
** (Ecto.ConstraintError) constraint error when attempting to delete struct:
* foreign_key: snitch_orders_user_id_fkey,
I dropped this constraint manually in a postgresql console and it worked.
However, I have the feeling that this workaround is clunky, cumbersome, and potentially dangerous. With that being said, I am very curious whether anyone can think of a more elegant, straightforward, and safe alternative.
from angularspree.
Related Issues (20)
- Cannot add new address on firebaseapp HOT 1
- Unable to run project HOT 5
- ngu-carousel code update HOT 5
- Question on API calls
- Issue while running project HOT 2
- Error while serving the application HOT 4
- Issue while running the application HOT 4
- Unable to run the project HOT 3
- @ngrx/entity HOT 1
- @NgCarousel HOT 1
- CONTRIBUTING.md states that developers should create PR's against master branch HOT 1
- docker-compose up HOT 6
- how to run the project and is there any database file in it
- error on "scripts" > "start"
- Integrate storybook : storybook.js.org
- The mock data in the project doesn't seem to work
- Not able to singup in the demo url,always throws error
- fibers package is causing compilation failure on node >=16.x
- [Migrate] : Bootstrap to TailwindCSS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularspree.