summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-29 12:27:13 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-29 14:09:24 +0200
commit9a9ffa934422d0bc676096347417fc5bd1df287e (patch)
treeb6f269ba1f1357231c7fa94e3126739d9ef3d0db /config
parent8a9e2415ca92897f2920127b7c1986a7c33d2035 (diff)
downloadgitlab-ce-9a9ffa934422d0bc676096347417fc5bd1df287e.tar.gz
Make `ActiveRecord::Migrator` idempotent again in test envfix/gb/improve-active-record-test-extensions
Diffstat (limited to 'config')
-rw-r--r--config/initializers/ar_speed_up_migration_checking.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/ar_speed_up_migration_checking.rb b/config/initializers/ar_speed_up_migration_checking.rb
index 1fe5defc01d..aae774daa35 100644
--- a/config/initializers/ar_speed_up_migration_checking.rb
+++ b/config/initializers/ar_speed_up_migration_checking.rb
@@ -10,7 +10,7 @@ if Rails.env.test?
# it reads + parses `db/migrate/*` each time. Memoizing it can save 0.5
# seconds per spec.
def migrations(paths)
- @migrations ||= migrations_unmemoized(paths)
+ (@migrations ||= migrations_unmemoized(paths)).dup
end
end
end