Do not use hard tab in markdown [ci skip]
This broke the markup.
This commit is contained in:
parent
72af0bbc3d
commit
954ad6bd92
@ -853,14 +853,14 @@ associations required by default.
|
||||
class Book < ApplicationRecord
|
||||
# model is not yet ready to have its association required by default
|
||||
|
||||
self.belongs_to_required_by_default = false
|
||||
self.belongs_to_required_by_default = false
|
||||
belongs_to(:author)
|
||||
end
|
||||
|
||||
class Car < ApplicationRecord
|
||||
# model is ready to have its association required by default
|
||||
|
||||
self.belongs_to_required_by_default = true
|
||||
self.belongs_to_required_by_default = true
|
||||
belongs_to(:pilot)
|
||||
end
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user