Add Index to Attribute

I have this AshProstgres resource and would like to add an index to the link parameter. How can I do that?
attributes do
uuid_primary_key :id

attribute :link, :string do
allow_nil? false
end
end
attributes do
uuid_primary_key :id

attribute :link, :string do
allow_nil? false
end
end
1 Reply
barnabasj
barnabasj3y ago
Ash HQ
DSL Section: ash_postgres > AshPostgres > postgres > custom_indexes
View the documentation for DSL Section: ash_postgres > AshPostgres > postgres > custom_indexes on Ash HQ.

Did you find this page helpful?