commontator 1.1.3 → 2.0.0

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