回答編集履歴
1
加筆
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
[https://apidock.com/rails/ActiveRecord/Associations/ClassMethods/belongs_to](https://apidock.com/rails/ActiveRecord/Associations/ClassMethods/belongs_to)
|
2
|
+
|
3
|
+
> :optional
|
4
|
+
|
5
|
+
> When set to true, the association will not have its presence validated.
|
2
6
|
|
3
7
|
```rb
|
4
8
|
|