aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20120601151114_create_category_translations.rb
blob: a7cb956788bdbee5ff22e8fe52569f4da9b92f51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CreateCategoryTranslations < ActiveRecord::Migration
  def up
    Refinery::Blog::Category.create_translation_table!({
      :title => :string,
      :slug => :string
    }, {
      :migrate_data => true
    })
  end

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