質問編集履歴

3

存在しないlocation_idをroom_idに変更

2015/09/15 00:07

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -60,9 +60,9 @@
60
60
 
61
61
 
62
62
 
63
- そのため `reservations`に`location_id`を追加して直接参照したいのですが
63
+ そのため `reservations`に`room_id`を追加して直接参照したいのですが
64
64
 
65
- `plans`にも`location_id`があるためDB設計的に冗長なのではと感じてます。
65
+ `plans`にも`room_id`があるためDB設計的に冗長なのではと感じてます。
66
66
 
67
67
 
68
68
 

2

2015/09/15 00:07

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -48,7 +48,7 @@
48
48
 
49
49
  ```ruby
50
50
 
51
- @reservation = Location.find(params[:id]).reservations
51
+ @reservation = Room.find(params[:id]).reservations
52
52
 
53
53
  ```
54
54
 

1

余計な空白削除

2015/09/14 22:32

投稿

退会済みユーザー
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