Find file History
Pull request Compare This branch is 2 commits ahead, 144 commits behind ryanb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
wiki
README

README

Railscasts Episode #177: Model Versioning

http://railscasts.com/episodes/177

Commands
  
  sudo rake gems:install
  script/generate vestal_versions_migration
  script/generate migration version_existing_pages
  rake db:migrate

script/console

  p = Page.all
  p.versions
  p.revert_to(7.minutes.ago)
  p.content
  p.revert_to(:last)