aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/database
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2017-10-13 20:47:56 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2017-10-13 20:47:56 +0300
commitf1e47b0348bd6c18dd94659af549a25684ca78ff (patch)
tree61a1775f824793b2a928f042a4e825b304819648 /activestorage/test/database
parent9434a0047af7bb71fd3a9a25d09b79e29d1395b6 (diff)
downloadrails-f1e47b0348bd6c18dd94659af549a25684ca78ff.tar.gz
rails-f1e47b0348bd6c18dd94659af549a25684ca78ff.tar.bz2
rails-f1e47b0348bd6c18dd94659af549a25684ca78ff.zip
Define path with __dir__ in activestorage/
Related to #29176
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 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)