質問編集履歴
3
存在しないlocation_idをroom_idに変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,9 +60,9 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
-
そのため `reservations`に`
|
63
|
+
そのため `reservations`に`room_id`を追加して直接参照したいのですが
|
64
64
|
|
65
|
-
`plans`にも`
|
65
|
+
`plans`にも`room_id`があるためDB設計的に冗長なのではと感じてます。
|
66
66
|
|
67
67
|
|
68
68
|
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
```ruby
|
50
50
|
|
51
|
-
@reservation =
|
51
|
+
@reservation = Room.find(params[:id]).reservations
|
52
52
|
|
53
53
|
```
|
54
54
|
|
1
余計な空白削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,8 +50,6 @@
|
|
50
50
|
|
51
51
|
@reservation = Location.find(params[:id]).reservations
|
52
52
|
|
53
|
-
|
54
|
-
|
55
53
|
```
|
56
54
|
|
57
55
|
|