Allow hiding and un-hiding of screenshot by moderators

This commit is contained in:
Christoph Haas 2021-03-10 01:04:28 +01:00
parent f31502c333
commit 5d0e4a520e
6 changed files with 62 additions and 10 deletions

View file

@ -0,0 +1,5 @@
class AddHiddenFieldToScreenshots < ActiveRecord::Migration[6.1]
def change
add_column :screenshots, :hidden, :boolean, default: false
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_03_03_213303) do
ActiveRecord::Schema.define(version: 2021_03_09_233239) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -96,6 +96,7 @@ ActiveRecord::Schema.define(version: 2021_03_03_213303) do
t.integer "user_id", default: 0
t.text "simage_data"
t.inet "uploaderip"
t.boolean "hidden", default: false
t.index ["id", "approved"], name: "id_approved"
t.index ["id", "uploaderhash"], name: "id_uploaderhash"
end