Sha256: 4bd5b1f6130eb8e5a544e0cdbdf4bfdfad8a960bcd5d1b26e4da4f3264423c25
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
class MailboxerNamespacingCompatibility < ActiveRecord::Migration def self.up rename_table :conversations, :mailboxer_conversations rename_table :notifications, :mailboxer_notifications rename_table :receipts, :mailboxer_receipts Mailboxer::Notification.where(type: 'Message').update_all(type: 'Mailboxer::Message') end def self.down rename_table :mailboxer_conversations, :conversations rename_table :mailboxer_notifications, :notifications rename_table :mailboxer_receipts, :receipts Mailboxer::Notification.table_name = "notifications" Mailboxer::Notification.where(type: 'Mailboxer::Message').update_all(type: 'Message') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailboxer-0.15.1 | lib/generators/mailboxer/templates/mailboxer_namespacing_compatibility.rb |
mailboxer-0.15.0 | lib/generators/mailboxer/templates/mailboxer_namespacing_compatibility.rb |