commontator 1.1.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/commontator/comments_controller.rb +3 -2
- data/app/controllers/commontator/comments_controller.rb~ +136 -0
- data/app/models/commontator/comment.rb +53 -36
- data/app/models/commontator/comment.rb~ +108 -0
- data/app/models/commontator/subscription.rb +8 -6
- data/app/models/commontator/subscription.rb~ +21 -0
- data/app/models/commontator/thread.rb +48 -44
- data/app/models/commontator/thread.rb~ +48 -47
- data/app/views/commontator/comments/_body.html.erb +1 -1
- data/app/views/commontator/comments/_body.html.erb~ +8 -0
- data/app/views/commontator/comments/_form.html.erb +1 -1
- data/app/views/commontator/comments/_form.html.erb~ +38 -0
- data/app/views/commontator/comments/_show.html.erb +1 -1
- data/app/views/commontator/comments/_show.html.erb~ +44 -0
- data/app/views/commontator/comments/_votes.html.erb +1 -1
- data/app/views/commontator/comments/_votes.html.erb~ +57 -0
- data/app/views/commontator/comments/delete.js.erb +1 -1
- data/app/views/commontator/comments/delete.js.erb~ +17 -0
- data/config/initializers/commontator.rb +11 -4
- data/config/initializers/commontator.rb~ +171 -0
- data/db/migrate/0_install.rb +23 -21
- data/db/migrate/0_install.rb~ +23 -21
- data/lib/commontator.rb +2 -0
- data/lib/commontator.rb~ +1 -1
- data/lib/commontator/acts_as_commontable.rb +7 -6
- data/lib/commontator/acts_as_commontable.rb~ +8 -6
- data/lib/commontator/acts_as_commontator.rb +4 -3
- data/lib/commontator/acts_as_commontator.rb~ +31 -0
- data/lib/commontator/version.rb +1 -1
- data/lib/commontator/version.rb~ +1 -1
- data/spec/app/controllers/commontator/comments_controller_spec.rb +61 -20
- data/spec/app/controllers/commontator/comments_controller_spec.rb~ +58 -21
- data/spec/app/models/commontator/comment_spec.rb +8 -7
- data/spec/app/models/commontator/comment_spec.rb~ +9 -8
- data/spec/app/models/commontator/thread_spec.rb +1 -1
- data/spec/app/models/commontator/thread_spec.rb~ +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +16 -16
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +724 -0
- data/spec/dummy/log/test.log +41005 -0
- metadata +12 -2
@@ -22,8 +22,8 @@ module Commontator
|
|
22
22
|
|
23
23
|
@comment.is_modified?.must_equal false
|
24
24
|
|
25
|
-
sleep 1
|
26
25
|
@comment.body = 'Something else'
|
26
|
+
@comment.editor = @user
|
27
27
|
@comment.save!
|
28
28
|
|
29
29
|
@comment.is_modified?.must_equal true
|
@@ -33,14 +33,14 @@ module Commontator
|
|
33
33
|
user = DummyUser.new
|
34
34
|
|
35
35
|
@comment.is_deleted?.must_equal false
|
36
|
-
@comment.
|
36
|
+
@comment.editor.must_be_nil
|
37
37
|
|
38
|
-
@comment.
|
38
|
+
@comment.delete_by(user)
|
39
39
|
|
40
40
|
@comment.is_deleted?.must_equal true
|
41
|
-
@comment.
|
41
|
+
@comment.editor.must_equal user
|
42
42
|
|
43
|
-
@comment.
|
43
|
+
@comment.undelete_by(user)
|
44
44
|
|
45
45
|
@comment.is_deleted?.must_equal false
|
46
46
|
end
|
@@ -50,11 +50,12 @@ module Commontator
|
|
50
50
|
|
51
51
|
@comment.timestamp.must_equal "#{@thread.config.comment_create_verb_past.capitalize} on #{@comment.created_at.strftime(@thread.config.timestamp_format)}"
|
52
52
|
|
53
|
-
sleep 1
|
54
53
|
@comment.body = 'Something else'
|
54
|
+
@comment.editor = @user
|
55
55
|
@comment.save!
|
56
56
|
|
57
|
-
@comment.timestamp.must_equal "
|
57
|
+
@comment.timestamp.must_equal "#{@thread.config.comment_create_verb_past.capitalize} on #{@comment.created_at.strftime(@thread.config.timestamp_format)}" + \
|
58
|
+
" | Last #{@thread.config.comment_edit_verb_past} on #{@comment.updated_at.strftime(@thread.config.timestamp_format)}"
|
58
59
|
end
|
59
60
|
end
|
60
61
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'minitest_helper'
|
2
2
|
require 'acts_as_votable'
|
3
3
|
|
4
4
|
module Commontator
|
@@ -22,8 +22,8 @@ module Commontator
|
|
22
22
|
|
23
23
|
@comment.is_modified?.must_equal false
|
24
24
|
|
25
|
-
sleep 1
|
26
25
|
@comment.body = 'Something else'
|
26
|
+
@comment.editor = @user
|
27
27
|
@comment.save!
|
28
28
|
|
29
29
|
@comment.is_modified?.must_equal true
|
@@ -33,14 +33,14 @@ module Commontator
|
|
33
33
|
user = DummyUser.new
|
34
34
|
|
35
35
|
@comment.is_deleted?.must_equal false
|
36
|
-
@comment.
|
36
|
+
@comment.editor.must_be_nil
|
37
37
|
|
38
|
-
@comment.
|
38
|
+
@comment.delete_by(user)
|
39
39
|
|
40
40
|
@comment.is_deleted?.must_equal true
|
41
|
-
@comment.
|
41
|
+
@comment.editor.must_equal user
|
42
42
|
|
43
|
-
@comment.
|
43
|
+
@comment.undelete_by(user)
|
44
44
|
|
45
45
|
@comment.is_deleted?.must_equal false
|
46
46
|
end
|
@@ -50,11 +50,12 @@ module Commontator
|
|
50
50
|
|
51
51
|
@comment.timestamp.must_equal "#{@thread.config.comment_create_verb_past.capitalize} on #{@comment.created_at.strftime(@thread.config.timestamp_format)}"
|
52
52
|
|
53
|
-
sleep 1
|
54
53
|
@comment.body = 'Something else'
|
54
|
+
@comment.editor = @user
|
55
55
|
@comment.save!
|
56
56
|
|
57
|
-
@comment.timestamp.must_equal "
|
57
|
+
@comment.timestamp.must_equal "#{@thread.config.comment_create_verb_past.capitalize} on #{@comment.created_at.strftime(@thread.config.timestamp_format)}" +
|
58
|
+
" | Last #{@thread.config.comment_edit_verb_past} on #{@comment.updated_at.strftime(@thread.config.timestamp_format)}"
|
58
59
|
end
|
59
60
|
end
|
60
61
|
end
|
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -14,49 +14,49 @@
|
|
14
14
|
ActiveRecord::Schema.define(:version => 3) do
|
15
15
|
|
16
16
|
create_table "commontator_comments", :force => true do |t|
|
17
|
-
t.text "body"
|
18
|
-
t.integer "creator_id"
|
19
17
|
t.string "creator_type"
|
18
|
+
t.integer "creator_id"
|
19
|
+
t.string "editor_type"
|
20
|
+
t.integer "editor_id"
|
21
|
+
t.integer "thread_id", :null => false
|
22
|
+
t.text "body", :default => "", :null => false
|
20
23
|
t.datetime "deleted_at"
|
21
|
-
t.integer "deleter_id"
|
22
|
-
t.string "deleter_type"
|
23
|
-
t.integer "thread_id"
|
24
24
|
t.integer "cached_votes_total", :default => 0
|
25
25
|
t.integer "cached_votes_up", :default => 0
|
26
26
|
t.integer "cached_votes_down", :default => 0
|
27
|
-
t.datetime "created_at",
|
28
|
-
t.datetime "updated_at",
|
27
|
+
t.datetime "created_at", :null => false
|
28
|
+
t.datetime "updated_at", :null => false
|
29
29
|
end
|
30
30
|
|
31
31
|
add_index "commontator_comments", ["cached_votes_down"], :name => "index_commontator_comments_on_cached_votes_down"
|
32
32
|
add_index "commontator_comments", ["cached_votes_total"], :name => "index_commontator_comments_on_cached_votes_total"
|
33
33
|
add_index "commontator_comments", ["cached_votes_up"], :name => "index_commontator_comments_on_cached_votes_up"
|
34
|
-
add_index "commontator_comments", ["
|
34
|
+
add_index "commontator_comments", ["creator_type", "creator_id", "thread_id"], :name => "index_c_c_on_c_type_and_c_id_and_t_id"
|
35
35
|
add_index "commontator_comments", ["thread_id"], :name => "index_commontator_comments_on_thread_id"
|
36
36
|
|
37
37
|
create_table "commontator_subscriptions", :force => true do |t|
|
38
|
-
t.
|
39
|
-
t.
|
40
|
-
t.integer "thread_id"
|
41
|
-
t.integer "unread", :default => 0
|
38
|
+
t.string "subscriber_type", :null => false
|
39
|
+
t.integer "subscriber_id", :null => false
|
40
|
+
t.integer "thread_id", :null => false
|
41
|
+
t.integer "unread", :default => 0, :null => false
|
42
42
|
t.datetime "created_at", :null => false
|
43
43
|
t.datetime "updated_at", :null => false
|
44
44
|
end
|
45
45
|
|
46
|
-
add_index "commontator_subscriptions", ["
|
46
|
+
add_index "commontator_subscriptions", ["subscriber_type", "subscriber_id", "thread_id"], :name => "index_c_s_on_s_type_and_s_id_and_t_id", :unique => true
|
47
47
|
add_index "commontator_subscriptions", ["thread_id"], :name => "index_commontator_subscriptions_on_thread_id"
|
48
48
|
|
49
49
|
create_table "commontator_threads", :force => true do |t|
|
50
|
-
t.integer "commontable_id"
|
51
50
|
t.string "commontable_type"
|
51
|
+
t.integer "commontable_id"
|
52
52
|
t.datetime "closed_at"
|
53
|
-
t.integer "closer_id"
|
54
53
|
t.string "closer_type"
|
54
|
+
t.integer "closer_id"
|
55
55
|
t.datetime "created_at", :null => false
|
56
56
|
t.datetime "updated_at", :null => false
|
57
57
|
end
|
58
58
|
|
59
|
-
add_index "commontator_threads", ["
|
59
|
+
add_index "commontator_threads", ["commontable_type", "commontable_id"], :name => "index_commontator_threads_on_commontable_type_and_commontable_id", :unique => true
|
60
60
|
|
61
61
|
create_table "dummy_models", :force => true do |t|
|
62
62
|
t.datetime "created_at", :null => false
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -563,3 +563,727 @@ Connecting to database specified by database.yml
|
|
563
563
|
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
564
564
|
[1m[35m (5.7ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
565
565
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
566
|
+
Connecting to database specified by database.yml
|
567
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
568
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
569
|
+
[1m[36m (16.2ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
570
|
+
[1m[35m (6.1ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
571
|
+
[1m[36m (5.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
572
|
+
[1m[35m (4.9ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
573
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
574
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
575
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
576
|
+
[1m[35m (4.3ms)[0m DROP TABLE "commontator_subscriptions"
|
577
|
+
[1m[36m (4.2ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
578
|
+
[1m[35m (4.0ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
579
|
+
[1m[36m (4.0ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
580
|
+
[1m[35m (4.5ms)[0m DROP TABLE "commontator_threads"
|
581
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
582
|
+
[1m[35m (3.8ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
583
|
+
[1m[36m (4.6ms)[0m [1mDROP TABLE "dummy_models"[0m
|
584
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
585
|
+
[1m[36m (4.9ms)[0m [1mDROP TABLE "dummy_users"[0m
|
586
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
587
|
+
[1m[36m (4.9ms)[0m [1mDROP TABLE "votes"[0m
|
588
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
589
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
590
|
+
[1m[35m (4.1ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
591
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
592
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
593
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
594
|
+
Connecting to database specified by database.yml
|
595
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
596
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
597
|
+
[1m[36m (15.4ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
598
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
599
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
600
|
+
[1m[35m (4.9ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
601
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
602
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
603
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
604
|
+
[1m[35m (5.3ms)[0m DROP TABLE "commontator_subscriptions"
|
605
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
606
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
607
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
608
|
+
[1m[35m (5.3ms)[0m DROP TABLE "commontator_threads"
|
609
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
610
|
+
[1m[35m (3.9ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
611
|
+
[1m[36m (4.4ms)[0m [1mDROP TABLE "dummy_models"[0m
|
612
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
613
|
+
[1m[36m (5.2ms)[0m [1mDROP TABLE "dummy_users"[0m
|
614
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
615
|
+
[1m[36m (5.3ms)[0m [1mDROP TABLE "votes"[0m
|
616
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
617
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
618
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
619
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
620
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
621
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
622
|
+
Connecting to database specified by database.yml
|
623
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
624
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
625
|
+
[1m[36m (15.4ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
626
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
627
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
628
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
629
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
630
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
631
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
632
|
+
[1m[35m (5.2ms)[0m DROP TABLE "commontator_subscriptions"
|
633
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
634
|
+
[1m[35m (4.6ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
635
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
636
|
+
[1m[35m (5.1ms)[0m DROP TABLE "commontator_threads"
|
637
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
638
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
639
|
+
[1m[36m (4.7ms)[0m [1mDROP TABLE "dummy_models"[0m
|
640
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
641
|
+
[1m[36m (5.1ms)[0m [1mDROP TABLE "dummy_users"[0m
|
642
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
643
|
+
[1m[36m (5.8ms)[0m [1mDROP TABLE "votes"[0m
|
644
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
645
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
646
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
647
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
648
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
649
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
650
|
+
Connecting to database specified by database.yml
|
651
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
652
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
653
|
+
[1m[36m (13.3ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
654
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
655
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
656
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
657
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
658
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
659
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
660
|
+
[1m[35m (5.1ms)[0m DROP TABLE "commontator_subscriptions"
|
661
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
662
|
+
[1m[35m (4.8ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
663
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
664
|
+
[1m[35m (4.9ms)[0m DROP TABLE "commontator_threads"
|
665
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
666
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
667
|
+
[1m[36m (4.6ms)[0m [1mDROP TABLE "dummy_models"[0m
|
668
|
+
[1m[35m (4.3ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
669
|
+
[1m[36m (4.8ms)[0m [1mDROP TABLE "dummy_users"[0m
|
670
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
671
|
+
[1m[36m (5.2ms)[0m [1mDROP TABLE "votes"[0m
|
672
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
673
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
674
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
675
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
676
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
677
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
678
|
+
Connecting to database specified by database.yml
|
679
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
680
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
681
|
+
[1m[36m (14.0ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
682
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
683
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
684
|
+
[1m[35m (4.8ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
685
|
+
[1m[36m (4.8ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
686
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
687
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
688
|
+
[1m[35m (5.2ms)[0m DROP TABLE "commontator_subscriptions"
|
689
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
690
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
691
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
692
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_threads"
|
693
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
694
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
695
|
+
[1m[36m (4.8ms)[0m [1mDROP TABLE "dummy_models"[0m
|
696
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
697
|
+
[1m[36m (5.4ms)[0m [1mDROP TABLE "dummy_users"[0m
|
698
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
699
|
+
[1m[36m (5.8ms)[0m [1mDROP TABLE "votes"[0m
|
700
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
701
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
702
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
703
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
704
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
705
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
706
|
+
Connecting to database specified by database.yml
|
707
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
708
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
709
|
+
[1m[36m (15.0ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
710
|
+
[1m[35m (5.6ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
711
|
+
[1m[36m (4.9ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
712
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
713
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
714
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
715
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
716
|
+
[1m[35m (5.3ms)[0m DROP TABLE "commontator_subscriptions"
|
717
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
718
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
719
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
720
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_threads"
|
721
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
722
|
+
[1m[35m (4.1ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
723
|
+
[1m[36m (4.9ms)[0m [1mDROP TABLE "dummy_models"[0m
|
724
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
725
|
+
[1m[36m (5.1ms)[0m [1mDROP TABLE "dummy_users"[0m
|
726
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
727
|
+
[1m[36m (5.3ms)[0m [1mDROP TABLE "votes"[0m
|
728
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
729
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
730
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
731
|
+
[1m[36m (4.8ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
732
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
733
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
734
|
+
Connecting to database specified by database.yml
|
735
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
736
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
737
|
+
[1m[36m (14.8ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
738
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
739
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
740
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
741
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
742
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
743
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
744
|
+
[1m[35m (5.3ms)[0m DROP TABLE "commontator_subscriptions"
|
745
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
746
|
+
[1m[35m (4.5ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
747
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
748
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_threads"
|
749
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
750
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
751
|
+
[1m[36m (4.7ms)[0m [1mDROP TABLE "dummy_models"[0m
|
752
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
753
|
+
[1m[36m (5.1ms)[0m [1mDROP TABLE "dummy_users"[0m
|
754
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
755
|
+
[1m[36m (11.8ms)[0m [1mDROP TABLE "votes"[0m
|
756
|
+
[1m[35m (4.3ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
757
|
+
[1m[36m (4.1ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
758
|
+
[1m[35m (4.0ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
759
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
760
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
761
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
762
|
+
Connecting to database specified by database.yml
|
763
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
764
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
765
|
+
[1m[36m (15.3ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
766
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
767
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
768
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
769
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
770
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
771
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
772
|
+
[1m[35m (5.3ms)[0m DROP TABLE "commontator_subscriptions"
|
773
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
774
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
775
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
776
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_threads"
|
777
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
778
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
779
|
+
[1m[36m (4.8ms)[0m [1mDROP TABLE "dummy_models"[0m
|
780
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
781
|
+
[1m[36m (5.8ms)[0m [1mDROP TABLE "dummy_users"[0m
|
782
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
783
|
+
[1m[36m (5.4ms)[0m [1mDROP TABLE "votes"[0m
|
784
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
785
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
786
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
787
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
788
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
789
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
790
|
+
Connecting to database specified by database.yml
|
791
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
792
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
793
|
+
[1m[36m (23.5ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
794
|
+
[1m[35m (5.4ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
795
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
796
|
+
[1m[35m (5.2ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
797
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
798
|
+
[1m[35m (4.8ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
799
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
800
|
+
[1m[35m (5.4ms)[0m DROP TABLE "commontator_subscriptions"
|
801
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
802
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
803
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
804
|
+
[1m[35m (5.1ms)[0m DROP TABLE "commontator_threads"
|
805
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
806
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
807
|
+
[1m[36m (4.7ms)[0m [1mDROP TABLE "dummy_models"[0m
|
808
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
809
|
+
[1m[36m (5.1ms)[0m [1mDROP TABLE "dummy_users"[0m
|
810
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
811
|
+
[1m[36m (5.3ms)[0m [1mDROP TABLE "votes"[0m
|
812
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
813
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
814
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
815
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
816
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
817
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
818
|
+
Connecting to database specified by database.yml
|
819
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
820
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
821
|
+
[1m[36m (15.9ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
822
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
823
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
824
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
825
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
826
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
827
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
828
|
+
[1m[35m (5.3ms)[0m DROP TABLE "commontator_subscriptions"
|
829
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
830
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
831
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
832
|
+
[1m[35m (4.9ms)[0m DROP TABLE "commontator_threads"
|
833
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
834
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
835
|
+
[1m[36m (4.9ms)[0m [1mDROP TABLE "dummy_models"[0m
|
836
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
837
|
+
[1m[36m (5.3ms)[0m [1mDROP TABLE "dummy_users"[0m
|
838
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
839
|
+
[1m[36m (5.4ms)[0m [1mDROP TABLE "votes"[0m
|
840
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
841
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
842
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
843
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
844
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
845
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
846
|
+
Connecting to database specified by database.yml
|
847
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
848
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
849
|
+
[1m[36m (16.2ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
850
|
+
[1m[35m (4.7ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
851
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
852
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
853
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
854
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
855
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
856
|
+
[1m[35m (5.2ms)[0m DROP TABLE "commontator_subscriptions"
|
857
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
858
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
859
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
860
|
+
[1m[35m (4.8ms)[0m DROP TABLE "commontator_threads"
|
861
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
862
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
863
|
+
[1m[36m (4.8ms)[0m [1mDROP TABLE "dummy_models"[0m
|
864
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
865
|
+
[1m[36m (5.7ms)[0m [1mDROP TABLE "dummy_users"[0m
|
866
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
867
|
+
[1m[36m (5.8ms)[0m [1mDROP TABLE "votes"[0m
|
868
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
869
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
870
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
871
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
872
|
+
[1m[35m (4.1ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
873
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
874
|
+
Connecting to database specified by database.yml
|
875
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
876
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
877
|
+
[1m[36m (15.3ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
878
|
+
[1m[35m (5.3ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "creator_id" integer, "creator_type" varchar(255), "deleted_at" datetime, "deleter_id" integer, "deleter_type" varchar(255), "thread_id" integer, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
879
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
880
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
881
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
882
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_c_c_on_c_id_and_c_type_and_t_id" ON "commontator_comments" ("creator_id", "creator_type", "thread_id")
|
883
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
884
|
+
[1m[35m (5.3ms)[0m DROP TABLE "commontator_subscriptions"
|
885
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_id" integer, "subscriber_type" varchar(255), "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
886
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_id_and_s_type_and_t_id" ON "commontator_subscriptions" ("subscriber_id", "subscriber_type", "thread_id")
|
887
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
888
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_threads"
|
889
|
+
[1m[36m (4.9ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_id" integer, "commontable_type" varchar(255), "closed_at" datetime, "closer_id" integer, "closer_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
890
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_commontator_threads_on_commontable_id_and_commontable_type" ON "commontator_threads" ("commontable_id", "commontable_type")
|
891
|
+
[1m[36m (5.0ms)[0m [1mDROP TABLE "dummy_models"[0m
|
892
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
893
|
+
[1m[36m (4.7ms)[0m [1mDROP TABLE "dummy_users"[0m
|
894
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
895
|
+
[1m[36m (6.3ms)[0m [1mDROP TABLE "votes"[0m
|
896
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
897
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
898
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
899
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
900
|
+
[1m[35m (4.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
901
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
902
|
+
Connecting to database specified by database.yml
|
903
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
904
|
+
[1m[35m (13.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
905
|
+
[1m[36m (5.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
906
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
907
|
+
Migrating to Install (0)
|
908
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
909
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
910
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")[0m
|
911
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")
|
912
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m
|
913
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")
|
914
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
915
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
916
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")[0m
|
917
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")
|
918
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
919
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
920
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('0')[0m
|
921
|
+
[1m[35m (7.8ms)[0m commit transaction
|
922
|
+
Migrating to CreateDummyModels (1)
|
923
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
924
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
925
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('1')[0m
|
926
|
+
[1m[35m (7.7ms)[0m commit transaction
|
927
|
+
Migrating to CreateDummyUsers (2)
|
928
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
929
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
930
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('2')[0m
|
931
|
+
[1m[35m (6.3ms)[0m commit transaction
|
932
|
+
Migrating to ActsAsVotableMigration (3)
|
933
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
934
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
935
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")[0m
|
936
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
937
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
938
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")
|
939
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('3')[0m
|
940
|
+
[1m[35m (8.0ms)[0m commit transaction
|
941
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
942
|
+
Connecting to database specified by database.yml
|
943
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
944
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
945
|
+
[1m[36m (12.4ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
946
|
+
[1m[35m (5.0ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")
|
947
|
+
[1m[36m (4.8ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m
|
948
|
+
[1m[35m (5.1ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")
|
949
|
+
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")[0m
|
950
|
+
[1m[35m (5.1ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")
|
951
|
+
[1m[36m (5.2ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
952
|
+
[1m[35m (5.7ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
953
|
+
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
954
|
+
[1m[35m (5.4ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
955
|
+
[1m[36m (5.2ms)[0m [1mCREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")[0m
|
956
|
+
[1m[35m (5.5ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
957
|
+
[1m[36m (5.1ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
958
|
+
[1m[35m (5.9ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
959
|
+
[1m[36m (5.4ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
960
|
+
[1m[35m (6.0ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
961
|
+
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
962
|
+
[1m[35m (5.1ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
963
|
+
[1m[36m (5.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
964
|
+
[1m[35m (5.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
965
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
966
|
+
[1m[35m (4.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3')
|
967
|
+
[1m[36m (4.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('2')[0m
|
968
|
+
[1m[35m (4.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
969
|
+
[1m[36m (4.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
970
|
+
Connecting to database specified by database.yml
|
971
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
972
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
973
|
+
[1m[36m (14.2ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
974
|
+
[1m[35m (5.8ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
975
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
976
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
977
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
978
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
979
|
+
[1m[36m (5.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
980
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_subscriptions"
|
981
|
+
[1m[36m (5.1ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
982
|
+
[1m[35m (4.7ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
983
|
+
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
984
|
+
[1m[35m (4.7ms)[0m DROP TABLE "commontator_threads"
|
985
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
986
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
987
|
+
[1m[36m (5.1ms)[0m [1mDROP TABLE "dummy_models"[0m
|
988
|
+
[1m[35m (4.7ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
989
|
+
[1m[36m (4.4ms)[0m [1mDROP TABLE "dummy_users"[0m
|
990
|
+
[1m[35m (5.9ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
991
|
+
[1m[36m (5.4ms)[0m [1mDROP TABLE "votes"[0m
|
992
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
993
|
+
[1m[36m (5.1ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
994
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
995
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
996
|
+
[1m[35m (4.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
997
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
998
|
+
Connecting to database specified by database.yml
|
999
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1000
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
1001
|
+
[1m[36m (13.7ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1002
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1003
|
+
[1m[36m (5.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1004
|
+
[1m[35m (5.1ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1005
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1006
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1007
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1008
|
+
[1m[35m (5.5ms)[0m DROP TABLE "commontator_subscriptions"
|
1009
|
+
[1m[36m (5.5ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1010
|
+
[1m[35m (4.6ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1011
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1012
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_threads"
|
1013
|
+
[1m[36m (5.2ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1014
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1015
|
+
[1m[36m (5.2ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1016
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1017
|
+
[1m[36m (4.8ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1018
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1019
|
+
[1m[36m (5.6ms)[0m [1mDROP TABLE "votes"[0m
|
1020
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1021
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1022
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1023
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1024
|
+
[1m[35m (5.0ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1025
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1026
|
+
Connecting to database specified by database.yml
|
1027
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1028
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
1029
|
+
[1m[36m (16.0ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1030
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1031
|
+
[1m[36m (5.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1032
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1033
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1034
|
+
[1m[35m (4.1ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1035
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1036
|
+
[1m[35m (5.1ms)[0m DROP TABLE "commontator_subscriptions"
|
1037
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1038
|
+
[1m[35m (4.5ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1039
|
+
[1m[36m (4.2ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1040
|
+
[1m[35m (4.6ms)[0m DROP TABLE "commontator_threads"
|
1041
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1042
|
+
[1m[35m (4.1ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1043
|
+
[1m[36m (4.9ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1044
|
+
[1m[35m (4.3ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1045
|
+
[1m[36m (4.4ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1046
|
+
[1m[35m (5.9ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1047
|
+
[1m[36m (5.3ms)[0m [1mDROP TABLE "votes"[0m
|
1048
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1049
|
+
[1m[36m (4.1ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1050
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1051
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1052
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1053
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1054
|
+
Connecting to database specified by database.yml
|
1055
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1056
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
1057
|
+
[1m[36m (15.0ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1058
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1059
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1060
|
+
[1m[35m (4.8ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1061
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1062
|
+
[1m[35m (4.9ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1063
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1064
|
+
[1m[35m (4.8ms)[0m DROP TABLE "commontator_subscriptions"
|
1065
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1066
|
+
[1m[35m (4.2ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1067
|
+
[1m[36m (4.1ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1068
|
+
[1m[35m (4.5ms)[0m DROP TABLE "commontator_threads"
|
1069
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1070
|
+
[1m[35m (4.0ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1071
|
+
[1m[36m (4.6ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1072
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1073
|
+
[1m[36m (4.3ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1074
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1075
|
+
[1m[36m (5.1ms)[0m [1mDROP TABLE "votes"[0m
|
1076
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1077
|
+
[1m[36m (4.0ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1078
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1079
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1080
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1081
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1082
|
+
Connecting to database specified by database.yml
|
1083
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1084
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
1085
|
+
[1m[36m (15.1ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1086
|
+
[1m[35m (5.2ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1087
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1088
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1089
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1090
|
+
[1m[35m (4.8ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1091
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1092
|
+
[1m[35m (5.4ms)[0m DROP TABLE "commontator_subscriptions"
|
1093
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1094
|
+
[1m[35m (4.7ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1095
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1096
|
+
[1m[35m (5.0ms)[0m DROP TABLE "commontator_threads"
|
1097
|
+
[1m[36m (5.1ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1098
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1099
|
+
[1m[36m (5.3ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1100
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1101
|
+
[1m[36m (4.6ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1102
|
+
[1m[35m (5.8ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1103
|
+
[1m[36m (5.2ms)[0m [1mDROP TABLE "votes"[0m
|
1104
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1105
|
+
[1m[36m (4.1ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1106
|
+
[1m[35m (4.4ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1107
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1108
|
+
[1m[35m (4.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1109
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1110
|
+
Connecting to database specified by database.yml
|
1111
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1112
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
1113
|
+
[1m[36m (14.5ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1114
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1115
|
+
[1m[36m (5.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1116
|
+
[1m[35m (6.1ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1117
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1118
|
+
[1m[35m (4.6ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1119
|
+
[1m[36m (4.5ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1120
|
+
[1m[35m (5.4ms)[0m DROP TABLE "commontator_subscriptions"
|
1121
|
+
[1m[36m (5.1ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1122
|
+
[1m[35m (4.8ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1123
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1124
|
+
[1m[35m (4.9ms)[0m DROP TABLE "commontator_threads"
|
1125
|
+
[1m[36m (5.1ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1126
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1127
|
+
[1m[36m (5.2ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1128
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1129
|
+
[1m[36m (4.8ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1130
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1131
|
+
[1m[36m (5.5ms)[0m [1mDROP TABLE "votes"[0m
|
1132
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1133
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1134
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1135
|
+
[1m[36m (5.2ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1136
|
+
[1m[35m (4.9ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1137
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1138
|
+
Connecting to database specified by database.yml
|
1139
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1140
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
1141
|
+
[1m[36m (14.0ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1142
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer, "body" text, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1143
|
+
[1m[36m (5.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1144
|
+
[1m[35m (5.2ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1145
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1146
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1147
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1148
|
+
[1m[35m (5.6ms)[0m DROP TABLE "commontator_subscriptions"
|
1149
|
+
[1m[36m (5.6ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255), "subscriber_id" integer, "thread_id" integer, "unread" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1150
|
+
[1m[35m (5.1ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1151
|
+
[1m[36m (5.2ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1152
|
+
[1m[35m (4.8ms)[0m DROP TABLE "commontator_threads"
|
1153
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1154
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1155
|
+
[1m[36m (4.7ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1156
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1157
|
+
[1m[36m (4.5ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1158
|
+
[1m[35m (5.6ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1159
|
+
[1m[36m (6.2ms)[0m [1mDROP TABLE "votes"[0m
|
1160
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1161
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1162
|
+
[1m[35m (4.5ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1163
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1164
|
+
[1m[35m (5.0ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1165
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1166
|
+
Connecting to database specified by database.yml
|
1167
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
1168
|
+
[1m[35m (13.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1169
|
+
[1m[36m (4.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1170
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
1171
|
+
Migrating to Install (0)
|
1172
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1173
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text DEFAULT '' NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1174
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")[0m
|
1175
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")
|
1176
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m
|
1177
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")
|
1178
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1179
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1180
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")[0m
|
1181
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")
|
1182
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1183
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1184
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('0')[0m
|
1185
|
+
[1m[35m (8.1ms)[0m commit transaction
|
1186
|
+
Migrating to CreateDummyModels (1)
|
1187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1188
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1189
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('1')[0m
|
1190
|
+
[1m[35m (6.6ms)[0m commit transaction
|
1191
|
+
Migrating to CreateDummyUsers (2)
|
1192
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1193
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1194
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('2')[0m
|
1195
|
+
[1m[35m (5.9ms)[0m commit transaction
|
1196
|
+
Migrating to ActsAsVotableMigration (3)
|
1197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1198
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1199
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")[0m
|
1200
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1201
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1202
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")
|
1203
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('3')[0m
|
1204
|
+
[1m[35m (7.0ms)[0m commit transaction
|
1205
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1206
|
+
Connecting to database specified by database.yml
|
1207
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1208
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1209
|
+
[1m[36m (11.5ms)[0m [1mCREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text DEFAULT '' NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1210
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")
|
1211
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")[0m
|
1212
|
+
[1m[35m (5.0ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")
|
1213
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")[0m
|
1214
|
+
[1m[35m (4.9ms)[0m CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")
|
1215
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1216
|
+
[1m[35m (5.2ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1217
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1218
|
+
[1m[35m (5.3ms)[0m CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1219
|
+
[1m[36m (5.1ms)[0m [1mCREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")[0m
|
1220
|
+
[1m[35m (5.3ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1221
|
+
[1m[36m (6.4ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1222
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1223
|
+
[1m[36m (5.4ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1224
|
+
[1m[35m (5.5ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1225
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1226
|
+
[1m[35m (5.0ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1227
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1228
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1229
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1230
|
+
[1m[35m (3.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('3')
|
1231
|
+
[1m[36m (3.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('2')[0m
|
1232
|
+
[1m[35m (3.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
1233
|
+
[1m[36m (3.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1234
|
+
Connecting to database specified by database.yml
|
1235
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1236
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
1237
|
+
[1m[36m (14.6ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1238
|
+
[1m[35m (5.9ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text DEFAULT '' NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1239
|
+
[1m[36m (4.4ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1240
|
+
[1m[35m (4.1ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1241
|
+
[1m[36m (4.9ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1242
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1243
|
+
[1m[36m (5.2ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1244
|
+
[1m[35m (4.8ms)[0m DROP TABLE "commontator_subscriptions"
|
1245
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1246
|
+
[1m[35m (4.8ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1247
|
+
[1m[36m (5.0ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1248
|
+
[1m[35m (4.7ms)[0m DROP TABLE "commontator_threads"
|
1249
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1250
|
+
[1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1251
|
+
[1m[36m (4.8ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1252
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1253
|
+
[1m[36m (6.2ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1254
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1255
|
+
[1m[36m (5.0ms)[0m [1mDROP TABLE "votes"[0m
|
1256
|
+
[1m[35m (4.3ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1257
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1258
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1259
|
+
[1m[36m (4.8ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1260
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1261
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1262
|
+
Connecting to database specified by database.yml
|
1263
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1264
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
1265
|
+
[1m[36m (14.3ms)[0m [1mDROP TABLE "commontator_comments"[0m
|
1266
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text DEFAULT '' NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1267
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")[0m
|
1268
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")
|
1269
|
+
[1m[36m (4.6ms)[0m [1mCREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")[0m
|
1270
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")
|
1271
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")[0m
|
1272
|
+
[1m[35m (4.9ms)[0m DROP TABLE "commontator_subscriptions"
|
1273
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1274
|
+
[1m[35m (4.9ms)[0m CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")
|
1275
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")[0m
|
1276
|
+
[1m[35m (4.7ms)[0m DROP TABLE "commontator_threads"
|
1277
|
+
[1m[36m (4.3ms)[0m [1mCREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1278
|
+
[1m[35m (4.5ms)[0m CREATE UNIQUE INDEX "index_commontator_threads_on_commontable_type_and_commontable_id" ON "commontator_threads" ("commontable_type", "commontable_id")
|
1279
|
+
[1m[36m (4.7ms)[0m [1mDROP TABLE "dummy_models"[0m
|
1280
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1281
|
+
[1m[36m (5.3ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1282
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1283
|
+
[1m[36m (4.9ms)[0m [1mDROP TABLE "votes"[0m
|
1284
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1285
|
+
[1m[36m (4.3ms)[0m [1mCREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")[0m
|
1286
|
+
[1m[35m (3.8ms)[0m CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")
|
1287
|
+
[1m[36m (4.7ms)[0m [1mCREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")[0m
|
1288
|
+
[1m[35m (3.8ms)[0m CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")
|
1289
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|