Sha256: eeb590598a1afc8b5f20bd3d3524ed40dfc4505423fc077f92e5978e4227726a
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
class TranslatePages < ActiveRecord::Migration[5.0] # translated cols are not needed in original table # but need to have translations declared in model def self.up Pwb::Page.create_translation_table!({ raw_html: {type: :text, default: ''}, page_title: {type: :string, default: ''}, link_title: {type: :string, default: ''} }, { migrate_data: true }) end def self.down Pwb::Page.drop_translation_table! migrate_data: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pwb-1.4.0 | db/migrate/20170716110121_translate_pages.rb |