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:
parent
dd50144bcd
commit
2ea3ef9f77
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue