aboutsummaryrefslogblamecommitdiffstats
path: root/db/migrate/20151210191646_move_posts_to_proper_locale.rb
blob: faeaf3cd084fb67896d2f1e65707cb1201f3ee0e (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                  
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