Sha256: 3707027adc196c94440109b3e8ea59f5277611504d71b036754d4445020900e2
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
class FixSectionableTypesForAttachments < ActiveRecord::Migration def up KnowledgeBase::Section .where(sectionable_type: 'KnowledgeBase::Sectionables::AttachmentList') .update_all sectionable_type: 'KnowledgeBase::Sectionables::Attachments::List' end def down KnowledgeBase::Section .where(sectionable_type: 'KnowledgeBase::Sectionables::Attachments::List') .update_all sectionable_type: 'KnowledgeBase::Sectionables::AttachmentList' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knowledge_base-0.2.0 | db/migrate/20140410231048_fix_sectionable_types_for_attachments.rb |