kvesteri / postgresql-audit

Audit trigger for PostgreSQL
BSD 2-Clause "Simplified" License
126 stars 28 forks source link

Move `Activity.transaction` to the base factory function #23

Closed jacobsvante closed 7 years ago

jacobsvante commented 7 years ago

This way you won’t have to redeclare the column and relationship in case you are overriding the activity_model_factory method. (Or go mad after hours of debugging a strange SQL error saying that transaction_id is an undeclared variable because you missed this detail...)

Tests will fail until #22 has been merged.

kvesteri commented 7 years ago

Thanks for the PR! :train:

jacobsvante commented 7 years ago

And thanks for the release!