I have a database question. I have a table called ‘posts’ which holds
all the blog posts. Now I want to store updates of a specific post in
the same table. Normal post would get the type ‘normal’ and updates
would get the type ‘update’. Now for my question: You could have
multiple updates to a single posts, so how do a correctly name the
reference table? And how do I put this in the model?
This is my Post model:
class Post < ActiveRecord::Base
I have a database question. I have a table called ‘posts’ which holds
all the blog posts. Now I want to store updates of a specific post in
the same table. Normal post would get the type ‘normal’ and updates
would get the type ‘update’. Now for my question: You could have
multiple updates to a single posts, so how do a correctly name the
reference table? And how do I put this in the model?
I am not sure I understand the question correctly, would
acts_as_versioned[*] help?