修复竞赛通知描述过长时报错的BUG

This commit is contained in:
sw 2014-07-30 10:48:33 +08:00
parent 583bdd7a54
commit 01ea6238a4
3 changed files with 17 additions and 2 deletions

View File

@ -2,3 +2,9 @@ Mailer.mail_issue.each do |t|
t.join
end
#Thread.new do
# if Time.now == Time.
#
# end
#end

View File

@ -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

View File

@ -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