Sha256: d7e0bf63abf5209a1d38f1413e183c174c488fad918b652e1c11aea8b46b8de7

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

class CreateBlogTranslations < ActiveRecord::Migration[4.2]
  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-blog-4.0.0 db/migrate/20120530102901_create_blog_translations.rb