In my Blog Application built on Ruby on Rails - 4.1.4, I want to implement "Archive/Unarchive" feature for redundant blogs. I am using both Postgresql and MongoDB. Users, Posts, and Comments in Postgresql and Archived posts in MongoDB. I'm referencing posts to user with user_id
in posts table.
Now, In archived_posts
collection in MongoDB, I want association of User
table (postgresql) to the ArchivedPost
collection (MongoDB). Is it possible to achieve such reference/relation?
After a lot of searching, I found a gem 'tenacity' which offers such service.
You can look at the documentation at https://github.com/jwood/tenacity. I recently used the same in my project and it's working fine.