删除无效动态

This commit is contained in:
sw 2015-06-02 13:59:33 +08:00
parent 79f4e286cf
commit c8128cffea
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
class RemoveBidActivity < ActiveRecord::Migration
def change
Activity.where(:act_type => "Bid").each do |act|
act.destroy
end
end
end

View File

@ -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