diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-01-18 09:35:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-18 09:35:14 -0500 |
commit | 6e74e1d1279713d0e2a523241982c0222bacab97 (patch) | |
tree | 4216f28abaea44e1126960271c84b8cc84cafb1c /activestorage | |
parent | 51c5bcbb39777b3861a44042a598bfb07d4e1fc1 (diff) | |
parent | a2827ec9811b5012e8e366011fd44c8eb53fc714 (diff) | |
download | rails-6e74e1d1279713d0e2a523241982c0222bacab97.tar.gz rails-6e74e1d1279713d0e2a523241982c0222bacab97.tar.bz2 rails-6e74e1d1279713d0e2a523241982c0222bacab97.zip |
Merge pull request #31727 from eileencodes/refactor-migration-classes-to-allow-for-migrations_paths-on-conn
Refactor migration to move migrations paths to connection
Diffstat (limited to 'activestorage')
-rw-r--r-- | activestorage/test/database/setup.rb | 2 |
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) |