Added Paperclip attachment handler
This commit is contained in:
parent
9ce7de03b1
commit
7aca36e46b
4 changed files with 30 additions and 6 deletions
17
db/schema.rb
17
db/schema.rb
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20141229173351) do
|
||||
ActiveRecord::Schema.define(version: 20150103194230) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -41,16 +41,21 @@ ActiveRecord::Schema.define(version: 20141229173351) do
|
|||
|
||||
create_table "screenshots", force: :cascade do |t|
|
||||
t.integer "package_id"
|
||||
t.string "version", limit: 50
|
||||
t.string "version", limit: 50
|
||||
t.datetime "uploaddatetime"
|
||||
t.string "uploaderhash", limit: 72
|
||||
t.string "uploaderip", limit: 15
|
||||
t.string "uploaderhash", limit: 72
|
||||
t.string "uploaderip", limit: 15
|
||||
t.boolean "approved"
|
||||
t.boolean "markedfordelete"
|
||||
t.string "delete_reason", limit: 100
|
||||
t.string "description", limit: 40
|
||||
t.string "delete_reason", limit: 100
|
||||
t.string "description", limit: 40
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "image_file_name"
|
||||
t.string "image_content_type"
|
||||
t.integer "image_file_size"
|
||||
t.datetime "image_updated_at"
|
||||
t.string "image_fingerprint"
|
||||
end
|
||||
|
||||
add_index "screenshots", ["id", "approved"], name: "id_approved", using: :btree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue