class MovePostsToProperLocale < ActiveRecord::Migration def up Refinery::Blog::Post::Translation.all.each { |tx| tx.locale = "nb"; tx.save! } end def down Refinery::Blog::Post::Translation.all.each { |tx| tx.locale = "en"; tx.save! } end end