Skip to content

Commit

Permalink
Fix speakers schema (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 authored Jul 9, 2023
1 parent 811f5e2 commit 1f823f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/atomic/activities/speaker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ defmodule Atomic.Activities.Speaker do
The person who speaks and provides the activity
"""
use Atomic.Schema
alias Atomic.Activities.Activity
alias Atomic.Activities.ActivitySpeaker

schema "speakers" do
field :bio, :string
field :name, :string

many_to_many :activities, Activity, join_through: ActivitySpeaker, on_replace: :delete
timestamps()
end

Expand Down

0 comments on commit 1f823f9

Please sign in to comment.