Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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)
Something went wrong with that request. Please try again.