From fb88ff78b312edacc83db783ffa48cec15fd0764 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Thu, 6 Jul 2017 21:53:51 +0200 Subject: Fix the migration class name Due to Active Support auto loading feature, the migration class shouldn't be name-spaced under the `ActiveStorage` constant, otherwise, running the migrations would throw an error. --- lib/active_storage/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/active_storage') diff --git a/lib/active_storage/migration.rb b/lib/active_storage/migration.rb index c0400abe3b..fe08e80127 100644 --- a/lib/active_storage/migration.rb +++ b/lib/active_storage/migration.rb @@ -1,4 +1,4 @@ -class ActiveStorage::CreateTables < ActiveRecord::Migration[5.1] +class ActiveStorageCreateTables < ActiveRecord::Migration[5.1] def change create_table :active_storage_blobs do |t| t.string :key -- cgit v1.2.3