Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Nov 10, 2024
1 parent 2fb8c65 commit e98e104
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/journi_plan/itineraries/activity.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule JourniPlan.Itineraries.Activity do
field :start_time, :utc_datetime
field :end_time, :utc_datetime

belongs_to :itinerary, JourniPlan.Itineraries.Projections.Itinerary,
belongs_to :itinerary, JourniPlan.Itineraries.Itinerary,
references: :uuid,
foreign_key: :itinerary_uuid,
type: :binary_id
Expand Down
4 changes: 2 additions & 2 deletions lib/journi_plan/itineraries/itinerary.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ defmodule JourniPlan.Itineraries.Itinerary do
field :description, :string
field :name, :string

has_many :activities, JourniPlan.Itineraries.Projections.Activity,
has_many :activities, JourniPlan.Itineraries.Activity,
foreign_key: :itinerary_uuid

has_many :journal_entries, JourniPlan.Itineraries.Projections.JournalEntry,
has_many :journal_entries, JourniPlan.Itineraries.JournalEntry,
foreign_key: :itinerary_uuid

belongs_to :user, JourniPlan.Accounts.User
Expand Down
4 changes: 2 additions & 2 deletions lib/journi_plan/itineraries/journal_entry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ defmodule JourniPlan.Itineraries.JournalEntry do
field :entry_date, :utc_datetime
field :title, :string

belongs_to :activity, JourniPlan.Itineraries.Projections.Activity,
belongs_to :activity, JourniPlan.Itineraries.Activity,
references: :uuid,
foreign_key: :activity_uuid,
type: :binary_id

belongs_to :itinerary, JourniPlan.Itineraries.Projections.Itinerary,
belongs_to :itinerary, JourniPlan.Itineraries.Itinerary,
references: :uuid,
foreign_key: :itinerary_uuid,
type: :binary_id
Expand Down
Loading

0 comments on commit e98e104

Please sign in to comment.