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 +4 -0
- data/lib/has_moderated/carrier_wave.rb +4 -1
- data/lib/has_moderated/version.rb +1 -1
- data/test/dummy/log/development.log +19 -0
- data/test/dummy/log/test.log +378 -0
- metadata +3 -3
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
|
-
|
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
|
@@ -651,3 +651,22 @@ Migrating to CreateTaskPhotos (20111003234101)
|
|
651
651
|
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110908025410')[0m
|
652
652
|
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
|
653
653
|
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111003205633')[0m
|
654
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
655
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
656
|
+
[1m[36m (2.1ms)[0m [1mCREATE 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) [0m
|
657
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime)
|
658
|
+
[1m[36m (1.6ms)[0m [1mCREATE 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) [0m
|
659
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
|
660
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
661
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
|
662
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
663
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
664
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
665
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
666
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111003234101')[0m
|
667
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
|
668
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110901013228')[0m
|
669
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
|
670
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110908025410')[0m
|
671
|
+
[1m[35m (3.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
|
672
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111003205633')[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -12728,3 +12728,381 @@ Migrating to CreateTaskPhotos (20111003234101)
|
|
12728
12728
|
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" LIMIT 1
|
12729
12729
|
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" LIMIT 1[0m
|
12730
12730
|
[1m[35mTaskPhoto Load (0.1ms)[0m SELECT "task_photos".* FROM "task_photos" WHERE "task_photos"."task_id" = 1 LIMIT 1
|
12731
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12732
|
+
[1m[35mSQL (25.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12734
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "photos"
|
12735
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12736
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12737
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "photos" ("created_at", "photo", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12739
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12740
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12741
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12742
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "photos"
|
12743
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" LIMIT 1[0m
|
12744
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12745
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12747
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "photos" [0m
|
12748
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12749
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12750
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12751
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12752
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "photos"
|
12753
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12754
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12756
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "photos"
|
12757
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12758
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12759
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "photos" ("created_at", "photo", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12761
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12762
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12763
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12764
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" LIMIT 1
|
12765
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12766
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12768
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" LIMIT 1
|
12769
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "moderations" [0m
|
12770
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12771
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."id" = 1 LIMIT 1[0m
|
12772
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12773
|
+
[1m[36mPhoto Load (0.2ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1[0m [["id", 1]]
|
12774
|
+
[1m[35m (0.1ms)[0m UPDATE "photos" SET "photo" = 'logo_arnes.gif', "updated_at" = '2011-10-04 00:35:18.195171' WHERE "photos"."id" = 1
|
12775
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12777
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 2]]
|
12778
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12779
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" LIMIT 1[0m
|
12780
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" LIMIT 1
|
12781
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12782
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12784
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "moderations"
|
12785
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tasks" [0m
|
12786
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "task_photos"
|
12787
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12788
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12789
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12791
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12792
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12794
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12795
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 1]]
|
12796
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12797
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tasks" [0m
|
12798
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" LIMIT 1
|
12799
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" LIMIT 1[0m
|
12800
|
+
[1m[35mTaskPhoto Load (0.3ms)[0m SELECT "task_photos".* FROM "task_photos" WHERE "task_photos"."task_id" = 1 LIMIT 1
|
12801
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12802
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12804
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tasks"
|
12805
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "moderations" [0m
|
12806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12807
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12809
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12811
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12813
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12814
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12815
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12816
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "moderations"
|
12817
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tasks" [0m
|
12818
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
|
12819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12820
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12822
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12823
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12824
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12826
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12827
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 1]]
|
12828
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12829
|
+
[1m[36mTask Load (0.2ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12830
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12831
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12833
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12834
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12835
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12837
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12838
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12839
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12841
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12842
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12843
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12845
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "moderations" [0m
|
12846
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
|
12847
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12848
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
|
12849
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12850
|
+
[1m[35m (0.1ms)[0m UPDATE "tasks" SET "updated_at" = '2011-10-04 00:35:18.577697', "title" = 'Hollywood Hills' WHERE "tasks"."id" = 1
|
12851
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12852
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12853
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 5]]
|
12854
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12855
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12856
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tasks"
|
12857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12858
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12860
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12861
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12862
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12863
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12864
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tasks"
|
12865
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "moderations" [0m
|
12866
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12867
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12869
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12870
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12871
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12873
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12874
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12875
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12876
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
|
12877
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12878
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12880
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12881
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12882
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
|
12883
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12884
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tasks"
|
12885
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12886
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "moderations"
|
12887
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12888
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12890
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tasks"
|
12891
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" [0m
|
12892
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12893
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12894
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12897
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12899
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12900
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12901
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12902
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "moderations"
|
12903
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12904
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
|
12905
|
+
[1m[36mSubtask Load (0.1ms)[0m [1mSELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1[0m
|
12906
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12907
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12909
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "moderations" [0m
|
12910
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12912
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12915
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 1]]
|
12916
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12917
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "moderations" [0m
|
12918
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
|
12919
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12920
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12921
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12923
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12925
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12927
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12928
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12929
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12930
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
|
12931
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12932
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12934
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "moderations"
|
12935
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1[0m
|
12936
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12937
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1[0m
|
12938
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12939
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "tasks" SET "updated_at" = '2011-10-04 00:35:18.665338', "desc" = 'Hollywood Hills' WHERE "tasks"."id" = 1[0m
|
12940
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12941
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12942
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
|
12943
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12944
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
|
12945
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12946
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12948
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "subtasks"
|
12949
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12950
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12951
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12952
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12954
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tasks"
|
12955
|
+
[1m[36mSubtask Load (0.1ms)[0m [1mSELECT "subtasks".* FROM "subtasks" LIMIT 1[0m
|
12956
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT 1
|
12957
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
12958
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12959
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12961
|
+
[1m[36mSubtask Load (0.1ms)[0m [1mSELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1[0m
|
12962
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12963
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "subtasks" SET "task_id" = 1, "updated_at" = '2011-10-04 00:35:18.690062' WHERE "subtasks"."id" = 1[0m
|
12964
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12965
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12966
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12967
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12968
|
+
[1m[35mSubtask Load (0.1ms)[0m SELECT "subtasks".* FROM "subtasks" LIMIT 1
|
12969
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1[0m
|
12970
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" LIMIT 1
|
12971
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1[0m
|
12972
|
+
[1m[35mSubtask Load (0.1ms)[0m SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
|
12973
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12974
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12976
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "task_alls"
|
12977
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "subtasks" [0m
|
12978
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
12979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12980
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12982
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12983
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12985
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12986
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
12987
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12988
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "task_alls"
|
12989
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" [0m
|
12990
|
+
[1m[35mTaskAll Load (0.1ms)[0m SELECT "task_alls".* FROM "task_alls" LIMIT 1
|
12991
|
+
[1m[36mTaskAll Load (0.1ms)[0m [1mSELECT "task_alls".* FROM "task_alls" LIMIT 1[0m
|
12992
|
+
[1m[35mSubtask Load (0.1ms)[0m SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_all_id" = 1 LIMIT 1
|
12993
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12994
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12996
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "subtasks"
|
12997
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12998
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12999
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13000
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13002
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tasks"
|
13003
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "subtasks"[0m
|
13004
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "subtasks"
|
13005
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
13006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13007
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13009
|
+
[1m[36mSubtask Load (0.1ms)[0m [1mSELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1[0m
|
13010
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13011
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 1]]
|
13012
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13013
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" LIMIT 1[0m
|
13014
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
|
13015
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" [0m
|
13016
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13017
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13019
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1[0m
|
13020
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
13021
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13023
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13024
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
|
13025
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13026
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tasks"
|
13027
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" LIMIT 1[0m
|
13028
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13029
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13031
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tasks" [0m
|
13032
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
13033
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1[0m
|
13034
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13035
|
+
[1m[36mModeration Load (0.1ms)[0m [1mSELECT "moderations".* FROM "moderations" WHERE "moderations"."moderatable_id" = 1 AND "moderations"."moderatable_type" = 'Task'[0m
|
13036
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
|
13037
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "tasks" WHERE "tasks"."id" = ?[0m [["id", 1]]
|
13038
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13039
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13040
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
|
13041
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13042
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tasks"
|
13043
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13044
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13046
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
13047
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13048
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13050
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
13051
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 1]]
|
13052
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13053
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" LIMIT 1[0m
|
13054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13055
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13057
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1[0m
|
13058
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13059
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13060
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
|
13061
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "subtasks" [0m
|
13062
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
13063
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1[0m
|
13064
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13065
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13067
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13068
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
|
13069
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13070
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
|
13071
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "subtasks" [0m
|
13072
|
+
[1m[35mTask Load (0.1ms)[0m SELECT "tasks".* FROM "tasks" LIMIT 1
|
13073
|
+
[1m[36mSubtask Load (0.1ms)[0m [1mSELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1[0m
|
13074
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13075
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13077
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13078
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13080
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
13081
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
13082
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13084
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13085
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 1]]
|
13086
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13087
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" LIMIT 1[0m
|
13088
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13089
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13091
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1[0m
|
13092
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "subtasks"
|
13093
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13094
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13095
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1[0m
|
13096
|
+
[1m[35mModeration Load (0.1ms)[0m SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
|
13097
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1[0m
|
13098
|
+
[1m[35mSubtask Load (0.1ms)[0m SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
|
13099
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13100
|
+
[1m[35m (0.1ms)[0m UPDATE "subtasks" SET "task_id" = 1, "updated_at" = '2011-10-04 00:35:18.890495' WHERE "subtasks"."id" = 1
|
13101
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13102
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13103
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "moderations" WHERE "moderations"."id" = ?[0m [["id", 2]]
|
13104
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13105
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1[0m
|
13106
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "subtasks"
|
13107
|
+
[1m[36mTask Load (0.1ms)[0m [1mSELECT "tasks".* FROM "tasks" LIMIT 1[0m
|
13108
|
+
[1m[35mSubtask Load (0.1ms)[0m 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:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan Berdajs
|