Allow hiding and un-hiding of screenshot by moderators
This commit is contained in:
parent
f31502c333
commit
5d0e4a520e
6 changed files with 62 additions and 10 deletions
|
|
@ -0,0 +1,5 @@
|
|||
class AddHiddenFieldToScreenshots < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :screenshots, :hidden, :boolean, default: false
|
||||
end
|
||||
end
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue