From c8128cffea87e24be6a75d92c683a6892de680e9 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 2 Jun 2015 13:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E5=8A=A8?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20150602055730_remove_bid_activity.rb | 7 +++++++ db/schema.rb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20150602055730_remove_bid_activity.rb diff --git a/db/migrate/20150602055730_remove_bid_activity.rb b/db/migrate/20150602055730_remove_bid_activity.rb new file mode 100644 index 000000000..759091118 --- /dev/null +++ b/db/migrate/20150602055730_remove_bid_activity.rb @@ -0,0 +1,7 @@ +class RemoveBidActivity < ActiveRecord::Migration + def change + Activity.where(:act_type => "Bid").each do |act| + act.destroy + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 6f174868e..42c743588 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 => 20150602021020) do +ActiveRecord::Schema.define(:version => 20150602055730) do create_table "activities", :force => true do |t| t.integer "act_id", :null => false