From 094ec095769e4f8f48f3370b997ad8a2f4d1aecf Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 28 Oct 2015 16:00:34 +0100 Subject: [PATCH] Adds migration for comment.confidence_score --- .../20151028145921_add_confidence_score_to_comments.rb | 5 +++++ db/schema.rb | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20151028145921_add_confidence_score_to_comments.rb diff --git a/db/migrate/20151028145921_add_confidence_score_to_comments.rb b/db/migrate/20151028145921_add_confidence_score_to_comments.rb new file mode 100644 index 000000000..636b648bb --- /dev/null +++ b/db/migrate/20151028145921_add_confidence_score_to_comments.rb @@ -0,0 +1,5 @@ +class AddConfidenceScoreToComments < ActiveRecord::Migration + def change + add_column :comments, :confidence_score, :integer, index: true + end +end diff --git a/db/schema.rb b/db/schema.rb index 436fe1b7f..67626bf0b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,8 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20151021113348) do +ActiveRecord::Schema.define(version: 20151028145921) do + # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -72,6 +73,7 @@ ActiveRecord::Schema.define(version: 20151021113348) do t.integer "cached_votes_down", default: 0 t.datetime "confirmed_hide_at" t.string "ancestry" + t.integer "confidence_score" end add_index "comments", ["ancestry"], name: "index_comments_on_ancestry", using: :btree