Comments (1)
So the general pattern for this in AshPostgres is to add the following to your repo:
def installed_extensions do
["uuid-ossp"]
end
This will cause the migration generator to generate default uuids at the database level. Otherwise, all we can do is generate them at the application level which I think is all that ecto can do as well.
from ash_postgres.
Related Issues (20)
- polymorphic_on_delete option results in never-ending migration cycle HOT 2
- Relationships are able to cross tenants with attribute strategy HOT 1
- tables with same name and different schemas breaks migration generator logic HOT 1
- Migrations are applied incorrectly with multiple repos
- Migration bigint to bigserial, when generated? true added to attribute HOT 2
- Migration generator fails when renaming and modifying a column at same time
- Query binding error when referencing a nested relationship with a deep filter HOT 1
- {:array, :map} type can't be inserted via Ash action HOT 2
- Installing extensions with multiple repos HOT 3
- Using an aggregrate on an attribute for a relation leads to inneficient queries HOT 4
- Using expr_sort on an attribute of a relation gives a "Error while building reference" HOT 2
- Invalid SQL generated when loading an aggregate that has a sort, for a resource that also has a sort HOT 3
- Sort in join relationship causes exception
- drop tables on resources being missing HOT 2
- Api.list!/2 doesn't work with the Postgres Data Layer HOT 2
- Ash.bulk_create returns success when the insert fails and rollback HOT 1
- Support `IDENTITY` instead of serial columns
- Migration script places unique index below relationships they're needed for HOT 1
- Warning shown unnecessarily when present validation specified in atomic action HOT 2
- `has_one` with `no_attributes? true` and `from_many? true` does not apply limiting to the query HOT 4
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 ash_postgres.