added wiki page
This commit is contained in:
19
db/migrate/20100215213756_create_wiki_page_versions.rb
Normal file
19
db/migrate/20100215213756_create_wiki_page_versions.rb
Normal 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
|
||||
Reference in New Issue
Block a user