Adds migration for comment.confidence_score

This commit is contained in:
kikito
2015-10-28 16:00:34 +01:00
parent e4bfc72649
commit 094ec09576
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddConfidenceScoreToComments < ActiveRecord::Migration
def change
add_column :comments, :confidence_score, :integer, index: true
end
end

View File

@@ -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