Skip to content

Commit

Permalink
Fixed broken migration from Refinery core changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brown committed Jul 15, 2010
1 parent 751e93b commit e2423d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20100203164921_create_testimonials.rb
Expand Up @@ -16,7 +16,7 @@ def self.up
add_index :testimonials, :id

User.find(:all).each do |user|
user.plugins.create(:title => "Testimonials", :position => (user.plugins.maximum(:position) || -1) +1)
user.plugins.create(:name => "Testimonials", :position => (user.plugins.maximum(:position) || -1) +1)
end

page = Page.create(
Expand All @@ -32,7 +32,7 @@ def self.up
end

def self.down
UserPlugin.destroy_all({:title => "Testimonials"})
UserPlugin.destroy_all({:name => "Testimonials"})

Page.find_all_by_link_url("/testimonials").each do |page|
page.link_url, page.menu_match = nil
Expand Down

0 comments on commit e2423d5

Please sign in to comment.