Migration für Pages deleted

This commit is contained in:
Andreas Stephanides
2013-07-22 14:44:01 +02:00
parent 81cbf2b940
commit 4c8f45c18b

View File

@@ -1,23 +0,0 @@
class CreatePages < ActiveRecord::Migration
def self.up
create_table :pages do |t|
t.string :name
t.string :url
t.integer :parent_id
t.integer :lft
t.integer :rgt
t.timestamps
end
add_index :pages, :parent_id
# Create parent Welcome page
Page.create(:name => 'Welcome', :body => 'Getting started guide')
end
def self.down
drop_table :pages
end
end