删除匿名用户数据迁移

This commit is contained in:
huang 2016-06-06 14:55:13 +08:00
parent d3c6c0ca99
commit 4ea12a6dc5
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,8 @@
class DeleteAnonymousOrg < ActiveRecord::Migration
def up
OrgDocumentComment.where(:organization_id => 23, :creator_id => 2).delete_all
end
def down
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 => 20160601073753) do
ActiveRecord::Schema.define(:version => 20160606064856) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false