Sha256: 73342d00bec4e5d8739002952ee402a69af27f0fceab19d5e79dd939caa6f322

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

class FixSectionableTypesForLinks < ActiveRecord::Migration
  def up
    KnowledgeBase::Section
      .where(sectionable_type: 'KnowledgeBase::Sectionables::Links')
      .update_all sectionable_type: 'KnowledgeBase::Sectionables::Links::List'
  end

  def down
    KnowledgeBase::Section
      .where(sectionable_type: 'KnowledgeBase::Sectionables::Links::List')
      .update_all sectionable_type: 'KnowledgeBase::Sectionables::Links'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
knowledge_base-0.2.0 db/migrate/20140410231433_fix_sectionable_types_for_links.rb