From 92eabdbecd7db137f17d4bdcd24b3214c3e0a83a Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 22 Apr 2015 11:49:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...20150422034543_change_bid_open_anonymous_evaluation.rb | 8 ++++++++ db/schema.rb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20150422034543_change_bid_open_anonymous_evaluation.rb diff --git a/db/migrate/20150422034543_change_bid_open_anonymous_evaluation.rb b/db/migrate/20150422034543_change_bid_open_anonymous_evaluation.rb new file mode 100644 index 000000000..e31ad67be --- /dev/null +++ b/db/migrate/20150422034543_change_bid_open_anonymous_evaluation.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 63063305f..ecba4ba96 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 => 20150415032102) do +ActiveRecord::Schema.define(:version => 20150422034543) do create_table "activities", :force => true do |t| t.integer "act_id", :null => false