Currently, only the B-tree and GiST index types support multicolumn indexes. Up to 32 columns can be specified.
http://www.postgresql.org/docs/8.3/static/indexes-multicolumn.html
--
You received this message because you are subscribed to the Google Groups "elixir-ecto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-ecto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-ecto/856cbc95-b248-4e13-847f-e91d447edc9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Exactly, I have create unique_index(:accounts, [:enrollment_id, :bank_code, :account_number]) in my migration, just the model part is a bit confusing.
Exactly, I have create unique_index(:accounts, [:enrollment_id, :bank_code, :account_number]) in my migration, just the model part is a bit confusing.Yes, you need to choose *one* attribute to show the error. We could potentially fix this in Ecto but wouldn't make it more sense to show the error message just once and refer the other field in the error message? Something like "This account number was already added for the chosen bank code"?
--
You received this message because you are subscribed to a topic in the Google Groups "elixir-ecto" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-ecto/hN0IleIo-d8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-ecto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-ecto/CAGnRm4J_ij9qgt8Ga%3DR6DqR8EHh4E0Goeid%3DrRG9c%3DXfRhXJJQ%40mail.gmail.com.