mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-28 02:40:22 +00:00
10 lines
240 B
Elixir
10 lines
240 B
Elixir
|
defmodule :"Elixir.Mobilizon.Repo.Migrations.Attach-pictures-to-actors" do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
alter table(:pictures) do
|
||
|
add(:actor_id, references(:actors, on_delete: :delete_all), null: false)
|
||
|
end
|
||
|
end
|
||
|
end
|