acts_as_revisable 'loses' previous models created before migration
Posted
by cbrulak
on Stack Overflow
See other posts from Stack Overflow
or by cbrulak
Published on 2010-05-25T07:30:04Z
Indexed on
2010/05/25
21:01 UTC
Read the original article
Hit count: 315
ruby-on-rails
|acts-as-revisable
I have the following the standard, regular post sample app.
I created some posts then decided to introduce acts_as_revisable
After following the instructions at http://github.com/rich/acts_as_revisable I see that the previous posts are not appearing in the Post.all
call.
However, if I use the console and do Post.find_by_sql("SELECT * FROM Post WHERE ID=1")
the post shows up.
Any ideas?
Thanks
© Stack Overflow or respective owner