This is a test app for testing paper_trail nested associations.
Book
- has_many authors through authorships
- has_many editions
- has_one cover -> changed to has_many
- has_one isbn
- has_many covers -> added in order for the PT-AT gem to work
Edittion
- has_one cover -> changed to has_many
Person
- has_many books through authorships
bundle install
rails db:create
rails db:migrate
rails db:seed
# optional, will create sample person
- Create a new Person.
- Create a new Book.
- Input Book data, save the Book.
- Edit the created Book, change the cover value, then save the Book.
- Click Versions of the book.
- Click Restore to this version.
The Restore should be able to restore all associations, including edition cover.
The Restore can restore all associations but the edition cover.
The Restore can now restore cover, too!
The documentation for PT-AT stated:
If you want to include nested associations simply add :through relationships to your model.
But no example is given.
- Ruby version
2.7.2
- Database creation
rails db:create
- Database initialization
rails db:migrate
- How to run the test suite
No test suite yet
- Services (job queues, cache servers, search engines, etc.)
None
- Deployment instructions
This is not meant to be deployed