adds administrator_id to comments

This commit is contained in:
Juanjo Bazán
2015-08-24 17:22:31 +02:00
committed by Juanjo Bazán
parent 42348511e1
commit 46643185f8
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddAdministratorIdToComment < ActiveRecord::Migration
def change
add_column :comments, :administrator_id, :integer, default: nil
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150821180155) do
ActiveRecord::Schema.define(version: 20150824113326) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -52,6 +52,8 @@ ActiveRecord::Schema.define(version: 20150821180155) do
t.datetime "flagged_as_inappropiate_at"
t.integer "inappropiate_flags_count", default: 0
t.datetime "reviewed_at"
t.integer "moderator_id"
t.integer "administrator_id"
end
add_index "comments", ["commentable_id", "commentable_type"], name: "index_comments_on_commentable_id_and_commentable_type", using: :btree