Move to GraphQL

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-11-06 10:30:27 +01:00
parent 7e137d1a1c
commit b54dae7e15
149 changed files with 5605 additions and 4665 deletions

View File

@@ -0,0 +1,15 @@
defmodule Mobilizon.Repo.Migrations.AddDefaultActorUserField do
use Ecto.Migration
def up do
alter table(:users) do
add :default_actor_id, :integer
end
end
def down do
alter table(:users) do
remove :default_actor_id
end
end
end

View File

@@ -24,6 +24,8 @@ actor2 = insert(:actor, user: user)
# Make actor organize an event
event = insert(:event, organizer_actor: actor)
participant = insert(:participant, actor: actor, event: event)
# Insert a group
group = insert(:actor, type: :Group)