1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use key instead of token

More familiar in this context
This commit is contained in:
David Heinemeier Hansson 2017-07-01 00:02:30 +02:00
parent dd50144bcd
commit 2ea3ef9f77

View file

@ -1,9 +1,9 @@
# Schema: id, token, filename, content_type, metadata, byte_size, digest, created_at
# Schema: id, key, filename, content_type, metadata, byte_size, digest, created_at
class ActiveFile::Blob < ActiveRecord::Base
self.table_name = "rails_active_file_blobs"
has_secure_token :key
store :metadata, coder: JSON
has_secure_token
class_attribute :verifier, default: -> { Rails.application.message_verifier('ActiveFile') }
class_attribute :storage