Add Siret(TypeDe)Champ STI model

This commit is contained in:
Paul Chavard 2018-04-03 16:29:42 +02:00
parent 3cd80af6cb
commit 0b79a3d79d
4 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,4 @@
class Champs::SiretChamp < Champ
belongs_to :etablissement, dependent: :destroy
accepts_nested_attributes_for :etablissement, allow_destroy: true, update_only: true
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::SiretTypeDeChamp < TypeDeChamp
end