修改作业历史数据的问题

This commit is contained in:
sw 2015-04-22 11:49:48 +08:00
parent 09c51d1a87
commit 92eabdbecd
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,8 @@
class ChangeBidOpenAnonymousEvaluation < ActiveRecord::Migration
def chang
Bid.where("open_anonymous_evaluation IS NULL").each do |bid|
bid.open_anonymous_evaluation = 0
bid.save
end
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20150415032102) do ActiveRecord::Schema.define(:version => 20150422034543) do
create_table "activities", :force => true do |t| create_table "activities", :force => true do |t|
t.integer "act_id", :null => false t.integer "act_id", :null => false