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
Was this page helpful?