summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090131113802_create_pages.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20090131113802_create_pages.rb b/db/migrate/20090131113802_create_pages.rb
new file mode 100644
index 0000000..7493ffc
--- /dev/null
+++ b/db/migrate/20090131113802_create_pages.rb
@@ -0,0 +1,17 @@
1class CreatePages < ActiveRecord::Migration
2 def self.up
3 create_table :pages do |t|
4 t.integer :node_id
5 t.string :title
6 t.text :abstract
7 t.text :body
8 t.integer :revision
9
10 t.timestamps
11 end
12 end
13
14 def self.down
15 drop_table :pages
16 end
17end