From 571509ad12bf3bcb3190efd7494a38c4796302b8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 5 Jul 2017 13:06:29 +0200 Subject: Rename from ActiveFile to ActiveVault since activefile gem name was taken --- lib/active_vault/migration.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/active_vault/migration.rb (limited to 'lib/active_vault/migration.rb') diff --git a/lib/active_vault/migration.rb b/lib/active_vault/migration.rb new file mode 100644 index 0000000000..cc7a535f39 --- /dev/null +++ b/lib/active_vault/migration.rb @@ -0,0 +1,15 @@ +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 + t.integer :byte_size + t.string :checksum + t.time :created_at + + t.index [ :key ], unique: true + end + end +end -- cgit v1.2.3