Sha256: 6cf55250b5c1d36e2b3c105f397985715447b42be573357c9989a9b7a2016554

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

# -*- encoding : utf-8 -*-

class FixNotificationHtmlMessage < Card::Migration::Core
  def up
    codename = :follower_notification_email
    dir = File.join data_path, "mailer"
    html_message = Card[codename].fetch "html_message"
    html_message.update! content: File.read(File.join(dir, "#{codename}.html"))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
card-1.100.0 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.99.6 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.99.5 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.99.4 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.99.3 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.99.2 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb