diff options
-rw-r--r-- | lib/active_vault/blob.rb | 2 | ||||
-rw-r--r-- | lib/active_vault/migration.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_vault/blob.rb b/lib/active_vault/blob.rb index 4948d43ec7..d090d6dad2 100644 --- a/lib/active_vault/blob.rb +++ b/lib/active_vault/blob.rb @@ -3,7 +3,7 @@ require "active_vault/filename" # Schema: id, key, filename, content_type, metadata, byte_size, checksum, created_at class ActiveVault::Blob < ActiveRecord::Base - self.table_name = "rails_blobs" + self.table_name = "active_vault_blobs" has_secure_token :key store :metadata, coder: JSON diff --git a/lib/active_vault/migration.rb b/lib/active_vault/migration.rb index cc7a535f39..b3c66428ce 100644 --- a/lib/active_vault/migration.rb +++ b/lib/active_vault/migration.rb @@ -1,10 +1,10 @@ class ActiveVault::CreateBlobs < ActiveRecord::Migration[5.1] def change - create_table :rails_blobs do |t| t.string :key t.string :filename t.string :content_type t.text :metadata + create_table :active_vault_blobs do |t| t.integer :byte_size t.string :checksum t.time :created_at |