Permalink
Browse files

Remove and reset Pages model

  • Loading branch information...
first-developer committed May 20, 2011
1 parent 916828f commit ca5b75ab422addd307e820467f419b1738755cb2
Showing with 18 additions and 9 deletions.
  1. +0 −8 db/migrate/20110520074200_drop_page_table.rb
  2. +17 −0 db/migrate/20110520143943_create_pages.rb
  3. +1 −1 db/schema.rb
@@ -1,8 +0,0 @@
-class DropPageTable < ActiveRecord::Migration
- def self.up
- drop_table :pages
- end
-
- def self.down
- end
-end
@@ -0,0 +1,17 @@
+class CreatePages < ActiveRecord::Migration
+ def self.up
+ create_table :pages do |t|
+ t.string :name
+ t.string :permalink
+ t.integer :position
+ t.boolean :visible
+ t.references :subject
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :pages
+ end
+end
View
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110520114216) do
+ActiveRecord::Schema.define(:version => 20110520143943) do
create_table "pages", :force => true do |t|
t.string "name"

0 comments on commit ca5b75a

Please sign in to comment.