aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_file/blob.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-03 18:38:47 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-03 18:38:47 +0200
commit118b183be33227c74f63ee6b08a15b9367d29b3e (patch)
tree6451670299087643af2dd639a802163551b8804e /lib/active_file/blob.rb
parent18fe123cd11358491ecb301c9c2783a6fb2f7d10 (diff)
downloadrails-118b183be33227c74f63ee6b08a15b9367d29b3e.tar.gz
rails-118b183be33227c74f63ee6b08a15b9367d29b3e.tar.bz2
rails-118b183be33227c74f63ee6b08a15b9367d29b3e.zip
Use rails_blobs for table to mimic routes prefix etc
Diffstat (limited to 'lib/active_file/blob.rb')
-rw-r--r--lib/active_file/blob.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_file/blob.rb b/lib/active_file/blob.rb
index 98bbcd057f..938f6d86b5 100644
--- a/lib/active_file/blob.rb
+++ b/lib/active_file/blob.rb
@@ -2,7 +2,7 @@ require "active_file/site"
# Schema: id, key, filename, content_type, metadata, byte_size, checksum, created_at
class ActiveFile::Blob < ActiveRecord::Base
- self.table_name = "active_file_blobs"
+ self.table_name = "rails_blobs"
has_secure_token :key
store :metadata, coder: JSON