inkwell 1.0.5 → 1.1.1
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/app/models/inkwell/blog_item.rb +1 -1
- data/app/models/inkwell/comment.rb +22 -24
- data/app/models/inkwell/favorite_item.rb +1 -2
- data/app/models/inkwell/timeline_item.rb +1 -2
- data/db/migrate/20130202130030_change_is_comment_to_item_type.rb +18 -0
- data/db/migrate/20130202130040_add_owner_type_to_lines.rb +16 -0
- data/db/migrate/20130212130858_refactor_comment_table.rb +7 -0
- data/db/migrate/20130212130868_rename_parent_id_to_parent_comment_id_in_comment_table.rb +5 -0
- data/lib/acts_as_inkwell_community/base.rb +16 -16
- data/lib/acts_as_inkwell_post/base.rb +15 -14
- data/lib/acts_as_inkwell_user/base.rb +41 -34
- data/lib/common/base.rb +28 -4
- data/lib/inkwell/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130210231424_change_is_comment_to_item_type.inkwell.rb +19 -0
- data/test/dummy/db/migrate/20130212130848_add_owner_type_to_lines.inkwell.rb +17 -0
- data/test/dummy/db/migrate/20130213101736_refactor_comment_table.inkwell.rb +8 -0
- data/test/dummy/db/migrate/20130213121414_rename_parent_id_to_parent_comment_id_in_comment_table.inkwell.rb +6 -0
- data/test/dummy/db/schema.rb +14 -11
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +699 -0
- data/test/dummy/log/test.log +0 -0
- data/test/dummy/spec/functional/blogline_spec.rb +7 -7
- data/test/dummy/spec/functional/comments_spec.rb +129 -132
- data/test/dummy/spec/functional/community_spec.rb +119 -120
- data/test/dummy/spec/functional/favorite_spec.rb +27 -27
- data/test/dummy/spec/functional/following_spec.rb +26 -26
- data/test/dummy/spec/functional/reblog_spec.rb +32 -32
- data/test/dummy/spec/functional/timeline_spec.rb +1 -1
- data/test/dummy_without_community/db/development.sqlite3 +0 -0
- data/test/dummy_without_community/db/migrate/20130213115833_change_is_comment_to_item_type.inkwell.rb +19 -0
- data/test/dummy_without_community/db/migrate/20130213115834_add_owner_type_to_lines.inkwell.rb +17 -0
- data/test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb +8 -0
- data/test/dummy_without_community/db/schema.rb +13 -10
- data/test/dummy_without_community/db/test.sqlite3 +0 -0
- data/test/dummy_without_community/log/development.log +111 -0
- data/test/dummy_without_community/log/test.log +11393 -0
- data/test/dummy_without_community/spec/functional/blogline_spec.rb +7 -7
- data/test/dummy_without_community/spec/functional/comments_spec.rb +128 -131
- data/test/dummy_without_community/spec/functional/favorite_spec.rb +27 -27
- data/test/dummy_without_community/spec/functional/following_spec.rb +26 -26
- data/test/dummy_without_community/spec/functional/reblog_spec.rb +32 -32
- data/test/dummy_without_community/spec/functional/timeline_spec.rb +1 -1
- metadata +32 -14
data/lib/common/base.rb
CHANGED
@@ -1,16 +1,28 @@
|
|
1
1
|
module Inkwell
|
2
2
|
module Common
|
3
|
-
def
|
3
|
+
def get_item_type(obj)
|
4
4
|
post_class = Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize
|
5
5
|
case obj
|
6
6
|
when ::Inkwell::Comment
|
7
|
-
|
7
|
+
result = ::Inkwell::Constants::ItemTypes::COMMENT
|
8
8
|
when post_class
|
9
|
-
|
9
|
+
result = ::Inkwell::Constants::ItemTypes::POST
|
10
10
|
else
|
11
11
|
raise "obj should be Comment or #{post_class.class}"
|
12
12
|
end
|
13
|
-
|
13
|
+
result
|
14
|
+
end
|
15
|
+
|
16
|
+
def get_class_for_item_type(type)
|
17
|
+
post_class = Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize
|
18
|
+
case type
|
19
|
+
when ::Inkwell::Constants::ItemTypes::COMMENT
|
20
|
+
result = ::Inkwell::Comment
|
21
|
+
when ::Inkwell::Constants::ItemTypes::POST
|
22
|
+
result = post_class
|
23
|
+
else raise "obj type #{type} is unknown"
|
24
|
+
end
|
25
|
+
result
|
14
26
|
end
|
15
27
|
|
16
28
|
def check_user(obj)
|
@@ -23,4 +35,16 @@ module Inkwell
|
|
23
35
|
raise "post should be a #{user_class.to_s}" unless obj.is_a? post_class
|
24
36
|
end
|
25
37
|
end
|
38
|
+
|
39
|
+
module Constants
|
40
|
+
module ItemTypes
|
41
|
+
POST = 'p'
|
42
|
+
COMMENT = 'c'
|
43
|
+
end
|
44
|
+
|
45
|
+
module OwnerTypes
|
46
|
+
USER = 'u'
|
47
|
+
COMMUNITY = 'c'
|
48
|
+
end
|
49
|
+
end
|
26
50
|
end
|
data/lib/inkwell/version.rb
CHANGED
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# This migration comes from inkwell (originally 20130202130030)
|
2
|
+
class ChangeIsCommentToItemType < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
add_column :inkwell_blog_items, :item_type, :string
|
5
|
+
::Inkwell::BlogItem.where(:is_comment => true).update_all(:item_type => 'c')
|
6
|
+
::Inkwell::BlogItem.where(:is_comment => false).update_all(:item_type => 'p')
|
7
|
+
remove_column :inkwell_blog_items, :is_comment
|
8
|
+
|
9
|
+
add_column :inkwell_favorite_items, :item_type, :string
|
10
|
+
::Inkwell::FavoriteItem.where(:is_comment => true).update_all(:item_type => 'c')
|
11
|
+
::Inkwell::FavoriteItem.where(:is_comment => false).update_all(:item_type => 'p')
|
12
|
+
remove_column :inkwell_favorite_items, :is_comment
|
13
|
+
|
14
|
+
add_column :inkwell_timeline_items, :item_type, :string
|
15
|
+
::Inkwell::TimelineItem.where(:is_comment => true).update_all(:item_type => 'c')
|
16
|
+
::Inkwell::TimelineItem.where(:is_comment => false).update_all(:item_type => 'p')
|
17
|
+
remove_column :inkwell_timeline_items, :is_comment
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This migration comes from inkwell (originally 20130202130040)
|
2
|
+
class AddOwnerTypeToLines < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
add_column :inkwell_blog_items, :owner_type, :string
|
5
|
+
::Inkwell::BlogItem.where(:is_owner_user => true).update_all(:owner_type => 'u')
|
6
|
+
::Inkwell::BlogItem.where(:is_owner_user => false).update_all(:owner_type => 'c')
|
7
|
+
remove_column :inkwell_blog_items, :is_owner_user
|
8
|
+
|
9
|
+
add_column :inkwell_favorite_items, :owner_type, :string
|
10
|
+
::Inkwell::FavoriteItem.update_all(:owner_type => 'u')
|
11
|
+
rename_column :inkwell_favorite_items, "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id", :owner_id
|
12
|
+
|
13
|
+
add_column :inkwell_timeline_items, :owner_type, :string
|
14
|
+
::Inkwell::TimelineItem.update_all(:owner_type => 'u')
|
15
|
+
rename_column :inkwell_timeline_items, "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id", :owner_id
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# This migration comes from inkwell (originally 20130212130858)
|
2
|
+
class RefactorCommentTable < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
rename_column :inkwell_comments, "#{::Inkwell::Engine::config.post_table.to_s.singularize}_id", :topmost_obj_id
|
5
|
+
add_column :inkwell_comments, :topmost_obj_type, :string
|
6
|
+
::Inkwell::Comment.update_all :topmost_obj_type => 'p'
|
7
|
+
end
|
8
|
+
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20130213121414) do
|
15
15
|
|
16
16
|
create_table "communities", :force => true do |t|
|
17
17
|
t.string "name"
|
@@ -25,42 +25,45 @@ ActiveRecord::Schema.define(:version => 20130208134955) do
|
|
25
25
|
create_table "inkwell_blog_items", :force => true do |t|
|
26
26
|
t.integer "item_id"
|
27
27
|
t.boolean "is_reblog"
|
28
|
-
t.
|
29
|
-
t.datetime "
|
30
|
-
t.datetime "updated_at", :null => false
|
28
|
+
t.datetime "created_at", :null => false
|
29
|
+
t.datetime "updated_at", :null => false
|
31
30
|
t.integer "owner_id"
|
32
|
-
t.
|
31
|
+
t.string "item_type"
|
32
|
+
t.string "owner_type"
|
33
33
|
end
|
34
34
|
|
35
35
|
create_table "inkwell_comments", :force => true do |t|
|
36
36
|
t.integer "user_id"
|
37
37
|
t.text "body"
|
38
|
-
t.integer "
|
39
|
-
t.integer "
|
38
|
+
t.integer "parent_comment_id"
|
39
|
+
t.integer "topmost_obj_id"
|
40
40
|
t.text "upper_comments_tree"
|
41
41
|
t.text "users_ids_who_favorite_it", :default => "[]"
|
42
42
|
t.text "users_ids_who_comment_it", :default => "[]"
|
43
43
|
t.text "users_ids_who_reblog_it", :default => "[]"
|
44
44
|
t.datetime "created_at", :null => false
|
45
45
|
t.datetime "updated_at", :null => false
|
46
|
+
t.string "topmost_obj_type"
|
46
47
|
end
|
47
48
|
|
48
49
|
create_table "inkwell_favorite_items", :force => true do |t|
|
49
50
|
t.integer "item_id"
|
50
|
-
t.integer "
|
51
|
-
t.boolean "is_comment"
|
51
|
+
t.integer "owner_id"
|
52
52
|
t.datetime "created_at", :null => false
|
53
53
|
t.datetime "updated_at", :null => false
|
54
|
+
t.string "item_type"
|
55
|
+
t.string "owner_type"
|
54
56
|
end
|
55
57
|
|
56
58
|
create_table "inkwell_timeline_items", :force => true do |t|
|
57
59
|
t.integer "item_id"
|
58
|
-
t.integer "
|
60
|
+
t.integer "owner_id"
|
59
61
|
t.text "from_source", :default => "[]"
|
60
62
|
t.boolean "has_many_sources", :default => false
|
61
|
-
t.boolean "is_comment"
|
62
63
|
t.datetime "created_at", :null => false
|
63
64
|
t.datetime "updated_at", :null => false
|
65
|
+
t.string "item_type"
|
66
|
+
t.string "owner_type"
|
64
67
|
end
|
65
68
|
|
66
69
|
create_table "posts", :force => true do |t|
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -2200,3 +2200,702 @@ Connecting to database specified by database.yml
|
|
2200
2200
|
[1m[36m (6.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134953')[0m
|
2201
2201
|
[1m[35m (5.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
|
2202
2202
|
[1m[36m (5.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202111750')[0m
|
2203
|
+
Connecting to database specified by database.yml
|
2204
|
+
Connecting to database specified by database.yml
|
2205
|
+
Connecting to database specified by database.yml
|
2206
|
+
Connecting to database specified by database.yml
|
2207
|
+
Connecting to database specified by database.yml
|
2208
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2209
|
+
Migrating to CreatePosts (20121202111750)
|
2210
|
+
Migrating to CreateUsers (20121202112556)
|
2211
|
+
Migrating to CreateCommunities (20130201155147)
|
2212
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2213
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2214
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2215
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2216
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2217
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2218
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2219
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2220
|
+
Migrating to ChangeIsCommentToItemType (20130210220752)
|
2221
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2223
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2224
|
+
Connecting to database specified by database.yml
|
2225
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2226
|
+
Migrating to CreatePosts (20121202111750)
|
2227
|
+
Migrating to CreateUsers (20121202112556)
|
2228
|
+
Migrating to CreateCommunities (20130201155147)
|
2229
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2230
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2231
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2232
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2233
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2234
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2235
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2236
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2237
|
+
Migrating to ChangeIsCommentToItemType (20130210220752)
|
2238
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2241
|
+
Connecting to database specified by database.yml
|
2242
|
+
[1m[36m (0.0ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2243
|
+
Migrating to CreatePosts (20121202111750)
|
2244
|
+
Migrating to CreateUsers (20121202112556)
|
2245
|
+
Migrating to CreateCommunities (20130201155147)
|
2246
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2247
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2248
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2249
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2250
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2251
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2252
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2253
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2254
|
+
Migrating to ChangeIsCommentToItemType (20130210221020)
|
2255
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2257
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)
|
2258
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'[0m
|
2259
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'
|
2260
|
+
[1m[36m (17.3ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255)) [0m
|
2261
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_blog_items"
|
2262
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "altered_inkwell_blog_items" ("id","item_id","is_reblog","is_comment","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (1, 1, NULL, 't', '2013-02-10 17:20:21.781392', '2013-02-10 17:20:21.781392', NULL, NULL, 'c')[0m
|
2263
|
+
[1m[35m (0.0ms)[0m INSERT INTO "altered_inkwell_blog_items" ("id","item_id","is_reblog","is_comment","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (2, 1, NULL, 'f', '2013-02-10 17:20:26.873137', '2013-02-10 17:20:26.873137', NULL, NULL, 'p')
|
2264
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_blog_items"[0m
|
2265
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))
|
2266
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_blog_items"[0m
|
2267
|
+
[1m[35m (0.0ms)[0m INSERT INTO "inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (1, 1, NULL, '2013-02-10 17:20:21.781392', '2013-02-10 17:20:21.781392', NULL, NULL, 'c')
|
2268
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","is_owner_user","item_type") VALUES (2, 1, NULL, '2013-02-10 17:20:26.873137', '2013-02-10 17:20:26.873137', NULL, NULL, 'p')[0m
|
2269
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_blog_items"
|
2270
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130210221020')[0m
|
2271
|
+
[1m[35m (33.5ms)[0m commit transaction
|
2272
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2273
|
+
Connecting to database specified by database.yml
|
2274
|
+
Connecting to database specified by database.yml
|
2275
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2276
|
+
Connecting to database specified by database.yml
|
2277
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2278
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2279
|
+
[1m[36m (16.5ms)[0m [1mCREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer) [0m
|
2280
|
+
[1m[35m (3.6ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))
|
2281
|
+
[1m[36m (5.1ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2282
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2283
|
+
[1m[36m (6.3ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2284
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')
|
2285
|
+
[1m[36m (7.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') [0m
|
2286
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2287
|
+
[1m[36m (5.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2288
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
2289
|
+
[1m[36m (4.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130210221020')[0m
|
2290
|
+
[1m[35m (4.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
|
2291
|
+
[1m[36m (4.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
|
2292
|
+
[1m[35m (3.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
|
2293
|
+
[1m[36m (4.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
|
2294
|
+
[1m[35m (3.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
|
2295
|
+
[1m[36m (4.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134954')[0m
|
2296
|
+
[1m[35m (3.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
|
2297
|
+
[1m[36m (3.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134950')[0m
|
2298
|
+
[1m[35m (3.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
|
2299
|
+
[1m[36m (3.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
|
2300
|
+
[1m[35m (3.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
|
2301
|
+
Connecting to database specified by database.yml
|
2302
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2303
|
+
[1m[35m (348.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2304
|
+
[1m[36m (6.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2305
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
2306
|
+
Migrating to CreatePosts (20121202111750)
|
2307
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2308
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2309
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
|
2310
|
+
[1m[35m (8.2ms)[0m commit transaction
|
2311
|
+
Migrating to CreateUsers (20121202112556)
|
2312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2313
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2314
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
|
2315
|
+
[1m[35m (6.8ms)[0m commit transaction
|
2316
|
+
Migrating to CreateCommunities (20130201155147)
|
2317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2318
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2319
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
|
2320
|
+
[1m[35m (6.1ms)[0m commit transaction
|
2321
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2322
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2323
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2324
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
|
2325
|
+
[1m[35m (8.8ms)[0m commit transaction
|
2326
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2328
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
|
2329
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
|
2330
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
|
2331
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
|
2332
|
+
[1m[35m (6.0ms)[0m commit transaction
|
2333
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2334
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2335
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2336
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
|
2337
|
+
[1m[35m (6.3ms)[0m commit transaction
|
2338
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2340
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2341
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
|
2342
|
+
[1m[35m (8.6ms)[0m commit transaction
|
2343
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2344
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2345
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
|
2346
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
|
2347
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
|
2348
|
+
[1m[36m (5.9ms)[0m [1mcommit transaction[0m
|
2349
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2350
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2351
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2352
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
|
2353
|
+
[1m[36m (5.5ms)[0m [1mcommit transaction[0m
|
2354
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2355
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2356
|
+
[1m[36m (0.5ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2357
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "inkwell_comments"
|
2358
|
+
[1m[36m (0.5ms)[0m [1mDROP TABLE "inkwell_comments"[0m
|
2359
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2360
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "altered_inkwell_comments"[0m
|
2361
|
+
[1m[35m (0.3ms)[0m DROP TABLE "altered_inkwell_comments"
|
2362
|
+
[1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2363
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "inkwell_comments"
|
2364
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_comments"[0m
|
2365
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2366
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "altered_inkwell_comments"[0m
|
2367
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_comments"
|
2368
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2369
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "inkwell_comments"
|
2370
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_comments"[0m
|
2371
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2372
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "altered_inkwell_comments"[0m
|
2373
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_comments"
|
2374
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2375
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_blog_items"
|
2376
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_blog_items"[0m
|
2377
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2378
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "altered_inkwell_blog_items"[0m
|
2379
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_blog_items"
|
2380
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
|
2381
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
|
2382
|
+
[1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2383
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "inkwell_timeline_items"
|
2384
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "inkwell_timeline_items"[0m
|
2385
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2386
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
|
2387
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_timeline_items"
|
2388
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
|
2389
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
|
2390
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
|
2391
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
|
2392
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "communities" ADD "owner_id" integer[0m
|
2393
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
|
2394
|
+
[1m[36m (4.5ms)[0m [1mcommit transaction[0m
|
2395
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2396
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2397
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
|
2398
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
|
2399
|
+
[1m[36m (6.3ms)[0m [1mcommit transaction[0m
|
2400
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2402
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
|
2403
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
|
2404
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
|
2405
|
+
[1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))
|
2406
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "inkwell_blog_items"[0m
|
2407
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_blog_items"
|
2408
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255)) [0m
|
2409
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_blog_items"
|
2410
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_blog_items"[0m
|
2411
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
|
2412
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
|
2413
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
|
2414
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255)) [0m
|
2415
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_favorite_items"
|
2416
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_favorite_items"[0m
|
2417
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))
|
2418
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
|
2419
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_favorite_items"
|
2420
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
|
2421
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
|
2422
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
|
2423
|
+
[1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))
|
2424
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "inkwell_timeline_items"[0m
|
2425
|
+
[1m[35m (0.2ms)[0m DROP TABLE "inkwell_timeline_items"
|
2426
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255)) [0m
|
2427
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_timeline_items"
|
2428
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_timeline_items"[0m
|
2429
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
|
2430
|
+
[1m[36m (4.0ms)[0m [1mcommit transaction[0m
|
2431
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
2432
|
+
Connecting to database specified by database.yml
|
2433
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2434
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2435
|
+
[1m[36m (77.3ms)[0m [1mCREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer) [0m
|
2436
|
+
[1m[35m (6.3ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))
|
2437
|
+
[1m[36m (8.7ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2438
|
+
[1m[35m (6.9ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))
|
2439
|
+
[1m[36m (8.6ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255)) [0m
|
2440
|
+
[1m[35m (5.8ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')
|
2441
|
+
[1m[36m (8.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') [0m
|
2442
|
+
[1m[35m (5.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2443
|
+
[1m[36m (5.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2444
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2445
|
+
[1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130210231424')[0m
|
2446
|
+
[1m[35m (6.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
|
2447
|
+
[1m[36m (5.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
|
2448
|
+
[1m[35m (4.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
|
2449
|
+
[1m[36m (5.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
|
2450
|
+
[1m[35m (5.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
|
2451
|
+
[1m[36m (5.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134954')[0m
|
2452
|
+
[1m[35m (4.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
|
2453
|
+
[1m[36m (5.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134950')[0m
|
2454
|
+
[1m[35m (6.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
|
2455
|
+
[1m[36m (4.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
|
2456
|
+
[1m[35m (5.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
|
2457
|
+
Connecting to database specified by database.yml
|
2458
|
+
Connecting to database specified by database.yml
|
2459
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2460
|
+
Migrating to CreatePosts (20121202111750)
|
2461
|
+
Migrating to CreateUsers (20121202112556)
|
2462
|
+
Migrating to CreateCommunities (20130201155147)
|
2463
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2464
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2465
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2466
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2467
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2468
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2469
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2470
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2471
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2472
|
+
Migrating to AddOwnerTypeToLines (20130212130848)
|
2473
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2475
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)
|
2476
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'[0m
|
2477
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'
|
2478
|
+
[1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2479
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_blog_items"
|
2480
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "altered_inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","is_owner_user","item_type","owner_type") VALUES (1, NULL, NULL, '2013-02-12 13:08:10.905342', '2013-02-12 13:08:10.905342', NULL, NULL, NULL, NULL)[0m
|
2481
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_blog_items"
|
2482
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2483
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "altered_inkwell_blog_items"
|
2484
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "inkwell_blog_items" ("id","item_id","is_reblog","created_at","updated_at","owner_id","item_type","owner_type") VALUES (1, NULL, NULL, '2013-02-12 13:08:10.905342', '2013-02-12 13:08:10.905342', NULL, NULL, NULL)[0m
|
2485
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_blog_items"
|
2486
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)[0m
|
2487
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "inkwell_favorite_items" SET "owner_type" = 'u'
|
2488
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2489
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_favorite_items"
|
2490
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "altered_inkwell_favorite_items" ("id","item_id","owner_id","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '2013-02-12 13:08:23.626933', '2013-02-12 13:08:23.626933', NULL, 'u')[0m
|
2491
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_favorite_items"
|
2492
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2493
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_favorite_items"
|
2494
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "inkwell_favorite_items" ("id","item_id","owner_id","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '2013-02-12 13:08:23.626933', '2013-02-12 13:08:23.626933', NULL, 'u')[0m
|
2495
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_favorite_items"
|
2496
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)[0m
|
2497
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "inkwell_timeline_items" SET "owner_type" = 'u'
|
2498
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2499
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "inkwell_timeline_items"
|
2500
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "altered_inkwell_timeline_items" ("id","item_id","owner_id","from_source","has_many_sources","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '[]', 'f', '2013-02-12 13:07:57.065346', '2013-02-12 13:07:57.065346', NULL, 'u')[0m
|
2501
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_timeline_items"
|
2502
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2503
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_timeline_items"
|
2504
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "inkwell_timeline_items" ("id","item_id","owner_id","from_source","has_many_sources","created_at","updated_at","item_type","owner_type") VALUES (1, NULL, 1, '[]', 'f', '2013-02-12 13:07:57.065346', '2013-02-12 13:07:57.065346', NULL, 'u')[0m
|
2505
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_timeline_items"
|
2506
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')[0m
|
2507
|
+
[1m[35m (101.8ms)[0m commit transaction
|
2508
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2509
|
+
Connecting to database specified by database.yml
|
2510
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2511
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
2512
|
+
[1m[36m (42.1ms)[0m [1mCREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer) [0m
|
2513
|
+
[1m[35m (7.0ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))
|
2514
|
+
[1m[36m (8.5ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2515
|
+
[1m[35m (6.3ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))
|
2516
|
+
[1m[36m (6.5ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2517
|
+
[1m[35m (5.4ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')
|
2518
|
+
[1m[36m (6.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') [0m
|
2519
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2520
|
+
[1m[36m (4.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2521
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
2522
|
+
[1m[36m (4.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
|
2523
|
+
[1m[35m (3.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
|
2524
|
+
[1m[36m (4.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
|
2525
|
+
[1m[35m (3.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
|
2526
|
+
[1m[36m (5.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
|
2527
|
+
[1m[35m (3.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
|
2528
|
+
[1m[36m (3.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134954')[0m
|
2529
|
+
[1m[35m (4.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
|
2530
|
+
[1m[36m (3.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134950')[0m
|
2531
|
+
[1m[35m (4.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
|
2532
|
+
[1m[36m (3.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130210231424')[0m
|
2533
|
+
[1m[35m (3.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
|
2534
|
+
[1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202111750')[0m
|
2535
|
+
Connecting to database specified by database.yml
|
2536
|
+
Connecting to database specified by database.yml
|
2537
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2538
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2539
|
+
[1m[36m (18.8ms)[0m [1mCREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer) [0m
|
2540
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))
|
2541
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2542
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))
|
2543
|
+
[1m[36m (129.5ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2544
|
+
[1m[35m (121.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')
|
2545
|
+
[1m[36m (8.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') [0m
|
2546
|
+
[1m[35m (6.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2547
|
+
[1m[36m (6.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2548
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2549
|
+
[1m[36m (6.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
|
2550
|
+
[1m[35m (6.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
|
2551
|
+
[1m[36m (6.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
|
2552
|
+
[1m[35m (6.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
|
2553
|
+
[1m[36m (5.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
|
2554
|
+
[1m[35m (6.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
|
2555
|
+
[1m[36m (5.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134954')[0m
|
2556
|
+
[1m[35m (5.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
|
2557
|
+
[1m[36m (6.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134950')[0m
|
2558
|
+
[1m[35m (5.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
|
2559
|
+
[1m[36m (5.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130210231424')[0m
|
2560
|
+
[1m[35m (6.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
|
2561
|
+
[1m[36m (4.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202111750')[0m
|
2562
|
+
Connecting to database specified by database.yml
|
2563
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2564
|
+
Migrating to CreatePosts (20121202111750)
|
2565
|
+
Migrating to CreateUsers (20121202112556)
|
2566
|
+
Migrating to CreateCommunities (20130201155147)
|
2567
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2568
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2569
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2570
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2571
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2572
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2573
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2574
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2575
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2576
|
+
Migrating to AddOwnerTypeToLines (20130212130848)
|
2577
|
+
Migrating to RefactorCommentTable (20130213101535)
|
2578
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2579
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2580
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2581
|
+
Connecting to database specified by database.yml
|
2582
|
+
[1m[36m (0.0ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2583
|
+
Migrating to CreatePosts (20121202111750)
|
2584
|
+
Migrating to CreateUsers (20121202112556)
|
2585
|
+
Migrating to CreateCommunities (20130201155147)
|
2586
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2587
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2588
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2589
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2590
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2591
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2592
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2593
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2594
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2595
|
+
Migrating to AddOwnerTypeToLines (20130212130848)
|
2596
|
+
Migrating to RefactorCommentTable (20130213101640)
|
2597
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2598
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2599
|
+
[1m[35m (0.2ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2600
|
+
[1m[36m (0.7ms)[0m [1mSELECT * FROM "inkwell_comments"[0m
|
2601
|
+
[1m[35m (0.4ms)[0m DROP TABLE "inkwell_comments"
|
2602
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2603
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_comments"
|
2604
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_comments"[0m
|
2605
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)
|
2606
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'[0m
|
2607
|
+
[1m[35m (0.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130213101640')
|
2608
|
+
[1m[36m (45.0ms)[0m [1mcommit transaction[0m
|
2609
|
+
[1m[35m (0.0ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
2610
|
+
Connecting to database specified by database.yml
|
2611
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2612
|
+
Migrating to CreatePosts (20121202111750)
|
2613
|
+
Migrating to CreateUsers (20121202112556)
|
2614
|
+
Migrating to CreateCommunities (20130201155147)
|
2615
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2616
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2617
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2618
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2619
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2620
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2621
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2622
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2623
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2624
|
+
Migrating to AddOwnerTypeToLines (20130212130848)
|
2625
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2626
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2627
|
+
Connecting to database specified by database.yml
|
2628
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2629
|
+
Migrating to CreatePosts (20121202111750)
|
2630
|
+
Migrating to CreateUsers (20121202112556)
|
2631
|
+
Migrating to CreateCommunities (20130201155147)
|
2632
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2633
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2634
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2635
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2636
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2637
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2638
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2639
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2640
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2641
|
+
Migrating to AddOwnerTypeToLines (20130212130848)
|
2642
|
+
Migrating to RefactorCommentTable (20130213101736)
|
2643
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2644
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2645
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2646
|
+
Connecting to database specified by database.yml
|
2647
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2648
|
+
[1m[35m (22.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2649
|
+
[1m[36m (3.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2650
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
2651
|
+
Migrating to CreatePosts (20121202111750)
|
2652
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2653
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2654
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202111750')[0m
|
2655
|
+
[1m[35m (5.4ms)[0m commit transaction
|
2656
|
+
Migrating to CreateUsers (20121202112556)
|
2657
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2658
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2659
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121202112556')[0m
|
2660
|
+
[1m[35m (4.2ms)[0m commit transaction
|
2661
|
+
Migrating to CreateCommunities (20130201155147)
|
2662
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2663
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2664
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130201155147')[0m
|
2665
|
+
[1m[35m (4.1ms)[0m commit transaction
|
2666
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2668
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2669
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134948')[0m
|
2670
|
+
[1m[35m (4.4ms)[0m commit transaction
|
2671
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2672
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2673
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "posts" ADD "users_ids_who_favorite_it" text DEFAULT '[]'
|
2674
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "posts" ADD "users_ids_who_comment_it" text DEFAULT '[]'[0m
|
2675
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "posts" ADD "users_ids_who_reblog_it" text DEFAULT '[]'
|
2676
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134949')[0m
|
2677
|
+
[1m[35m (4.1ms)[0m commit transaction
|
2678
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2679
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2680
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2681
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134950')[0m
|
2682
|
+
[1m[35m (3.2ms)[0m commit transaction
|
2683
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2684
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2685
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2686
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130208134951')[0m
|
2687
|
+
[1m[35m (4.9ms)[0m commit transaction
|
2688
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2689
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2690
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "followers_ids" text DEFAULT '[]'
|
2691
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "users" ADD "followings_ids" text DEFAULT '[]'[0m
|
2692
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134952')
|
2693
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
2694
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2695
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2696
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2697
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134953')
|
2698
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
2699
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2700
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2701
|
+
[1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text, "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2702
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "inkwell_comments"
|
2703
|
+
[1m[36m (0.0ms)[0m [1mDROP TABLE "inkwell_comments"[0m
|
2704
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2705
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_comments"[0m
|
2706
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_comments"
|
2707
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text, "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2708
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_comments"
|
2709
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_comments"[0m
|
2710
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2711
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_comments"[0m
|
2712
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_comments"
|
2713
|
+
[1m[36m (0.8ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2714
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_comments"
|
2715
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_comments"[0m
|
2716
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "post_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2717
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_comments"[0m
|
2718
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_comments"
|
2719
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2720
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_blog_items"
|
2721
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_blog_items"[0m
|
2722
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2723
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_blog_items"[0m
|
2724
|
+
[1m[35m (0.0ms)[0m DROP TABLE "altered_inkwell_blog_items"
|
2725
|
+
[1m[36m (0.0ms)[0m [1mALTER TABLE "inkwell_blog_items" ADD "owner_id" integer[0m
|
2726
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "inkwell_blog_items" ADD "is_owner_user" boolean
|
2727
|
+
[1m[36m (0.1ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" varchar(255), "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2728
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_timeline_items"
|
2729
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_timeline_items"[0m
|
2730
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2731
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_timeline_items"[0m
|
2732
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_timeline_items"
|
2733
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "communities" ADD "users_ids" text DEFAULT '[]'[0m
|
2734
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "communities" ADD "admins_info" text DEFAULT '[]'
|
2735
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "communities_ids" text DEFAULT '[]'[0m
|
2736
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "users" ADD "admin_of" text DEFAULT '[]'
|
2737
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "communities" ADD "owner_id" integer[0m
|
2738
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134954')
|
2739
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
2740
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2741
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2742
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "posts" ADD "communities_ids" text DEFAULT '[]'[0m
|
2743
|
+
[1m[35m (0.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130208134955')
|
2744
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
2745
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2746
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2747
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "inkwell_blog_items" ADD "item_type" varchar(255)[0m
|
2748
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "inkwell_blog_items" SET "item_type" = 'c' WHERE "inkwell_blog_items"."is_comment" = 't'
|
2749
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "inkwell_blog_items" SET "item_type" = 'p' WHERE "inkwell_blog_items"."is_comment" = 'f'[0m
|
2750
|
+
[1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255))
|
2751
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "inkwell_blog_items"[0m
|
2752
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_blog_items"
|
2753
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255)) [0m
|
2754
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_blog_items"
|
2755
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_blog_items"[0m
|
2756
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "inkwell_favorite_items" ADD "item_type" varchar(255)
|
2757
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "inkwell_favorite_items" SET "item_type" = 'c' WHERE "inkwell_favorite_items"."is_comment" = 't'[0m
|
2758
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "inkwell_favorite_items" SET "item_type" = 'p' WHERE "inkwell_favorite_items"."is_comment" = 'f'
|
2759
|
+
[1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255)) [0m
|
2760
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "inkwell_favorite_items"
|
2761
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "inkwell_favorite_items"[0m
|
2762
|
+
[1m[35m (0.0ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))
|
2763
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_favorite_items"[0m
|
2764
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_favorite_items"
|
2765
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "inkwell_timeline_items" ADD "item_type" varchar(255)[0m
|
2766
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "inkwell_timeline_items" SET "item_type" = 'c' WHERE "inkwell_timeline_items"."is_comment" = 't'
|
2767
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "inkwell_timeline_items" SET "item_type" = 'p' WHERE "inkwell_timeline_items"."is_comment" = 'f'[0m
|
2768
|
+
[1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "is_comment" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255))
|
2769
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "inkwell_timeline_items"[0m
|
2770
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_timeline_items"
|
2771
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "user_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255)) [0m
|
2772
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_timeline_items"
|
2773
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_timeline_items"[0m
|
2774
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130210231424')
|
2775
|
+
[1m[36m (4.3ms)[0m [1mcommit transaction[0m
|
2776
|
+
Migrating to AddOwnerTypeToLines (20130212130848)
|
2777
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2778
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "inkwell_blog_items" ADD "owner_type" varchar(255)[0m
|
2779
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "inkwell_blog_items" SET "owner_type" = 'u' WHERE "inkwell_blog_items"."is_owner_user" = 't'
|
2780
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "inkwell_blog_items" SET "owner_type" = 'c' WHERE "inkwell_blog_items"."is_owner_user" = 'f'[0m
|
2781
|
+
[1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "is_owner_user" boolean, "item_type" varchar(255), "owner_type" varchar(255))
|
2782
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "inkwell_blog_items"[0m
|
2783
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_blog_items"
|
2784
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2785
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_blog_items"
|
2786
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_blog_items"[0m
|
2787
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "inkwell_favorite_items" ADD "owner_type" varchar(255)
|
2788
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "inkwell_favorite_items" SET "owner_type" = 'u'[0m
|
2789
|
+
[1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))
|
2790
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "inkwell_favorite_items"[0m
|
2791
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_favorite_items"
|
2792
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2793
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_favorite_items"
|
2794
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_favorite_items"[0m
|
2795
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "inkwell_timeline_items" ADD "owner_type" varchar(255)
|
2796
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "inkwell_timeline_items" SET "owner_type" = 'u'[0m
|
2797
|
+
[1m[35m (0.1ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))
|
2798
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "inkwell_timeline_items"[0m
|
2799
|
+
[1m[35m (0.1ms)[0m DROP TABLE "inkwell_timeline_items"
|
2800
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2801
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "altered_inkwell_timeline_items"
|
2802
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_timeline_items"[0m
|
2803
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130212130848')
|
2804
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
2805
|
+
Migrating to RefactorCommentTable (20130213101736)
|
2806
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2807
|
+
[1m[36m (0.4ms)[0m [1mCREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2808
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "inkwell_comments"
|
2809
|
+
[1m[36m (0.3ms)[0m [1mDROP TABLE "inkwell_comments"[0m
|
2810
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2811
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "altered_inkwell_comments"[0m
|
2812
|
+
[1m[35m (0.1ms)[0m DROP TABLE "altered_inkwell_comments"
|
2813
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "inkwell_comments" ADD "topmost_obj_type" varchar(255)[0m
|
2814
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "inkwell_comments" SET "topmost_obj_type" = 'p'
|
2815
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130213101736')[0m
|
2816
|
+
[1m[35m (3.6ms)[0m commit transaction
|
2817
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2818
|
+
Connecting to database specified by database.yml
|
2819
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2820
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2821
|
+
[1m[36m (8.1ms)[0m [1mCREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer) [0m
|
2822
|
+
[1m[35m (3.1ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))
|
2823
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255)) [0m
|
2824
|
+
[1m[35m (3.9ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))
|
2825
|
+
[1m[36m (5.7ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2826
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')
|
2827
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') [0m
|
2828
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2829
|
+
[1m[36m (4.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2830
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2831
|
+
[1m[36m (4.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130213101736')[0m
|
2832
|
+
[1m[35m (4.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
|
2833
|
+
[1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
|
2834
|
+
[1m[35m (3.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
|
2835
|
+
[1m[36m (4.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202112556')[0m
|
2836
|
+
[1m[35m (3.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134952')
|
2837
|
+
[1m[36m (4.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130212130848')[0m
|
2838
|
+
[1m[35m (3.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134954')
|
2839
|
+
[1m[36m (4.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130201155147')[0m
|
2840
|
+
[1m[35m (3.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134950')
|
2841
|
+
[1m[36m (3.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134953')[0m
|
2842
|
+
[1m[35m (3.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130210231424')
|
2843
|
+
[1m[36m (3.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134948')[0m
|
2844
|
+
[1m[35m (279.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121202111750')
|
2845
|
+
Connecting to database specified by database.yml
|
2846
|
+
Connecting to database specified by database.yml
|
2847
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2848
|
+
Migrating to CreatePosts (20121202111750)
|
2849
|
+
Migrating to CreateUsers (20121202112556)
|
2850
|
+
Migrating to CreateCommunities (20130201155147)
|
2851
|
+
Migrating to CreateInkwellTimelineItems (20130208134948)
|
2852
|
+
Migrating to AddColumnsToPosts (20130208134949)
|
2853
|
+
Migrating to CreateInkwellBlogItems (20130208134950)
|
2854
|
+
Migrating to CreateInkwellFavoriteItems (20130208134951)
|
2855
|
+
Migrating to AddColumnsToUsers (20130208134952)
|
2856
|
+
Migrating to CreateInkwellComments (20130208134953)
|
2857
|
+
Migrating to ChangeTablesForCommunities (20130208134954)
|
2858
|
+
Migrating to AddCommunityIdsToPost (20130208134955)
|
2859
|
+
Migrating to ChangeIsCommentToItemType (20130210231424)
|
2860
|
+
Migrating to AddOwnerTypeToLines (20130212130848)
|
2861
|
+
Migrating to RefactorCommentTable (20130213101736)
|
2862
|
+
Migrating to RenameParentIdToParentCommentIdInCommentTable (20130213121414)
|
2863
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2864
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2865
|
+
[1m[35m (0.3ms)[0m CREATE TEMPORARY TABLE "altered_inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255))
|
2866
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "inkwell_comments"[0m
|
2867
|
+
[1m[35m (0.3ms)[0m DROP TABLE "inkwell_comments"
|
2868
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255)) [0m
|
2869
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "altered_inkwell_comments"
|
2870
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "altered_inkwell_comments"[0m
|
2871
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130213121414')
|
2872
|
+
[1m[36m (25.3ms)[0m [1mcommit transaction[0m
|
2873
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
2874
|
+
Connecting to database specified by database.yml
|
2875
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2876
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2877
|
+
[1m[36m (19.5ms)[0m [1mCREATE TABLE "communities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids" text DEFAULT '[]', "admins_info" text DEFAULT '[]', "owner_id" integer) [0m
|
2878
|
+
[1m[35m (3.7ms)[0m CREATE TABLE "inkwell_blog_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "is_reblog" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "owner_id" integer, "item_type" varchar(255), "owner_type" varchar(255))
|
2879
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "inkwell_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "body" text, "parent_comment_id" integer, "topmost_obj_id" integer, "upper_comments_tree" text, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "topmost_obj_type" varchar(255)) [0m
|
2880
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "inkwell_favorite_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255))
|
2881
|
+
[1m[36m (6.1ms)[0m [1mCREATE TABLE "inkwell_timeline_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_id" integer, "owner_id" integer, "from_source" text DEFAULT '[]', "has_many_sources" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_type" varchar(255), "owner_type" varchar(255)) [0m
|
2882
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "users_ids_who_favorite_it" text DEFAULT '[]', "users_ids_who_comment_it" text DEFAULT '[]', "users_ids_who_reblog_it" text DEFAULT '[]', "communities_ids" text DEFAULT '[]')
|
2883
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "nick" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "followers_ids" text DEFAULT '[]', "followings_ids" text DEFAULT '[]', "communities_ids" text DEFAULT '[]', "admin_of" text DEFAULT '[]') [0m
|
2884
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2885
|
+
[1m[36m (3.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2886
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
2887
|
+
[1m[36m (4.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130213121414')[0m
|
2888
|
+
[1m[35m (4.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134951')
|
2889
|
+
[1m[36m (4.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134949')[0m
|
2890
|
+
[1m[35m (4.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134955')
|
2891
|
+
[1m[36m (4.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130213101736')[0m
|
2892
|
+
[1m[35m (4.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121202112556')
|
2893
|
+
[1m[36m (3.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134952')[0m
|
2894
|
+
[1m[35m (4.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130212130848')
|
2895
|
+
[1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134954')[0m
|
2896
|
+
[1m[35m (4.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130201155147')
|
2897
|
+
[1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130208134950')[0m
|
2898
|
+
[1m[35m (4.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134953')
|
2899
|
+
[1m[36m (3.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130210231424')[0m
|
2900
|
+
[1m[35m (3.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130208134948')
|
2901
|
+
[1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121202111750')[0m
|