db/seeds.d/106-mail_notifications.rb in katello-3.15.3.1 vs db/seeds.d/106-mail_notifications.rb in katello-3.16.0.rc1
- old
+ new
@@ -29,9 +29,17 @@
{:name => :promote_errata,
:description => N_('A post-promotion summary of hosts with installable errata'),
:mailer => 'Katello::ErrataMailer',
:method => 'promote_errata',
:subscription_type => 'alert'
+ },
+
+ {:name => :subscriptions_expiring_soon,
+ :description => N_('A list of subscriptions expiring soon'),
+ :mailer => 'Katello::SubscriptionMailer',
+ :method => 'subscription_expiry',
+ :subscription_type => 'report',
+ :queryable => true
}
]
notifications.each do |notification|
::MailNotification.where(name: notification[:name]).first_or_create!(notification)