Skip to content

Commit

Permalink
Bind constraint name
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed Oct 30, 2016
1 parent 177c010 commit 95b7595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/schemas/payment.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ defmodule Tokenizer.DB.Schemas.Payment do
|> validate_length(:description, max: 250)
|> validate_fee(:amount, :fee, fees)
|> validate_metadata(:metadata)
|> unique_constraint(:external_id)
|> unique_constraint(:external_id, name: :payments_external_id_index)
end
end

0 comments on commit 95b7595

Please sign in to comment.