Reuse existing addresses when creating an event
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
defmodule Mobilizon.Repo.Migrations.AddOriginIdToAddresses do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:addresses) do
|
||||
add(:origin_id, :string)
|
||||
end
|
||||
|
||||
create(index(:addresses, [:origin_id], unique: true))
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user