在model文件中加入如下语句则跟踪如下数据库中的字段,如果该字段被改动则保存在日志中
has_paper_trail :only => [:name, :user_id, :country_code, :state_code, :city_code, :lat, :lng,
:guests_count, :max_guests_count, :rooms_count, :addresses, :beds_count, :bathrooms_count,:listing_type, :category, :bed_type, :about, :house_rule, :minimum_stay, :cancellation_policy,
:status, :calendar_type