diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-05 15:07:22 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-05 15:07:22 +0200 |
commit | 3a92cbf6b358c983f3b1b9f628fb441e051a9984 (patch) | |
tree | b99d24e16b08e3aa72a56b0b49f0ba149fa38f03 /lib/active_vault | |
parent | f008fe3947e8f0ecd326efa18d14dd0363db93a1 (diff) | |
download | rails-3a92cbf6b358c983f3b1b9f628fb441e051a9984.tar.gz rails-3a92cbf6b358c983f3b1b9f628fb441e051a9984.tar.bz2 rails-3a92cbf6b358c983f3b1b9f628fb441e051a9984.zip |
Use active_vault as the table prefix
At least pretend this can be used outside of Rails as well
Diffstat (limited to 'lib/active_vault')
-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 |