1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2025-01-03 13:54:38 +00:00
mobilizon/priv/repo/migrations/20240222121054_create_admin_settings_medias.exs
2024-04-10 12:36:21 +00:00

15 lines
379 B
Elixir

defmodule Mobilizon.Storage.Repo.Migrations.CreateAdminSettingsMedias do
use Ecto.Migration
def change do
create table(:admin_settings_medias) do
add(:group, :string)
add(:name, :string)
add(:media_id, references(:medias, on_delete: :delete_all))
timestamps()
end
create(unique_index(:admin_settings_medias, [:group, :name]))
end
end