[#888] link user to dossier

This commit is contained in:
Tanguy PATTE 2015-09-23 12:16:21 +02:00
parent 8c549bf27b
commit ede01b024b
6 changed files with 19 additions and 3 deletions

View file

@ -12,6 +12,7 @@ class Dossier < ActiveRecord::Base
has_one :cerfa
has_many :pieces_justificatives
belongs_to :procedure
belongs_to :user
has_many :commentaires
delegate :siren, to: :entreprise

View file

@ -3,4 +3,6 @@ class User < ActiveRecord::Base
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
has_many :dossiers
end