Approved field is now false by default

This commit is contained in:
Christoph Haas 2016-04-08 16:42:46 +02:00
parent 7cd48ed7d6
commit 79d16b1ce0
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class AddDefaultToScreenshotApproved < ActiveRecord::Migration
def change
change_column :screenshots, :approved, :boolean, default: false, null: false
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160304140037) do
ActiveRecord::Schema.define(version: 20160408143714) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -48,7 +48,7 @@ ActiveRecord::Schema.define(version: 20160304140037) do
t.datetime "created_at"
t.string "uploaderhash", limit: 72
t.string "uploaderip", limit: 15
t.boolean "approved"
t.boolean "approved", default: false, null: false
t.boolean "markedfordelete"
t.string "delete_reason", limit: 100
t.string "description", limit: 40