User can be begin without SIRET
This commit is contained in:
parent
ed8da1552c
commit
a69433e8de
21 changed files with 220 additions and 71 deletions
|
@ -4,4 +4,10 @@ class Entreprise < ActiveRecord::Base
|
|||
has_one :rna_information, dependent: :destroy
|
||||
|
||||
validates_presence_of :siren
|
||||
|
||||
before_save :default_values
|
||||
|
||||
def default_values
|
||||
self.raison_sociale ||= ''
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue