Save state set in database

This commit is contained in:
Pim Kunis 2021-07-25 17:39:22 +02:00
parent 8a5bba72fb
commit d3c16dd7aa
3 changed files with 48 additions and 15 deletions

View file

@ -0,0 +1,9 @@
defmodule MatrixServer.Repo.Migrations.AddStateToRoom do
use Ecto.Migration
def change do
alter table(:rooms) do
add :state, :map, default: %{}, null: false
end
end
end