Fixed for failed migration when installing refinery_cms_blog. Also makes it consistent with generated engine format.

This commit is contained in:
Nate Bird 2011-03-25 08:18:57 -07:00
parent 3642dfbe31
commit c583f930e8

View file

@ -1,7 +1,9 @@
User.find(:all).each do |user| User.find(:all).each do |user|
if user.plugins.where(:name => 'refinerycms_blog').blank?
user.plugins.create(:name => "refinerycms_blog", user.plugins.create(:name => "refinerycms_blog",
:position => (user.plugins.maximum(:position) || -1) +1) :position => (user.plugins.maximum(:position) || -1) +1)
end end
end
page = Page.create( page = Page.create(
:title => "Blog", :title => "Blog",