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

@ -0,0 +1,15 @@
class AddVersionedTables < ActiveRecord::Migration
def self.up
create_table("things") do |t|
t.column :title, :text
t.column :price, :decimal, :precision => 7, :scale => 2
t.column :type, :string
end
Thing.create_versioned_table
end
def self.down
Thing.drop_versioned_table
drop_table "things" rescue nil
end
end