From 007ca4afe08dc6182386de600354d1d21e373776 Mon Sep 17 00:00:00 2001 From: kikito Date: Fri, 21 Aug 2015 20:34:56 +0200 Subject: [PATCH] Adds reviewed_at to comments and debates tables --- db/migrate/20150821180131_add_reviewed_at_to_comments.rb | 5 +++++ db/migrate/20150821180155_add_reviewed_at_to_debates.rb | 5 +++++ db/schema.rb | 6 ++++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20150821180131_add_reviewed_at_to_comments.rb create mode 100644 db/migrate/20150821180155_add_reviewed_at_to_debates.rb diff --git a/db/migrate/20150821180131_add_reviewed_at_to_comments.rb b/db/migrate/20150821180131_add_reviewed_at_to_comments.rb new file mode 100644 index 000000000..b854002ac --- /dev/null +++ b/db/migrate/20150821180131_add_reviewed_at_to_comments.rb @@ -0,0 +1,5 @@ +class AddReviewedAtToComments < ActiveRecord::Migration + def change + add_column :comments, :reviewed_at, :datetime + end +end diff --git a/db/migrate/20150821180155_add_reviewed_at_to_debates.rb b/db/migrate/20150821180155_add_reviewed_at_to_debates.rb new file mode 100644 index 000000000..c02ed3e3b --- /dev/null +++ b/db/migrate/20150821180155_add_reviewed_at_to_debates.rb @@ -0,0 +1,5 @@ +class AddReviewedAtToDebates < ActiveRecord::Migration + def change + add_column :debates, :reviewed_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 1619b85cd..fa65f765c 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: 20150820104552) do +ActiveRecord::Schema.define(version: 20150821180155) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -51,6 +51,7 @@ ActiveRecord::Schema.define(version: 20150820104552) do t.datetime "hidden_at" t.datetime "flagged_as_inappropiate_at" t.integer "inappropiate_flags_count", default: 0 + t.datetime "reviewed_at" end add_index "comments", ["commentable_id", "commentable_type"], name: "index_comments_on_commentable_id_and_commentable_type", using: :btree @@ -67,6 +68,7 @@ ActiveRecord::Schema.define(version: 20150820104552) do t.string "visit_id" t.datetime "flagged_as_inappropiate_at" t.integer "inappropiate_flags_count", default: 0 + t.datetime "reviewed_at" end add_index "debates", ["hidden_at"], name: "index_debates_on_hidden_at", using: :btree @@ -153,12 +155,12 @@ ActiveRecord::Schema.define(version: 20150820104552) do t.datetime "confirmation_sent_at" t.string "unconfirmed_email" t.string "nickname" + t.string "phone_number", limit: 30 t.boolean "use_nickname", default: false, null: false t.boolean "email_on_debate_comment", default: false t.boolean "email_on_comment_reply", default: false t.string "official_position" t.integer "official_level", default: 0 - t.string "phone_number", limit: 30 t.datetime "hidden_at" end