Added version control for wiki pages.

This commit is contained in:
Benjamin Meichsner 2009-05-15 17:32:45 +02:00
parent 7ba6bc3680
commit 053c665270
36 changed files with 1647 additions and 15 deletions

View file

@ -5,12 +5,17 @@ class CreatePages < ActiveRecord::Migration
t.text :body
t.string :permalink
t.integer :lock_version, :default => 0
t.integer :updated_by
t.integer :version
t.timestamps
end
Page.create_versioned_table # Automaticly creates pages_versions table
end
def self.down
drop_table :pages
Page.drop_versioned_table
end
end