has_moderated 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module HasModerated
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  class Photo < ActiveRecord::Base
2
+ belongs_to :photo_holder
2
3
  mount_uploader :photo, GenericUploader
3
4
  has_moderated_create
4
5
  has_moderated :photo
@@ -0,0 +1,4 @@
1
+ class PhotoHolder < ActiveRecord::Base
2
+ has_many :photos
3
+ accepts_nested_attributes_for :photos
4
+ end
Binary file
@@ -0,0 +1,10 @@
1
+ class CreatePhotoHolders < ActiveRecord::Migration
2
+ def change
3
+ create_table :photo_holders do |t|
4
+ t.string :title
5
+
6
+ t.timestamps
7
+ end
8
+ add_column :photos, :photo_holder_id, :integer
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 => 20111004153147) do
13
+ ActiveRecord::Schema.define(:version => 20111004164509) do
14
14
 
15
15
  create_table "hook_tests", :force => true do |t|
16
16
  t.string "title"
@@ -28,10 +28,17 @@ ActiveRecord::Schema.define(:version => 20111004153147) do
28
28
  t.datetime "updated_at"
29
29
  end
30
30
 
31
+ create_table "photo_holders", :force => true do |t|
32
+ t.string "title"
33
+ t.datetime "created_at"
34
+ t.datetime "updated_at"
35
+ end
36
+
31
37
  create_table "photos", :force => true do |t|
32
38
  t.string "photo"
33
39
  t.datetime "created_at"
34
40
  t.datetime "updated_at"
41
+ t.integer "photo_holder_id"
35
42
  end
36
43
 
37
44
  create_table "subtasks", :force => true do |t|
Binary file
@@ -992,3 +992,253 @@ Migrating to CreateHookTests (20111004153147)
992
992
   (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
993
993
   (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
994
994
   (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
995
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
996
+  (0.1ms) select sqlite_version(*)
997
+  (2.6ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
998
+  (1.3ms) 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)
999
+  (1.6ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1000
+  (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)
1001
+  (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) 
1002
+  (1.5ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
1003
+  (1.2ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) 
1004
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1005
+  (0.1ms) PRAGMA index_list("schema_migrations")
1006
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1007
+  (0.1ms) SELECT version FROM "schema_migrations"
1008
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1009
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1010
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1011
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1012
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1013
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1014
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1015
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1016
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1017
+  (0.1ms) select sqlite_version(*)
1018
+  (1.3ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1019
+  (1.2ms) 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)
1020
+  (25.9ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1021
+  (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)
1022
+  (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) 
1023
+  (2.4ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
1024
+  (2.4ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) 
1025
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1026
+  (0.1ms) PRAGMA index_list("schema_migrations")
1027
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1028
+  (0.1ms) SELECT version FROM "schema_migrations"
1029
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1030
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1031
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1032
+  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1033
+  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1034
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1035
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1036
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1037
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1038
+ Migrating to CreateTasks (20110901013205)
1039
+ Migrating to CreateSubtasks (20110901013228)
1040
+ Migrating to CreateModerations (20110901013618)
1041
+ Migrating to CreateTaskAlls (20110908025410)
1042
+ Migrating to AddTaskAllIdToSubtasks (20110908025606)
1043
+ Migrating to CreatePhotos (20111003205633)
1044
+ Migrating to CreateTaskPhotos (20111003234101)
1045
+ Migrating to CreateHookTests (20111004153147)
1046
+ Migrating to CreatePhotoHolders (20111004164509)
1047
+  (0.1ms) select sqlite_version(*)
1048
+  (0.5ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1049
+  (0.2ms) ALTER TABLE "photos" ADD "photo_holder_id" integer
1050
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111004164509')
1051
+  (0.1ms) select sqlite_version(*)
1052
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1053
+  (0.0ms) PRAGMA index_list("hook_tests")
1054
+  (0.0ms) PRAGMA index_list("moderations")
1055
+  (0.0ms) PRAGMA index_list("photo_holders")
1056
+  (0.0ms) PRAGMA index_list("photos")
1057
+  (0.0ms) PRAGMA index_list("subtasks")
1058
+  (0.0ms) PRAGMA index_list("task_alls")
1059
+  (0.0ms) PRAGMA index_list("task_photos")
1060
+  (0.0ms) PRAGMA index_list("tasks")
1061
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1062
+  (0.1ms) select sqlite_version(*)
1063
+  (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) 
1064
+  (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)
1065
+  (1.4ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1066
+  (2.3ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
1067
+  (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) 
1068
+  (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)
1069
+  (1.5ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
1070
+  (1.8ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1071
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1072
+  (0.0ms) PRAGMA index_list("schema_migrations")
1073
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1074
+  (0.1ms) SELECT version FROM "schema_migrations"
1075
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1076
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1077
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1078
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1079
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1080
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1081
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1082
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1083
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1084
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1085
+  (0.1ms) select sqlite_version(*)
1086
+  (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) 
1087
+  (1.3ms) 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)
1088
+  (2.4ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1089
+  (1.6ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
1090
+  (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) 
1091
+  (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)
1092
+  (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) 
1093
+  (1.9ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1094
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1095
+  (0.0ms) PRAGMA index_list("schema_migrations")
1096
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1097
+  (0.1ms) SELECT version FROM "schema_migrations"
1098
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1099
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1100
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1101
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1102
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1103
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1104
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1105
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1106
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1107
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1108
+  (0.1ms) select sqlite_version(*)
1109
+  (2.8ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1110
+  (1.3ms) 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)
1111
+  (1.4ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1112
+  (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)
1113
+  (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) 
1114
+  (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)
1115
+  (1.2ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
1116
+  (1.6ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1117
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1118
+  (0.0ms) PRAGMA index_list("schema_migrations")
1119
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1120
+  (0.1ms) SELECT version FROM "schema_migrations"
1121
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1122
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1123
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1124
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1125
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1126
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1127
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1128
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1129
+  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1130
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1131
+  (0.1ms) select sqlite_version(*)
1132
+  (3.4ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1133
+  (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)
1134
+  (1.3ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1135
+  (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)
1136
+  (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) 
1137
+  (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)
1138
+  (1.6ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
1139
+  (1.6ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1140
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1141
+  (0.1ms) PRAGMA index_list("schema_migrations")
1142
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1143
+  (0.1ms) SELECT version FROM "schema_migrations"
1144
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1145
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1146
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1147
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1148
+  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1149
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1150
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1151
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1152
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1153
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1154
+  (0.1ms) select sqlite_version(*)
1155
+  (2.7ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1156
+  (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)
1157
+  (1.6ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1158
+  (1.6ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
1159
+  (1.5ms) 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) 
1160
+  (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)
1161
+  (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) 
1162
+  (1.5ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1163
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1164
+  (0.1ms) PRAGMA index_list("schema_migrations")
1165
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1166
+  (0.1ms) SELECT version FROM "schema_migrations"
1167
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1168
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1169
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1170
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1171
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1172
+  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1173
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1174
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1175
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1176
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1177
+  (0.1ms) select sqlite_version(*)
1178
+  (2.8ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1179
+  (1.6ms) 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)
1180
+  (1.4ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1181
+  (1.2ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
1182
+  (2.4ms) 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) 
1183
+  (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)
1184
+  (1.6ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
1185
+  (1.3ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1186
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1187
+  (0.0ms) PRAGMA index_list("schema_migrations")
1188
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1189
+  (0.1ms) SELECT version FROM "schema_migrations"
1190
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1191
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1192
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1193
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1194
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1195
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1196
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1197
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1198
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1199
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1200
+  (0.1ms) select sqlite_version(*)
1201
+  (2.9ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1202
+  (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)
1203
+  (3.6ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1204
+  (1.4ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
1205
+  (1.4ms) 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) 
1206
+  (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)
1207
+  (1.5ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
1208
+  (1.4ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1209
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1210
+  (0.0ms) PRAGMA index_list("schema_migrations")
1211
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1212
+  (0.1ms) SELECT version FROM "schema_migrations"
1213
+  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1214
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1215
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1216
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1217
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1218
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1219
+  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1220
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1221
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1222
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1223
+  (0.1ms) select sqlite_version(*)
1224
+  (2.7ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1225
+  (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)
1226
+  (1.4ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1227
+  (1.5ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
1228
+  (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) 
1229
+  (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)
1230
+  (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) 
1231
+  (1.6ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1232
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1233
+  (0.0ms) PRAGMA index_list("schema_migrations")
1234
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1235
+  (0.1ms) SELECT version FROM "schema_migrations"
1236
+  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1237
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1238
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1239
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1240
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1241
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1242
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1243
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1244
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')