aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20131124113023_create_category_translations.refinery_blog.rb
blob: 57af33f90a09e40292c2e9bb5b94c906b550dd25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This migration comes from refinery_blog (originally 20120601151114)
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