Commit 3039a253e4648c9c3d14353a4773a9ab1d501257
1 parent
29bd4281
Exists in
master
and in
2 other branches
Put all link list blocks to behind CommunityBlock
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
db/migrate/20150910133925_add_community_block_in_place_of_profile_image_block.rb
| @@ -47,6 +47,10 @@ class AddCommunityBlockInPlaceOfProfileImageBlock < ActiveRecord::Migration | @@ -47,6 +47,10 @@ class AddCommunityBlockInPlaceOfProfileImageBlock < ActiveRecord::Migration | ||
| 47 | 47 | ||
| 48 | profile_image_block.destroy | 48 | profile_image_block.destroy |
| 49 | print "." | 49 | print "." |
| 50 | + | ||
| 51 | + # Put all link list blocks to behind | ||
| 52 | + link_list_blocks = software_area_two.blocks.where(:type=>"LinkListBlock", :position=>1) | ||
| 53 | + link_list_blocks.update_all :position => 3 | ||
| 50 | end | 54 | end |
| 51 | end | 55 | end |
| 52 | 56 |