Skip to content

Commit

Permalink
Fix migration for seo_meta for refinery#1115
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Nov 1, 2011
1 parent 47948cf commit 313f6de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/db/migrate/20110329222114_attach_seo_meta.rb
Expand Up @@ -20,7 +20,9 @@ def self.up
# Migrate data
existing_translations.each do |translation|
::Refinery::Page.translation_class.find(translation['id']).update_attributes(
::SeoMeta.attributes.keys.inject({}) {|attributes, name|
::SeoMeta.attributes.keys.reject{|k|
::Refinery::Page.translation_class.column_names.map(&:to_sym).exclude?(k)
}.inject({}) {|attributes, name|
attributes.merge(name => translation[name.to_s])
}
)
Expand Down

0 comments on commit 313f6de

Please sign in to comment.