added wiki page

This commit is contained in:
albert
2010-02-15 17:32:32 -05:00
parent e745a87e5f
commit 80f033f253
9 changed files with 247 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
class CreateWikiPageVersions < ActiveRecord::Migration
def self.up
create_table :wiki_page_versions do |t|
t.column :wiki_page_id, :integer, :null => false
t.column :updater_id, :integer, :null => false
t.column :updater_ip_addr, "inet", :null => false
t.column :title, :string, :null => false
t.column :body, :text, :null => false
t.column :is_locked, :boolean, :null => false
t.timestamps
end
add_index :wiki_page_versions, :wiki_page_id
end
def self.down
drop_table :wiki_page_versions
end
end