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 diff --git a/test/database/create_users_migration.rb b/test/database/create_users_migration.rb index 15be1938a9..a0b72a90ee 100644 --- a/test/database/create_users_migration.rb +++ b/test/database/create_users_migration.rb @@ -1,4 +1,4 @@ -class ActiveStorage::CreateUsers < ActiveRecord::Migration[5.1] +class ActiveStorageCreateUsers < ActiveRecord::Migration[5.1] def change create_table :users do |t| t.string :name diff --git a/test/database/setup.rb b/test/database/setup.rb index 828edd86dd..5921412b0c 100644 --- a/test/database/setup.rb +++ b/test/database/setup.rb @@ -2,5 +2,5 @@ require "active_storage/migration" require_relative "create_users_migration" ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') -ActiveStorage::CreateTables.migrate(:up) -ActiveStorage::CreateUsers.migrate(:up) +ActiveStorageCreateTables.migrate(:up) +ActiveStorageCreateUsers.migrate(:up)