has_moderated 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -96,6 +96,10 @@ You can run the tests by running
96
96
 
97
97
  in the root directory.
98
98
 
99
+ == TODO
100
+
101
+ Amend moderations... Eg if you create a new record and save it, then change something additionally and save again.
102
+
99
103
  == Problems
100
104
 
101
105
  You may encounter problems with models that have some sort of non-serializable attributes. This might be something like file attachments, you'll have to try it to see.
@@ -12,7 +12,10 @@ module HasModerated
12
12
 
13
13
  def self.photo_tmp_delete(value)
14
14
  FileUtils.rm(value) # remove temp file
15
- FileUtils.rmdir(File.expand_path("..", value)) # will only remove folder if empty
15
+ begin
16
+ FileUtils.rmdir(File.expand_path("..", value)) # will only remove folder if empty
17
+ rescue Errno::ENOTEMPTY
18
+ end
16
19
  end
17
20
 
18
21
  module ClassMethods
@@ -1,3 +1,3 @@
1
1
  module HasModerated
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -651,3 +651,22 @@ Migrating to CreateTaskPhotos (20111003234101)
651
651
   (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
652
652
   (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
653
653
   (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
654
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
655
+  (0.1ms) select sqlite_version(*)
656
+  (2.1ms) CREATE TABLE "moderations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "moderatable_id" integer, "moderatable_type" varchar(255) NOT NULL, "attr_name" varchar(60) NOT NULL, "attr_value" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
657
+  (1.5ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime)
658
+  (1.6ms) CREATE TABLE "subtasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime, "task_all_id" integer) 
659
+  (1.5ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
660
+  (1.6ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
661
+  (1.6ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
662
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
663
+  (0.0ms) PRAGMA index_list("schema_migrations")
664
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
665
+  (0.1ms) SELECT version FROM "schema_migrations"
666
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
667
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
668
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
669
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
670
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
671
+  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
672
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
@@ -12728,3 +12728,381 @@ Migrating to CreateTaskPhotos (20111003234101)
12728
12728
  Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
12729
12729
  Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
12730
12730
  TaskPhoto Load (0.1ms) SELECT "task_photos".* FROM "task_photos" WHERE "task_photos"."task_id" = 1 LIMIT 1
12731
+  (0.1ms) SAVEPOINT active_record_1
12732
+ SQL (25.4ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n photo: \n created_at: \n updated_at: \n id: \n :photo_tmp_file: /Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-0235-1811-6790/logo_arnes.gif\n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:17 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 00:35:17 UTC +00:00]]
12733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12734
+  (0.1ms) SELECT COUNT(*) FROM "photos"
12735
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12736
+  (0.1ms) SAVEPOINT active_record_1
12737
+ SQL (0.4ms) INSERT INTO "photos" ("created_at", "photo", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:17 UTC +00:00], ["photo", "logo_arnes.gif"], ["updated_at", Tue, 04 Oct 2011 00:35:17 UTC +00:00]]
12738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12739
+  (0.0ms) SAVEPOINT active_record_1
12740
+ SQL (0.2ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12742
+  (0.1ms) SELECT COUNT(*) FROM "photos"
12743
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
12744
+  (0.1ms) SAVEPOINT active_record_1
12745
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n photo: \n created_at: \n updated_at: \n id: \n :photo_tmp_file: /Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-0235-1811-6540/logo_arnes.gif\n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:17 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 00:35:17 UTC +00:00]]
12746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12747
+  (0.1ms) SELECT COUNT(*) FROM "photos" 
12748
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12749
+  (0.0ms) SAVEPOINT active_record_1
12750
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12752
+  (0.1ms) SELECT COUNT(*) FROM "photos"
12753
+  (0.0ms) SAVEPOINT active_record_1
12754
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12756
+  (0.1ms) SELECT COUNT(*) FROM "photos"
12757
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12758
+  (0.0ms) SAVEPOINT active_record_1
12759
+ SQL (0.3ms) INSERT INTO "photos" ("created_at", "photo", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["photo", nil], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12761
+  (0.0ms) SAVEPOINT active_record_1
12762
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12764
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
12765
+  (0.1ms) SAVEPOINT active_record_1
12766
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "photo_tmp_file"], ["attr_value", "/Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-0235-1811-2227/logo_arnes.gif"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12768
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
12769
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
12770
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12771
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = 1 LIMIT 1
12772
+  (0.1ms) SAVEPOINT active_record_1
12773
+ Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 1]]
12774
+  (0.1ms) UPDATE "photos" SET "photo" = 'logo_arnes.gif', "updated_at" = '2011-10-04 00:35:18.195171' WHERE "photos"."id" = 1
12775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12776
+  (0.0ms) SAVEPOINT active_record_1
12777
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
12778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12779
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
12780
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
12781
+  (0.1ms) SAVEPOINT active_record_1
12782
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Task 1\n updated_at: \n id: \n desc: \n:associations: \n :task_photos: \n - photo: \n task_id: \n created_at: \n updated_at: \n id: \n :photo_tmp_file: /Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-0235-1811-6860/logo_arnes.gif\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12784
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
12785
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
12786
+  (0.1ms) SELECT COUNT(*) FROM "task_photos"
12787
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12788
+  (0.1ms) SAVEPOINT active_record_1
12789
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Task 1"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12791
+  (0.1ms) SAVEPOINT active_record_1
12792
+ SQL (0.3ms) INSERT INTO "task_photos" ("created_at", "photo", "task_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["photo", "logo_arnes.gif"], ["task_id", 1], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12794
+  (0.0ms) SAVEPOINT active_record_1
12795
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12797
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
12798
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
12799
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
12800
+ TaskPhoto Load (0.3ms) SELECT "task_photos".* FROM "task_photos" WHERE "task_photos"."task_id" = 1 LIMIT 1
12801
+  (0.0ms) SAVEPOINT active_record_1
12802
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12804
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
12805
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
12806
+  (0.0ms) SAVEPOINT active_record_1
12807
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12809
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12810
+  (0.0ms) SAVEPOINT active_record_1
12811
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12813
+  (0.0ms) SAVEPOINT active_record_1
12814
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12816
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
12817
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
12818
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12819
+  (0.0ms) SAVEPOINT active_record_1
12820
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12822
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12823
+  (0.0ms) SAVEPOINT active_record_1
12824
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12825
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12826
+  (0.0ms) SAVEPOINT active_record_1
12827
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12828
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12829
+ Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12830
+  (0.0ms) SAVEPOINT active_record_1
12831
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12833
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12834
+  (0.0ms) SAVEPOINT active_record_1
12835
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12837
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12838
+  (0.0ms) SAVEPOINT active_record_1
12839
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12841
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12842
+  (0.0ms) SAVEPOINT active_record_1
12843
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12845
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
12846
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12847
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12848
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
12849
+  (0.0ms) SAVEPOINT active_record_1
12850
+  (0.1ms) UPDATE "tasks" SET "updated_at" = '2011-10-04 00:35:18.577697', "title" = 'Hollywood Hills' WHERE "tasks"."id" = 1
12851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12852
+  (0.0ms) SAVEPOINT active_record_1
12853
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 5]]
12854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12855
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12856
+  (0.0ms) SELECT COUNT(*) FROM "tasks"
12857
+  (0.0ms) SAVEPOINT active_record_1
12858
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12860
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12861
+  (0.0ms) SAVEPOINT active_record_1
12862
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12864
+  (0.0ms) SELECT COUNT(*) FROM "tasks"
12865
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
12866
+  (0.0ms) SAVEPOINT active_record_1
12867
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12869
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12870
+  (0.0ms) SAVEPOINT active_record_1
12871
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12873
+  (0.0ms) SAVEPOINT active_record_1
12874
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12876
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12877
+  (0.0ms) SAVEPOINT active_record_1
12878
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12880
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12881
+  (0.0ms) SAVEPOINT active_record_1
12882
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
12883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12884
+  (0.0ms) SELECT COUNT(*) FROM "tasks"
12885
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12886
+  (0.0ms) SELECT COUNT(*) FROM "moderations"
12887
+  (0.1ms) SAVEPOINT active_record_1
12888
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - created_at: \n task_id: \n title: Hollywood Hills\n updated_at: \n id: \n task_all_id: \n desc: \n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12890
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
12891
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
12892
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12893
+  (0.0ms) SAVEPOINT active_record_1
12894
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12896
+  (0.0ms) SAVEPOINT active_record_1
12897
+ SQL (0.3ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", 1], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12899
+  (0.0ms) SAVEPOINT active_record_1
12900
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12902
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
12903
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12904
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
12905
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
12906
+  (0.0ms) SAVEPOINT active_record_1
12907
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: Hollywood Hills\n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12909
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
12910
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12911
+  (0.0ms) SAVEPOINT active_record_1
12912
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", "Hollywood Hills"], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12913
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12914
+  (0.0ms) SAVEPOINT active_record_1
12915
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12917
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
12918
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12919
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12920
+  (0.0ms) SAVEPOINT active_record_1
12921
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12923
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12924
+  (0.0ms) SAVEPOINT active_record_1
12925
+ SQL (0.2ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12927
+  (0.0ms) SAVEPOINT active_record_1
12928
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12930
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12931
+  (0.0ms) SAVEPOINT active_record_1
12932
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "desc"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12934
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
12935
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12936
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12937
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
12938
+  (0.0ms) SAVEPOINT active_record_1
12939
+  (0.1ms) UPDATE "tasks" SET "updated_at" = '2011-10-04 00:35:18.665338', "desc" = 'Hollywood Hills' WHERE "tasks"."id" = 1
12940
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12941
+  (0.0ms) SAVEPOINT active_record_1
12942
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
12943
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12944
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
12945
+  (0.0ms) SAVEPOINT active_record_1
12946
+ SQL (0.9ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12948
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
12949
+  (0.0ms) SAVEPOINT active_record_1
12950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12951
+  (0.0ms) SAVEPOINT active_record_1
12952
+ SQL (1.0ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Hollywood Hills\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - 1\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12954
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
12955
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" LIMIT 1
12956
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT 1
12957
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12958
+  (0.1ms) SAVEPOINT active_record_1
12959
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12961
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
12962
+  (0.0ms) SAVEPOINT active_record_1
12963
+  (0.1ms) UPDATE "subtasks" SET "task_id" = 1, "updated_at" = '2011-10-04 00:35:18.690062' WHERE "subtasks"."id" = 1
12964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12965
+  (0.0ms) SAVEPOINT active_record_1
12966
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12968
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" LIMIT 1
12969
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
12970
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
12971
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
12972
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
12973
+  (0.1ms) SAVEPOINT active_record_1
12974
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n value: \n:associations: \n :subtasks: \n - created_at: \n task_id: \n title: Hollywood Hills\n updated_at: \n id: \n task_all_id: \n desc: \n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "TaskAll"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12976
+  (0.1ms) SELECT COUNT(*) FROM "task_alls"
12977
+  (0.0ms) SELECT COUNT(*) FROM "subtasks" 
12978
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
12979
+  (0.0ms) SAVEPOINT active_record_1
12980
+ SQL (0.3ms) INSERT INTO "task_alls" ("created_at", "title", "updated_at", "value") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["value", nil]]
12981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12982
+  (0.0ms) SAVEPOINT active_record_1
12983
+ SQL (0.3ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["task_all_id", 1], ["task_id", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12985
+  (0.0ms) SAVEPOINT active_record_1
12986
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
12987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12988
+  (0.1ms) SELECT COUNT(*) FROM "task_alls"
12989
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
12990
+ TaskAll Load (0.1ms) SELECT "task_alls".* FROM "task_alls" LIMIT 1
12991
+ TaskAll Load (0.1ms) SELECT "task_alls".* FROM "task_alls" LIMIT 1
12992
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_all_id" = 1 LIMIT 1
12993
+  (0.0ms) SAVEPOINT active_record_1
12994
+ SQL (0.6ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
12995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12996
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
12997
+  (0.0ms) SAVEPOINT active_record_1
12998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12999
+  (0.0ms) SAVEPOINT active_record_1
13000
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Hollywood Hills\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - 1\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13002
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
13003
+ SQL (0.0ms) DELETE FROM "subtasks"
13004
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
13005
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
13006
+  (0.0ms) SAVEPOINT active_record_1
13007
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13009
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
13010
+  (0.0ms) SAVEPOINT active_record_1
13011
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
13012
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13013
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
13014
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
13015
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
13016
+  (0.0ms) SAVEPOINT active_record_1
13017
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13019
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
13020
+  (0.1ms) SAVEPOINT active_record_1
13021
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13023
+  (0.0ms) SAVEPOINT active_record_1
13024
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
13025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13026
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
13027
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
13028
+  (0.0ms) SAVEPOINT active_record_1
13029
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "destroy"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13031
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
13032
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
13033
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
13034
+  (0.0ms) SAVEPOINT active_record_1
13035
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" WHERE "moderations"."moderatable_id" = 1 AND "moderations"."moderatable_type" = 'Task'
13036
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
13037
+ SQL (0.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 1]]
13038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13039
+  (0.0ms) SAVEPOINT active_record_1
13040
+ SQL (0.0ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
13041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13042
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
13043
+  (0.0ms) SAVEPOINT active_record_1
13044
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13046
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
13047
+  (0.0ms) SAVEPOINT active_record_1
13048
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13050
+  (0.4ms) SAVEPOINT active_record_1
13051
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
13052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13053
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
13054
+  (0.0ms) SAVEPOINT active_record_1
13055
+ SQL (1.1ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", {:associations=>{:subtasks=>[{"created_at"=>nil, "task_id"=>1, "title"=>"Hollywood Hills", "updated_at"=>nil, "id"=>nil, "task_all_id"=>nil, "desc"=>nil}]}}], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13057
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
13058
+  (0.0ms) SAVEPOINT active_record_1
13059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13060
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
13061
+  (0.0ms) SELECT COUNT(*) FROM "subtasks" 
13062
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
13063
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
13064
+  (0.0ms) SAVEPOINT active_record_1
13065
+ SQL (0.3ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", 1], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13067
+  (0.0ms) SAVEPOINT active_record_1
13068
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
13069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13070
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
13071
+  (0.0ms) SELECT COUNT(*) FROM "subtasks" 
13072
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
13073
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
13074
+  (0.0ms) SAVEPOINT active_record_1
13075
+ SQL (0.6ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13077
+  (0.0ms) SAVEPOINT active_record_1
13078
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13080
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
13081
+  (0.1ms) SAVEPOINT active_record_1
13082
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13084
+  (0.0ms) SAVEPOINT active_record_1
13085
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
13086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13087
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
13088
+  (0.0ms) SAVEPOINT active_record_1
13089
+ SQL (0.5ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", {:associations=>{:subtasks=>[1]}}], ["created_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 00:35:18 UTC +00:00]]
13090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13091
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
13092
+  (0.0ms) SELECT COUNT(*) FROM "subtasks"
13093
+  (0.0ms) SAVEPOINT active_record_1
13094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13095
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
13096
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
13097
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
13098
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
13099
+  (0.0ms) SAVEPOINT active_record_1
13100
+  (0.1ms) UPDATE "subtasks" SET "task_id" = 1, "updated_at" = '2011-10-04 00:35:18.890495' WHERE "subtasks"."id" = 1
13101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13102
+  (0.0ms) SAVEPOINT active_record_1
13103
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
13104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13105
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
13106
+  (0.0ms) SELECT COUNT(*) FROM "subtasks"
13107
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
13108
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_moderated
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Berdajs