has_moderated 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,7 @@ module HasModerated
54
54
  def store_photo_with_moderation!
55
55
  is_moderated = self.class.respond_to?(:moderated_attributes) &&
56
56
  self.class.moderated_attributes.include?("carrierwave_photo")
57
- if self.has_moderated_updating || !is_moderated
57
+ if self.has_moderated_updating || !is_moderated || !self.photo_changed?
58
58
  store_photo_without_moderation!
59
59
  else
60
60
  self.moderations.create!({
@@ -67,7 +67,7 @@ module HasModerated
67
67
  def write_photo_identifier_with_moderation
68
68
  is_moderated = self.class.respond_to?(:moderated_attributes) &&
69
69
  self.class.moderated_attributes.include?("carrierwave_photo")
70
- if self.has_moderated_updating || !is_moderated
70
+ if self.has_moderated_updating || !is_moderated || !self.photo_changed?
71
71
  write_photo_identifier_without_moderation
72
72
  end
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module HasModerated
2
- VERSION = "0.0.28"
2
+ VERSION = "0.0.29"
3
3
  end
@@ -4,4 +4,5 @@ class Photo < ActiveRecord::Base
4
4
  has_moderated_create
5
5
  has_moderated :carrierwave_photo
6
6
  include HasModerated::CarrierWave
7
+ has_many :photo_relateds
7
8
  end
@@ -0,0 +1,3 @@
1
+ class PhotoRelated < ActiveRecord::Base
2
+ belongs_to :photo
3
+ end
Binary file
@@ -0,0 +1,10 @@
1
+ class CreatePhotoRelateds < ActiveRecord::Migration
2
+ def change
3
+ create_table :photo_relateds do |t|
4
+ t.integer :photo_id
5
+ t.string :data
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended to check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(:version => 20111018180207) do
13
+ ActiveRecord::Schema.define(:version => 20120209045206) do
14
14
 
15
15
  create_table "habtm_name_tests", :force => true do |t|
16
16
  t.string "title"
@@ -92,6 +92,13 @@ ActiveRecord::Schema.define(:version => 20111018180207) do
92
92
  t.datetime "updated_at"
93
93
  end
94
94
 
95
+ create_table "photo_relateds", :force => true do |t|
96
+ t.integer "photo_id"
97
+ t.string "data"
98
+ t.datetime "created_at"
99
+ t.datetime "updated_at"
100
+ end
101
+
95
102
  create_table "photos", :force => true do |t|
96
103
  t.string "photo"
97
104
  t.datetime "created_at"
Binary file
@@ -6618,3 +6618,470 @@ Migrating to CreateHabtmNameTests (20111018180207)
6618
6618
   (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6619
6619
   (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6620
6620
   (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6621
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6622
+  (0.1ms) select sqlite_version(*)
6623
+  (1.6ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6624
+  (1.3ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
6625
+  (1.3ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6626
+  (1.6ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
6627
+  (2.0ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6628
+  (1.8ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
6629
+  (1.9ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6630
+  (1.7ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6631
+  (1.5ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
6632
+  (1.6ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
6633
+  (1.9ms) 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) 
6634
+  (1.6ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6635
+  (1.8ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer) 
6636
+  (1.8ms) 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)
6637
+  (1.6ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime) 
6638
+  (1.8ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
6639
+  (1.6ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) 
6640
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6641
+  (0.0ms) PRAGMA index_list("schema_migrations")
6642
+  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6643
+  (0.1ms) SELECT version FROM "schema_migrations"
6644
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
6645
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
6646
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
6647
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
6648
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
6649
+  (29.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
6650
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
6651
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
6652
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
6653
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
6654
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
6655
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
6656
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
6657
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
6658
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
6659
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6660
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6661
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6662
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6663
+ Migrating to CreateTasks (20110901013205)
6664
+ Migrating to CreateSubtasks (20110901013228)
6665
+ Migrating to CreateModerations (20110901013618)
6666
+ Migrating to CreateTaskAlls (20110908025410)
6667
+ Migrating to AddTaskAllIdToSubtasks (20110908025606)
6668
+ Migrating to CreatePhotos (20111003205633)
6669
+ Migrating to CreateTaskPhotos (20111003234101)
6670
+ Migrating to CreateHookTests (20111004153147)
6671
+ Migrating to CreatePhotoHolders (20111004164509)
6672
+ Migrating to CreateHoneTests (20111008195728)
6673
+ Migrating to CreateHjoinTests (20111008195809)
6674
+ Migrating to FixJoinTable (20111009193145)
6675
+ Migrating to AddTitleToHoneTests (20111009201729)
6676
+ Migrating to CreateHmanythroughTests (20111009205517)
6677
+ Migrating to CreateHmanythroughJoins (20111009205545)
6678
+ Migrating to CreateHoneAsTests (20111018172409)
6679
+ Migrating to CreateHmanyFkTests (20111018174319)
6680
+ Migrating to CreateHabtmNameTests (20111018180207)
6681
+ Migrating to PhotoRelated (20120209044628)
6682
+  (0.0ms) select sqlite_version(*)
6683
+  (19.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120209044628')
6684
+  (0.1ms) select sqlite_version(*)
6685
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6686
+  (0.0ms) PRAGMA index_list("habtm_name_tests")
6687
+  (0.0ms) PRAGMA index_list("habtm_name_tests_tasks")
6688
+  (0.0ms) PRAGMA index_list("hjoin_tests")
6689
+  (0.0ms) PRAGMA index_list("hjoin_tests_tasks")
6690
+  (0.0ms) PRAGMA index_list("hmany_fk_tests")
6691
+  (0.0ms) PRAGMA index_list("hmanythrough_joins")
6692
+  (0.0ms) PRAGMA index_list("hmanythrough_tests")
6693
+  (0.0ms) PRAGMA index_list("hone_as_tests")
6694
+  (0.0ms) PRAGMA index_list("hone_tests")
6695
+  (0.0ms) PRAGMA index_list("hook_tests")
6696
+  (0.0ms) PRAGMA index_list("moderations")
6697
+  (0.0ms) PRAGMA index_list("photo_holders")
6698
+  (0.0ms) PRAGMA index_list("photos")
6699
+  (0.0ms) PRAGMA index_list("subtasks")
6700
+  (0.0ms) PRAGMA index_list("task_alls")
6701
+  (0.0ms) PRAGMA index_list("task_photos")
6702
+  (0.0ms) PRAGMA index_list("tasks")
6703
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6704
+  (0.1ms) select sqlite_version(*)
6705
+  (2.8ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6706
+  (1.3ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
6707
+  (1.7ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6708
+  (1.5ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
6709
+  (1.7ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6710
+  (1.2ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
6711
+  (1.4ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6712
+  (1.2ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6713
+  (1.5ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
6714
+  (1.9ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
6715
+  (1.5ms) 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) 
6716
+  (1.5ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6717
+  (2.0ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer) 
6718
+  (2.2ms) 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)
6719
+  (1.7ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime) 
6720
+  (1.7ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
6721
+  (2.3ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) 
6722
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6723
+  (0.1ms) PRAGMA index_list("schema_migrations")
6724
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6725
+  (0.1ms) SELECT version FROM "schema_migrations"
6726
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209044628')
6727
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
6728
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
6729
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
6730
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
6731
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
6732
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
6733
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
6734
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
6735
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
6736
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
6737
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
6738
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
6739
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
6740
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
6741
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6742
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6743
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6744
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
6745
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6746
+  (0.1ms) select sqlite_version(*)
6747
+  (2.7ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6748
+  (1.4ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
6749
+  (1.7ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6750
+  (1.5ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
6751
+  (1.7ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6752
+  (1.7ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
6753
+  (1.6ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6754
+  (1.9ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6755
+  (2.3ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
6756
+  (1.4ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
6757
+  (1.5ms) 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) 
6758
+  (1.5ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6759
+  (2.6ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer) 
6760
+  (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)
6761
+  (1.7ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime) 
6762
+  (1.8ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
6763
+  (1.7ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) 
6764
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6765
+  (0.0ms) PRAGMA index_list("schema_migrations")
6766
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6767
+  (0.1ms) SELECT version FROM "schema_migrations"
6768
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209044628')
6769
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
6770
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
6771
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
6772
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
6773
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
6774
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
6775
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
6776
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
6777
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
6778
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
6779
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
6780
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
6781
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
6782
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
6783
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6784
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6785
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6786
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
6787
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6788
+  (0.1ms) select sqlite_version(*)
6789
+  (2.9ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6790
+  (1.4ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
6791
+  (1.3ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6792
+  (1.4ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
6793
+  (1.2ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6794
+  (1.9ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
6795
+  (1.2ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6796
+  (1.5ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6797
+  (1.2ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
6798
+  (1.6ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
6799
+  (1.4ms) 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) 
6800
+  (1.4ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6801
+  (1.3ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer) 
6802
+  (2.0ms) 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)
6803
+  (1.4ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime) 
6804
+  (1.9ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
6805
+  (1.3ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) 
6806
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6807
+  (0.1ms) PRAGMA index_list("schema_migrations")
6808
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6809
+  (0.1ms) SELECT version FROM "schema_migrations"
6810
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209044628')
6811
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
6812
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
6813
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
6814
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
6815
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
6816
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
6817
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
6818
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
6819
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
6820
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
6821
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
6822
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
6823
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
6824
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
6825
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6826
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6827
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6828
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
6829
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6830
+  (0.1ms) select sqlite_version(*)
6831
+  (3.0ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6832
+  (1.6ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
6833
+  (1.5ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6834
+  (1.7ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
6835
+  (1.6ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6836
+  (1.9ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
6837
+  (1.7ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6838
+  (1.4ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6839
+  (1.5ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
6840
+  (1.9ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
6841
+  (1.9ms) 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) 
6842
+  (2.1ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6843
+  (2.1ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer) 
6844
+  (2.2ms) 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)
6845
+  (1.9ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime) 
6846
+  (1.8ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
6847
+  (1.9ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) 
6848
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6849
+  (0.1ms) PRAGMA index_list("schema_migrations")
6850
+  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6851
+  (0.1ms) SELECT version FROM "schema_migrations"
6852
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209044628')
6853
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
6854
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
6855
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
6856
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
6857
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
6858
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
6859
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
6860
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
6861
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
6862
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
6863
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
6864
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
6865
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
6866
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
6867
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6868
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6869
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6870
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
6871
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6872
+ Migrating to CreateTasks (20110901013205)
6873
+ Migrating to CreateSubtasks (20110901013228)
6874
+ Migrating to CreateModerations (20110901013618)
6875
+ Migrating to CreateTaskAlls (20110908025410)
6876
+ Migrating to AddTaskAllIdToSubtasks (20110908025606)
6877
+ Migrating to CreatePhotos (20111003205633)
6878
+ Migrating to CreateTaskPhotos (20111003234101)
6879
+ Migrating to CreateHookTests (20111004153147)
6880
+ Migrating to CreatePhotoHolders (20111004164509)
6881
+ Migrating to CreateHoneTests (20111008195728)
6882
+ Migrating to CreateHjoinTests (20111008195809)
6883
+ Migrating to FixJoinTable (20111009193145)
6884
+ Migrating to AddTitleToHoneTests (20111009201729)
6885
+ Migrating to CreateHmanythroughTests (20111009205517)
6886
+ Migrating to CreateHmanythroughJoins (20111009205545)
6887
+ Migrating to CreateHoneAsTests (20111018172409)
6888
+ Migrating to CreateHmanyFkTests (20111018174319)
6889
+ Migrating to CreateHabtmNameTests (20111018180207)
6890
+ Migrating to CreatePhotoRelateds (20120209045206)
6891
+  (0.0ms) select sqlite_version(*)
6892
+  (0.6ms) CREATE TABLE "photo_relateds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo_id" integer, "data" varchar(255), "created_at" datetime, "updated_at" datetime) 
6893
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120209045206')
6894
+  (0.1ms) select sqlite_version(*)
6895
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6896
+  (0.0ms) PRAGMA index_list("habtm_name_tests")
6897
+  (0.0ms) PRAGMA index_list("habtm_name_tests_tasks")
6898
+  (0.0ms) PRAGMA index_list("hjoin_tests")
6899
+  (0.0ms) PRAGMA index_list("hjoin_tests_tasks")
6900
+  (0.0ms) PRAGMA index_list("hmany_fk_tests")
6901
+  (0.0ms) PRAGMA index_list("hmanythrough_joins")
6902
+  (0.0ms) PRAGMA index_list("hmanythrough_tests")
6903
+  (0.0ms) PRAGMA index_list("hone_as_tests")
6904
+  (0.0ms) PRAGMA index_list("hone_tests")
6905
+  (0.0ms) PRAGMA index_list("hook_tests")
6906
+  (0.0ms) PRAGMA index_list("moderations")
6907
+  (0.0ms) PRAGMA index_list("photo_holders")
6908
+  (0.0ms) PRAGMA index_list("photo_relateds")
6909
+  (0.0ms) PRAGMA index_list("photos")
6910
+  (0.0ms) PRAGMA index_list("subtasks")
6911
+  (0.0ms) PRAGMA index_list("task_alls")
6912
+  (0.0ms) PRAGMA index_list("task_photos")
6913
+  (0.0ms) PRAGMA index_list("tasks")
6914
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6915
+  (0.1ms) select sqlite_version(*)
6916
+  (2.8ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6917
+  (2.5ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
6918
+  (1.3ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6919
+  (1.5ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
6920
+  (1.6ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6921
+  (1.6ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
6922
+  (1.7ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6923
+  (1.6ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6924
+  (1.7ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
6925
+  (1.7ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
6926
+  (1.7ms) 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) 
6927
+  (2.0ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6928
+  (1.8ms) CREATE TABLE "photo_relateds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo_id" integer, "data" varchar(255), "created_at" datetime, "updated_at" datetime) 
6929
+  (2.5ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
6930
+  (1.9ms) 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) 
6931
+  (1.8ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
6932
+  (2.6ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
6933
+  (1.9ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
6934
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6935
+  (0.1ms) PRAGMA index_list("schema_migrations")
6936
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6937
+  (0.1ms) SELECT version FROM "schema_migrations"
6938
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209045206')
6939
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
6940
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
6941
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
6942
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
6943
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
6944
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
6945
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
6946
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
6947
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
6948
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
6949
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
6950
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
6951
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
6952
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
6953
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6954
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6955
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6956
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
6957
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6958
+  (0.1ms) select sqlite_version(*)
6959
+  (2.7ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6960
+  (2.2ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
6961
+  (1.5ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6962
+  (1.2ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
6963
+  (1.7ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6964
+  (1.4ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
6965
+  (1.6ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
6966
+  (1.8ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6967
+  (1.6ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
6968
+  (1.4ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
6969
+  (1.7ms) 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) 
6970
+  (1.8ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
6971
+  (1.8ms) CREATE TABLE "photo_relateds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo_id" integer, "data" varchar(255), "created_at" datetime, "updated_at" datetime) 
6972
+  (1.8ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
6973
+  (2.7ms) 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) 
6974
+  (1.8ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
6975
+  (2.0ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
6976
+  (2.8ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
6977
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6978
+  (0.0ms) PRAGMA index_list("schema_migrations")
6979
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6980
+  (0.1ms) SELECT version FROM "schema_migrations"
6981
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209045206')
6982
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
6983
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
6984
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
6985
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
6986
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
6987
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
6988
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
6989
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
6990
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
6991
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
6992
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
6993
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
6994
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
6995
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
6996
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
6997
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
6998
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
6999
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
7000
+ DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from /Users/apple/rails/has_moderated/test/dummy/config/environment.rb:5)
7001
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7002
+  (0.1ms) select sqlite_version(*)
7003
+  (1.4ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7004
+  (1.5ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
7005
+  (1.4ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7006
+  (1.6ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
7007
+  (1.4ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7008
+  (1.4ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
7009
+  (1.5ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7010
+  (1.6ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
7011
+  (1.3ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
7012
+  (1.8ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
7013
+  (1.8ms) 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) 
7014
+  (2.2ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
7015
+  (2.1ms) CREATE TABLE "photo_relateds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo_id" integer, "data" varchar(255), "created_at" datetime, "updated_at" datetime) 
7016
+  (2.7ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
7017
+  (1.7ms) 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) 
7018
+  (1.9ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
7019
+  (1.7ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
7020
+  (2.4ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
7021
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7022
+  (0.0ms) PRAGMA index_list("schema_migrations")
7023
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7024
+  (0.1ms) SELECT version FROM "schema_migrations"
7025
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209045206')
7026
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
7027
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
7028
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
7029
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
7030
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
7031
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
7032
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
7033
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
7034
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
7035
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
7036
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
7037
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
7038
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
7039
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
7040
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
7041
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
7042
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
7043
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')
7044
+ DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from /Users/apple/rails/has_moderated/test/dummy/config/environment.rb:5)
7045
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7046
+  (0.1ms) select sqlite_version(*)
7047
+  (3.3ms) CREATE TABLE "habtm_name_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7048
+  (1.6ms) CREATE TABLE "habtm_name_tests_tasks" ("task_id" integer, "habtm_name_test_id" integer)
7049
+  (1.4ms) CREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7050
+  (1.5ms) CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
7051
+  (1.6ms) CREATE TABLE "hmany_fk_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "something_id" integer, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7052
+  (1.4ms) CREATE TABLE "hmanythrough_joins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hmanythrough_test_id" integer, "task_id" integer, "exdata" varchar(255), "created_at" datetime, "updated_at" datetime)
7053
+  (1.4ms) CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7054
+  (2.1ms) CREATE TABLE "hone_as_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "testable_id" integer, "testable_type" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime)
7055
+  (1.4ms) CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) 
7056
+  (1.5ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
7057
+  (1.5ms) 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) 
7058
+  (2.6ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
7059
+  (1.9ms) CREATE TABLE "photo_relateds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo_id" integer, "data" varchar(255), "created_at" datetime, "updated_at" datetime) 
7060
+  (1.7ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
7061
+  (2.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) 
7062
+  (1.8ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
7063
+  (2.7ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
7064
+  (1.8ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
7065
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7066
+  (0.0ms) PRAGMA index_list("schema_migrations")
7067
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7068
+  (0.1ms) SELECT version FROM "schema_migrations"
7069
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120209045206')
7070
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
7071
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
7072
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
7073
+  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
7074
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
7075
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
7076
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
7077
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
7078
+  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
7079
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
7080
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
7081
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
7082
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
7083
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
7084
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
7085
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018172409')
7086
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018174319')
7087
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111018180207')