From f1e47b0348bd6c18dd94659af549a25684ca78ff Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Fri, 13 Oct 2017 20:47:56 +0300 Subject: Define path with __dir__ in activestorage/ Related to #29176 --- activestorage/test/database/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/test/database/setup.rb') diff --git a/activestorage/test/database/setup.rb b/activestorage/test/database/setup.rb index 87564499e6..705650a25d 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", __FILE__) +ActiveRecord::Migrator.migrate File.expand_path("../../db/migrate", __dir__) ActiveStorageCreateUsers.migrate(:up) -- cgit v1.2.3