Add paper_trail

This commit is contained in:
nasia 2017-07-17 12:00:06 +03:00 committed by Stella Rouzi
parent f7c0b64eb5
commit d9b2ebfc36
4 changed files with 11 additions and 3 deletions

View file

@ -1,5 +1,6 @@
class Booth < ActiveRecord::Base
include ActiveRecord::Transitions
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
belongs_to :conference
has_many :booth_requests, dependent: :destroy