Ensure uniqueness of scrobble rules
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
defmodule MusicLibrary.Repo.Migrations.AddScrobbleRulesConstraints do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
drop index(:scrobble_rules, [:type, :match_value])
|
||||
create unique_index(:scrobble_rules, [:type, :match_value], unique: true)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user