aboutsummaryrefslogblamecommitdiffstats
path: root/db/migrate/20120530102901_create_blog_translations.rb
blob: c301f4280d706630fda1a269f17f8cde83506b79 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                      
class CreateBlogTranslations < ActiveRecord::Migration
  def up
    Refinery::Blog::Post.create_translation_table!({
      :body => :text,
      :custom_teaser => :text,
      :custom_url => :string,
      :slug => :string,
      :title => :string
    }, {
      :migrate_data => true
    })
  end

  def down
    Refinery::Blog::Post.drop_translation_table! :migrate_data => true
  end
end