Merge branch 'wiki'
This commit is contained in:
commit
e75a42d509
146 changed files with 6300 additions and 261 deletions
22
db/migrate/20090325175756_create_pages.rb
Normal file
22
db/migrate/20090325175756_create_pages.rb
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
class CreatePages < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :pages do |t|
|
||||
t.string :title
|
||||
t.text :body
|
||||
t.string :permalink
|
||||
t.integer :lock_version, :default => 0
|
||||
t.integer :updated_by
|
||||
t.integer :redirect
|
||||
t.integer :parent_id
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue