Skip to content

Commit 04d8287

Browse files
committed
Add Dojo belongs_to Prefecture
1 parent a9b485c commit 04d8287

File tree

3 files changed

+110
-0
lines changed

3 files changed

+110
-0
lines changed

app/models/dojo.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Dojo < ApplicationRecord
33
NUM_OF_WHOLE_DOJOS = "1,400"
44
NUM_OF_JAPAN_DOJOS = Dojo.count.to_s
55

6+
belongs_to :prefecture
67
has_one :dojo_event_service, dependent: :destroy
78
has_many :event_histories, dependent: :destroy
89

0 commit comments

Comments
 (0)