From 01ea6238a441c4000c3ac9a9dca106f14c37db9b Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 30 Jul 2014 10:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=9E=E8=B5=9B=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E6=8F=8F=E8=BF=B0=E8=BF=87=E9=95=BF=E6=97=B6=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/initializers/task.rb | 6 ++++++ ...0730024419_update_contestnotifications_description.rb | 9 +++++++++ db/schema.rb | 4 ++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20140730024419_update_contestnotifications_description.rb diff --git a/config/initializers/task.rb b/config/initializers/task.rb index 5b4f35098..51c903355 100644 --- a/config/initializers/task.rb +++ b/config/initializers/task.rb @@ -2,3 +2,9 @@ Mailer.mail_issue.each do |t| t.join end +#Thread.new do +# if Time.now == Time. +# +# end +#end + diff --git a/db/migrate/20140730024419_update_contestnotifications_description.rb b/db/migrate/20140730024419_update_contestnotifications_description.rb new file mode 100644 index 000000000..a959e93bd --- /dev/null +++ b/db/migrate/20140730024419_update_contestnotifications_description.rb @@ -0,0 +1,9 @@ +class UpdateContestnotificationsDescription < ActiveRecord::Migration + def up + change_column :contestnotifications, :description, :text + end + + def down + change_column :contestnotifications, :description, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 3cbfefa76..e9f2d5308 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20140728014933) do +ActiveRecord::Schema.define(:version => 20140730024419) do create_table "activities", :force => true do |t| t.integer "act_id", :null => false @@ -272,7 +272,7 @@ ActiveRecord::Schema.define(:version => 20140728014933) do t.integer "contest_id" t.string "title" t.string "summary" - t.string "description" + t.text "description" t.integer "author_id" t.integer "notificationcomments_count" t.datetime "created_at", :null => false