質問編集履歴

1

modelの内容記載

2016/05/07 04:29

投稿

GOROGORO
GOROGORO

スコア66

test CHANGED
File without changes
test CHANGED
@@ -83,3 +83,17 @@
83
83
  # ./spec/models/test_model.rb:8:in `block (4 levels) in <top (required)>'
84
84
 
85
85
  ```
86
+
87
+
88
+
89
+ model
90
+
91
+ ```
92
+
93
+ class TestModel < ActiveRecord::Base
94
+
95
+ validates :test_info, presence: true
96
+
97
+ end
98
+
99
+ '''