Skip to content

Commit

Permalink
Fixed down migration in plugins generated by refinery-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Heidel authored and parndt committed Jan 10, 2010
1 parent 36716c3 commit e80158d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def self.down
UserPlugin.destroy_all({:title => "<%= class_name.pluralize.underscore.titleize %>"})

Page.find_all_by_link_url("/<%= plural_name %>").each do |page|
page.link_url, page.menu_match, page.deletable = nil
page.link_url, page.menu_match = nil
page.deletable = true
page.destroy
end
Page.destroy_all({:link_url => "/<%= plural_name %>"})
Expand Down

0 comments on commit e80158d

Please sign in to comment.