hide_reviewed_at -> confirmed_hide_at

This commit is contained in:
kikito
2015-08-27 12:23:10 +02:00
parent cd982768f2
commit 4ab5ab722e
3 changed files with 11 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
class AddConfirmedHideAtToCommentsAndDebates < ActiveRecord::Migration
def change
add_column :debates, :confirmed_hide_at, :datetime
add_column :comments, :confirmed_hide_at, :datetime
end
end

View File

@@ -1,6 +1,6 @@
class AddHideReviewedAtToCommentsAndDebates < ActiveRecord::Migration
class AddConfirmedHideAtToCommentsAndDebates < ActiveRecord::Migration
def change
add_column :debates, :hide_reviewed_at, :datetime
add_column :comments, :hide_reviewed_at, :datetime
add_column :debates, :confirmed_hide_at, :datetime
add_column :comments, :confirmed_hide_at, :datetime
end
end

View File

@@ -56,7 +56,7 @@ ActiveRecord::Schema.define(version: 20150827083232) do
t.integer "cached_votes_total", default: 0
t.integer "cached_votes_up", default: 0
t.integer "cached_votes_down", default: 0
t.datetime "hide_reviewed_at"
t.datetime "confirmed_hide_at"
end
add_index "comments", ["cached_votes_down"], name: "index_comments_on_cached_votes_down", using: :btree
@@ -80,7 +80,7 @@ ActiveRecord::Schema.define(version: 20150827083232) do
t.integer "cached_votes_down", default: 0
t.datetime "ignored_flag_at"
t.integer "comments_count", default: 0
t.datetime "hide_reviewed_at"
t.datetime "confirmed_hide_at"
end
add_index "debates", ["cached_votes_down"], name: "index_debates_on_cached_votes_down", using: :btree