has_moderated 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/has_moderated/moderation_model.rb +6 -1
- data/lib/has_moderated/version.rb +1 -1
- data/test/dummy/app/models/hone_as_test.rb +3 -0
- data/test/dummy/app/models/task.rb +2 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20111018172409_create_hone_as_tests.rb +11 -0
- data/test/dummy/db/schema.rb +9 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +142 -0
- data/test/dummy/log/test.log +2165 -0
- data/test/dummy/spec/factories/hone_as_tests.rb +9 -0
- data/test/dummy/spec/models/hone_as_test_spec.rb +36 -0
- metadata +12 -4
@@ -32,7 +32,12 @@ module HasModerated
|
|
32
32
|
if assoc.macro == :has_and_belongs_to_many || !assoc.options[:through].blank?
|
33
33
|
arec.send(rec.class.to_s.underscore.pluralize) << rec
|
34
34
|
elsif assoc.macro == :has_many || assoc.macro == :has_one
|
35
|
-
|
35
|
+
field = if assoc.options[:as]
|
36
|
+
assoc.options[:as].to_s
|
37
|
+
else
|
38
|
+
rec.class.to_s.underscore
|
39
|
+
end
|
40
|
+
arec.send(field + "=", rec)
|
36
41
|
#fk = if assoc.respond_to?(:foreign_key)
|
37
42
|
# assoc.foreign_key
|
38
43
|
#else # Rails < v3.1
|
@@ -4,10 +4,11 @@ class Task < ActiveRecord::Base
|
|
4
4
|
has_many :task_photos
|
5
5
|
has_and_belongs_to_many :hjoin_tests
|
6
6
|
has_one :hone_test
|
7
|
+
has_one :hone_as_test, :as => :testable
|
7
8
|
has_many :hmanythrough_join
|
8
9
|
has_many :hmanythrough_test, :through => :hmanythrough_join
|
9
10
|
has_moderated :title, :desc
|
10
|
-
has_moderated_create :with_associations => [:subtasks, :task_photos, :hjoin_tests, :hone_test, :hmanythrough_test, :hmanythrough_join]
|
11
|
+
has_moderated_create :with_associations => [:subtasks, :task_photos, :hjoin_tests, :hone_test, :hmanythrough_test, :hmanythrough_join, :hone_as_test]
|
11
12
|
has_moderated_association :all
|
12
13
|
has_moderated_destroy
|
13
14
|
end
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -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 =>
|
13
|
+
ActiveRecord::Schema.define(:version => 20111018172409) do
|
14
14
|
|
15
15
|
create_table "hjoin_tests", :force => true do |t|
|
16
16
|
t.string "title"
|
@@ -37,6 +37,14 @@ ActiveRecord::Schema.define(:version => 20111009205545) do
|
|
37
37
|
t.datetime "updated_at"
|
38
38
|
end
|
39
39
|
|
40
|
+
create_table "hone_as_tests", :force => true do |t|
|
41
|
+
t.integer "testable_id"
|
42
|
+
t.string "testable_type"
|
43
|
+
t.string "title"
|
44
|
+
t.datetime "created_at"
|
45
|
+
t.datetime "updated_at"
|
46
|
+
end
|
47
|
+
|
40
48
|
create_table "hone_tests", :force => true do |t|
|
41
49
|
t.integer "task_id"
|
42
50
|
t.datetime "created_at"
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -6049,3 +6049,145 @@ Migrating to CreateHmanythroughJoins (20111009205545)
|
|
6049
6049
|
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
|
6050
6050
|
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111009201729')[0m
|
6051
6051
|
[1m[35m (2.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
|
6052
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6053
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6054
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6055
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
|
6056
|
+
[1m[36m (1.6ms)[0m [1mCREATE 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) [0m
|
6057
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6058
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255)) [0m
|
6059
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6060
|
+
[1m[36m (1.7ms)[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
|
6061
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6062
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer) [0m
|
6063
|
+
[1m[35m (1.6ms)[0m 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)
|
6064
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6065
|
+
[1m[35m (2.5ms)[0m CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime)
|
6066
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6067
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
6068
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
6069
|
+
[1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6070
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6071
|
+
[1m[35m (2.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
|
6072
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110901013205')[0m
|
6073
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
|
6074
|
+
[1m[36m (2.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110901013618')[0m
|
6075
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
|
6076
|
+
[1m[36m (2.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110908025606')[0m
|
6077
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
|
6078
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111003234101')[0m
|
6079
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
|
6080
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111004164509')[0m
|
6081
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111008195728')
|
6082
|
+
[1m[36m (2.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111008195809')[0m
|
6083
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009193145')
|
6084
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111009201729')[0m
|
6085
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009205517')
|
6086
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6087
|
+
Migrating to CreateTasks (20110901013205)
|
6088
|
+
Migrating to CreateSubtasks (20110901013228)
|
6089
|
+
Migrating to CreateModerations (20110901013618)
|
6090
|
+
Migrating to CreateTaskAlls (20110908025410)
|
6091
|
+
Migrating to AddTaskAllIdToSubtasks (20110908025606)
|
6092
|
+
Migrating to CreatePhotos (20111003205633)
|
6093
|
+
Migrating to CreateTaskPhotos (20111003234101)
|
6094
|
+
Migrating to CreateHookTests (20111004153147)
|
6095
|
+
Migrating to CreatePhotoHolders (20111004164509)
|
6096
|
+
Migrating to CreateHoneTests (20111008195728)
|
6097
|
+
Migrating to CreateHjoinTests (20111008195809)
|
6098
|
+
Migrating to FixJoinTable (20111009193145)
|
6099
|
+
Migrating to AddTitleToHoneTests (20111009201729)
|
6100
|
+
Migrating to CreateHmanythroughTests (20111009205517)
|
6101
|
+
Migrating to CreateHmanythroughJoins (20111009205545)
|
6102
|
+
Migrating to CreateHoneAsTests (20111018172409)
|
6103
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
6104
|
+
[1m[36m (0.6ms)[0m [1mCREATE 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) [0m
|
6105
|
+
[1m[35m (16.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111018172409')
|
6106
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
6107
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
6108
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("hjoin_tests")[0m
|
6109
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("hjoin_tests_tasks")
|
6110
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("hmanythrough_joins")[0m
|
6111
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("hmanythrough_tests")
|
6112
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("hone_as_tests")[0m
|
6113
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("hone_tests")
|
6114
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("hook_tests")[0m
|
6115
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("moderations")
|
6116
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("photo_holders")[0m
|
6117
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("photos")
|
6118
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("subtasks")[0m
|
6119
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("task_alls")
|
6120
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("task_photos")[0m
|
6121
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("tasks")
|
6122
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6123
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6124
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6125
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
|
6126
|
+
[1m[36m (1.7ms)[0m [1mCREATE 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) [0m
|
6127
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6128
|
+
[1m[36m (1.4ms)[0m [1mCREATE 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) [0m
|
6129
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255))
|
6130
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6131
|
+
[1m[35m (1.5ms)[0m 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)
|
6132
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6133
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
|
6134
|
+
[1m[36m (1.7ms)[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
|
6135
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6136
|
+
[1m[36m (2.3ms)[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
|
6137
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6138
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
6139
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
6140
|
+
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6141
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6142
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111018172409')[0m
|
6143
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
|
6144
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110901013228')[0m
|
6145
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
|
6146
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110908025410')[0m
|
6147
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
|
6148
|
+
[1m[36m (2.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111003205633')[0m
|
6149
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
|
6150
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111004153147')[0m
|
6151
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
|
6152
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111008195728')[0m
|
6153
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
|
6154
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111009193145')[0m
|
6155
|
+
[1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
|
6156
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111009205517')[0m
|
6157
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
|
6158
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6159
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6160
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "hjoin_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6161
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "hjoin_tests_tasks" ("task_id" integer, "hjoin_test_id" integer)
|
6162
|
+
[1m[36m (1.5ms)[0m [1mCREATE 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) [0m
|
6163
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "hmanythrough_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6164
|
+
[1m[36m (1.7ms)[0m [1mCREATE 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) [0m
|
6165
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "hone_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "created_at" datetime, "updated_at" datetime, "title" varchar(255))
|
6166
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6167
|
+
[1m[35m (1.4ms)[0m 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)
|
6168
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
6169
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
|
6170
|
+
[1m[36m (1.5ms)[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
|
6171
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
|
6172
|
+
[1m[36m (1.8ms)[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
|
6173
|
+
[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)
|
6174
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
6175
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
6176
|
+
[1m[36m (2.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6177
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6178
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111018172409')[0m
|
6179
|
+
[1m[35m (2.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
|
6180
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110901013228')[0m
|
6181
|
+
[1m[35m (2.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
|
6182
|
+
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20110908025410')[0m
|
6183
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
|
6184
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111003205633')[0m
|
6185
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
|
6186
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111004153147')[0m
|
6187
|
+
[1m[35m (2.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
|
6188
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111008195728')[0m
|
6189
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111008195809')
|
6190
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111009193145')[0m
|
6191
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009201729')
|
6192
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111009205517')[0m
|
6193
|
+
[1m[35m (2.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111009205545')
|