Dirigible
AEAsh Elixir
•Created by djacobs7 on 10/12/2023 in #support
Is there a plug for setting the tenant?
I actually know the answer to this, so if you post over there I'll let you know!
@ me when you done it.
4 replies
AEAsh Elixir
•Created by djacobs7 on 10/12/2023 in #support
Is there a plug for setting the tenant?
Hi thanks for your question.
The support forum in Discord has been archived.
The place to get a response is on the Elixir forum here:
https://elixirforum.com/c/elixir-framework-forums/ash-framework-forum/123
make sure that 'ash' is tagged in the post
4 replies
AEAsh Elixir
•Created by Dirigible on 8/8/2023 in #support
Filter by struct keys in a read action
cheers for the link, looks like at the time the discussion was had zac said you basically need to use a preparation, so that's what I've done! 🙂
6 replies
AEAsh Elixir
•Created by Dirigible on 6/7/2023 in #support
Deleting resources that have existing relationships
How do I mark as solved?
10 replies
AEAsh Elixir
•Created by Dirigible on 6/7/2023 in #support
Deleting resources that have existing relationships
Wow and just like that it works!
Thanks @Zach Daniel!
10 replies
AEAsh Elixir
•Created by Dirigible on 6/7/2023 in #support
Deleting resources that have existing relationships
In case you need it here is the constraint specified in the migration:
10 replies
AEAsh Elixir
•Created by Dirigible on 2/26/2023 in #support
How to Delete Resource?
Ok so I figured this out, in the end, posting here for posterity.
These are the steps I took:
1. Take note of what the resource is called in the db (in my case
cards
)
2. Delete the resource.
3. remove the resource in the Registry, and in any other resource where its has a relationship.
4. generate a migration mix ash_postgres.create_migrations --name <name>
5. add drop table(<table_name>)
in my case drop table(:cards)
into the up/0
function.
6. Run mix ash_postgres.migrate
This worked for me, @Zach Daniel hop in if I missed something.
(Is there a topic for AshHQ on this, if not there probably should be?)6 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 2/9/2023 in #support
Create a Unique Attribute
5 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 2/9/2023 in #support
Create a Unique Attribute
you'll need to generate and perform a migration for it to take effect I think
5 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 2/9/2023 in #support
Create a Unique Attribute
5 replies