diff --git a/db/migrate/20150824113326_add_administrator_id_to_comment.rb b/db/migrate/20150824113326_add_administrator_id_to_comment.rb new file mode 100644 index 000000000..7be8274cb --- /dev/null +++ b/db/migrate/20150824113326_add_administrator_id_to_comment.rb @@ -0,0 +1,5 @@ +class AddAdministratorIdToComment < ActiveRecord::Migration + def change + add_column :comments, :administrator_id, :integer, default: nil + end +end diff --git a/db/schema.rb b/db/schema.rb index 040d21d10..12e457a1c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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