From d9fe607c5be71fd4d07fe589b8761f7edd303693 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Mon, 22 Sep 2014 11:36:05 +0800 Subject: [PATCH] =?UTF-8?q?#1282=20=E4=BF=AE=E5=A4=8D225=E5=8F=B7=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84BUG=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=EF=BC=9A=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20140922032830_change225_bid_data.rb | 13 +++++++++++++ db/schema.rb | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20140922032830_change225_bid_data.rb diff --git a/db/migrate/20140922032830_change225_bid_data.rb b/db/migrate/20140922032830_change225_bid_data.rb new file mode 100644 index 000000000..f41ec73c0 --- /dev/null +++ b/db/migrate/20140922032830_change225_bid_data.rb @@ -0,0 +1,13 @@ +class Change225BidData < ActiveRecord::Migration + def up + bid = Bid.find 225 + bid.proportion = 60 + bid.save + end + + def down + bid = Bid.find 225 + bid.proportion = 60 + bid.save + end +end diff --git a/db/schema.rb b/db/schema.rb index ebf24f547..817104aa9 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 => 20140916005319) do +ActiveRecord::Schema.define(:version => 20140922032830) do create_table "activities", :force => true do |t| t.integer "act_id", :null => false