Sha256: ef013ebd9c01920be8a1ca96f9ba92c661932d2204a009a2d3c60f1d17d057a7

Contents?: true

Size: 341 Bytes

Versions: 45

Compression:

Stored size: 341 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 trait: "html_message"
    html_message.update_attributes! content: File.read(File.join(dir, "#{codename}.html"))
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
card-1.96.7 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.96.6 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.96.5 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.96.4 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.96.3 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.96.2 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.96.1 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.96.0 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.95.3 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.95.2 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.95.1 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.95.0 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.94.1 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.94.0 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.93.13 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.93.12 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.93.11 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.93.10 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.93.9 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.93.8 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb