From 18fe123cd11358491ecb301c9c2783a6fb2f7d10 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 3 Jul 2017 17:07:17 +0200 Subject: Fix index --- lib/active_file/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/active_file/migration.rb b/lib/active_file/migration.rb index a6f398106e..041e29ef3b 100644 --- a/lib/active_file/migration.rb +++ b/lib/active_file/migration.rb @@ -8,7 +8,7 @@ class ActiveFile::CreateBlobs < ActiveRecord::Migration[5.1] t.string :checksum t.time :created_at - t.index [ :token ], unique: true + t.index [ :key ], unique: true end end end -- cgit v1.2.3