Commit 6949b704984a5987ad8bee81c1b8d88557d225fa

Authored by Gabriela Navarro
1 parent cbd3a9cb

Remove changes of template from software

db/migrate/20150720180509_software_release_date.rb
@@ -6,18 +6,9 @@ class SoftwareReleaseDate < ActiveRecord::Migration @@ -6,18 +6,9 @@ class SoftwareReleaseDate < ActiveRecord::Migration
6 name = software.community.name.strip 6 name = software.community.name.strip
7 software.community.name = name 7 software.community.name = name
8 software.community.save 8 software.community.save
9 - software.community.layout_template = "lefttopright"  
10 - print "." if software.community.save  
11 - boxToMove = software.community.boxes.where(:position => 1).first  
12 - blockToMove = boxToMove.blocks.where(:type => "SoftwareInformationBlock").first  
13 - if blockToMove  
14 - newBox = software.community.boxes.where(:position => 4).first  
15 - blockToMove.box = newBox  
16 - print "." if blockToMove.save  
17 - end  
18 - else  
19 - software.destroy  
20 - end 9 + else
  10 + software.destroy
  11 + end
21 end 12 end
22 13
23 file = File.new("plugins/spb_migrations/files/date-communities.txt", "r") 14 file = File.new("plugins/spb_migrations/files/date-communities.txt", "r")