Commit 76248135ab0dd4aa3453d40614d2b354c4ca9bd7

Authored by AntonioTerceiro
1 parent da1ced66

ActionItem18: adding a ! to the migration to crash if it is not able to create a root page



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@379 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
... ... @@ -25,7 +25,7 @@ class AddComatoseSupport < ActiveRecord::Migration
25 25 end
26 26 Comatose::Page.create_versioned_table
27 27 puts "Creating the default 'Home Page'..."
28   - Comatose::Page.create( :title=>'Home Page', :body=>"h1. Welcome\n\nYour content goes here...", :author=>'System' )
  28 + Comatose::Page.create!( :title=>'Home Page', :body=>"h1. Welcome\n\nYour content goes here...", :author=>'System' )
29 29 end
30 30  
31 31 def self.down
... ...