Approved field is now false by default
This commit is contained in:
parent
7cd48ed7d6
commit
79d16b1ce0
2 changed files with 7 additions and 2 deletions
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddDefaultToScreenshotApproved < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column :screenshots, :approved, :boolean, default: false, null: false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
|
@ -48,7 +48,7 @@ ActiveRecord::Schema.define(version: 20160304140037) do
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.string "uploaderhash", limit: 72
|
t.string "uploaderhash", limit: 72
|
||||||
t.string "uploaderip", limit: 15
|
t.string "uploaderip", limit: 15
|
||||||
t.boolean "approved"
|
t.boolean "approved", default: false, null: false
|
||||||
t.boolean "markedfordelete"
|
t.boolean "markedfordelete"
|
||||||
t.string "delete_reason", limit: 100
|
t.string "delete_reason", limit: 100
|
||||||
t.string "description", limit: 40
|
t.string "description", limit: 40
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue