From 6473abeb44b3a9f667522c7383dc5ed6a078f7e3 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 17 Oct 2014 18:24:03 +0800 Subject: [PATCH] added deadline and postdate to announcement upgrades --- lib/tasks/upgrade.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/upgrade.rake b/lib/tasks/upgrade.rake index 3fc9029..128d845 100644 --- a/lib/tasks/upgrade.rake +++ b/lib/tasks/upgrade.rake @@ -49,6 +49,8 @@ namespace :upgrade do bulletin.email_sentdate = announcement["email_sentdate"] bulletin.other_mailaddress = announcement["other_mailaddress"] bulletin.public = announcement["public"] + bulletin.postdate = announcement["postdate"] + bulletin.deadline = announcement["deadline"] bulletin.subtitle_translations = announcement["subtitle"] announcement["text"]["en"] = smart_downloader(announcement["text"]["en"], args.url.chomp("/")) announcement["text"]["zh_tw"] = smart_downloader(announcement["text"]["zh_tw"], args.url.chomp("/"))