質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,34 +36,4 @@
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
-
```ここに言語を入力
|
40
|
-
|
41
|
-
class House < ApplicationRecord
|
42
|
-
|
43
|
-
has_many :house_rooms, dependent: :delete_all
|
44
|
-
|
45
|
-
has_many :rooms, through: :house_rooms
|
46
|
-
|
47
|
-
```
|
48
|
-
|
49
|
-
```ここに言語を入力
|
50
|
-
|
51
|
-
class Room < ApplicationRecord
|
52
|
-
|
53
|
-
belongs_to :house
|
54
|
-
|
55
|
-
```
|
56
|
-
|
57
|
-
```ここに言語を入力
|
58
|
-
|
59
|
-
class HouseRoom < ApplicationRecord
|
60
|
-
|
61
|
-
belongs_to :house
|
62
|
-
|
63
|
-
belongs_to :room
|
64
|
-
|
65
|
-
end
|
66
|
-
|
67
|
-
```
|
68
|
-
|
69
39
|
お分かりの方、ぜひアドバイスよろしくお願いします。
|