aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/database
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/test/database')
-rw-r--r--activestorage/test/database/setup.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/test/database/setup.rb b/activestorage/test/database/setup.rb
index 705650a25d..daeeb5695b 100644
--- a/activestorage/test/database/setup.rb
+++ b/activestorage/test/database/setup.rb
@@ -3,5 +3,5 @@
require_relative "create_users_migration"
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
-ActiveRecord::Migrator.migrate File.expand_path("../../db/migrate", __dir__)
+ActiveRecord::Base.connection.migration_context.migrate
ActiveStorageCreateUsers.migrate(:up)