修改创建作业未启用匿评时,所有作业列表看不到

This commit is contained in:
sw 2015-04-22 11:44:52 +08:00
parent 83796bfaa0
commit 09c51d1a87
2 changed files with 3 additions and 3 deletions

View File

@ -793,7 +793,7 @@ class BidsController < ApplicationController
@bid.is_evaluation = params[:bid][:is_evaluation]
@bid.proportion = params[:bid][:proportion]
@bid.evaluation_num = params[:bid][:evaluation_num]
@bid.open_anonymous_evaluation = params[:bid][:open_anonymous_evaluation]
params[:bid][:open_anonymous_evaluation] ? @bid.open_anonymous_evaluation = 1 : @bid.open_anonymous_evaluation = 0
@bid.reward_type = 3
# @bid.budget = params[:bid][:budget]
@bid.deadline = params[:bid][:deadline]

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20150409092151) do
ActiveRecord::Schema.define(:version => 20150415032102) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
@ -1459,7 +1459,7 @@ ActiveRecord::Schema.define(:version => 20150409092151) do
t.string "file_path"
t.integer "pack_times", :default => 1
t.integer "pack_size", :default => 0
t.string "file_digests"
t.text "file_digests"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end