質問編集履歴

2

ソースコードの追加

2018/06/29 01:40

投稿

olaf
olaf

スコア17

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,8 @@
3
3
  class Message < ApplicationRecord
4
4
 
5
5
  belongs_to :message_room
6
+
7
+  validates :message_room_id, presence: true
6
8
 
7
9
  end
8
10
 

1

初心者マークの追加

2018/06/29 01:40

投稿

olaf
olaf

スコア17

test CHANGED
File without changes
test CHANGED
File without changes