mobilizon/priv/repo/migrations/20191023143659_move_participants_stats_to_event.exs

16 lines
282 B
Elixir
Raw Normal View History

defmodule Mobilizon.Storage.Repo.Migrations.MoveParticipantsStatsToEvent do
use Ecto.Migration
def up do
alter table(:events) do
add(:participant_stats, :map)
end
end
def down do
alter table(:events) do
remove(:participant_stats)
end
end
end