paper_trail do
primary_key_type :uuid
only_when_changed? true
change_tracking_mode :changes_only
store_action_name? true
store_action_inputs? true
ignore_attributes [:inserted_at, :updated_at]
reference_source? false
# for multitenancy
attributes_as_attributes [:organization_id]
belongs_to_actor :actor, CauseBeacon.Accounts.User, public?: false
end
paper_trail do
primary_key_type :uuid
only_when_changed? true
change_tracking_mode :changes_only
store_action_name? true
store_action_inputs? true
ignore_attributes [:inserted_at, :updated_at]
reference_source? false
# for multitenancy
attributes_as_attributes [:organization_id]
belongs_to_actor :actor, CauseBeacon.Accounts.User, public?: false
end