models: explicitly mark optional belongs_to
relationship as so
This prepares making the `belongs_to` relationship required by default.
This commit is contained in:
parent
31dfdbf993
commit
11456109c0
9 changed files with 14 additions and 14 deletions
|
@ -47,7 +47,7 @@
|
|||
# entreprise_id :integer
|
||||
#
|
||||
class Etablissement < ApplicationRecord
|
||||
belongs_to :dossier
|
||||
belongs_to :dossier, optional: true
|
||||
|
||||
has_one :champ, class_name: 'Champs::SiretChamp'
|
||||
has_many :exercices, dependent: :destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue