From 4ea12a6dc581dd3facddcc9211973aa38f712cb2 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 6 Jun 2016 14:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8C=BF=E5=90=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=95=B0=E6=8D=AE=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20160606064856_delete_anonymous_org.rb | 8 ++++++++ db/schema.rb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160606064856_delete_anonymous_org.rb diff --git a/db/migrate/20160606064856_delete_anonymous_org.rb b/db/migrate/20160606064856_delete_anonymous_org.rb new file mode 100644 index 000000000..c1bc895cb --- /dev/null +++ b/db/migrate/20160606064856_delete_anonymous_org.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 05a6f4e22..504849d39 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 => 20160601073753) do +ActiveRecord::Schema.define(:version => 20160606064856) do create_table "activities", :force => true do |t| t.integer "act_id", :null => false