Commit f840ef5c732d24d239f9a8d7229ae48a8cb46453

Authored by MoisesMachado
1 parent 4a6be178

ActionItem8: change the creation of Home Page to bypass validation of presence of parent


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@427 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
db/migrate/008_add_comatose_support.rb
@@ -29,7 +29,7 @@ class AddComatoseSupport < ActiveRecord::Migration @@ -29,7 +29,7 @@ class AddComatoseSupport < ActiveRecord::Migration
29 end 29 end
30 Comatose::Page.create_versioned_table 30 Comatose::Page.create_versioned_table
31 puts "Creating the default 'Home Page'..." 31 puts "Creating the default 'Home Page'..."
32 - Comatose::Page.create!( :title=>'Home Page', :body=>"h1. Welcome\n\nYour content goes here...", :author=>'System' ) 32 + Comatose::Page.create!( :title=>'Home Page', :body=>"h1. Welcome\n\nYour content goes here...", :author=>'System' , :parent_id => 0).update_attribute(:parent_id, nil)
33 end 33 end
34 34
35 def self.down 35 def self.down