diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-17 12:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-17 12:09:24 +0300 |
commit | 877f19a2a14088de365f16ff4f95e5a8d96f8726 (patch) | |
tree | 1eea037ce2a7f64565ada9d8060d3684eb22bc22 /spec/migrations | |
parent | 4f45a841a19e1d2ec32d3c0dd256978251c11061 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/active_record/schema_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/migrations/active_record/schema_spec.rb b/spec/migrations/active_record/schema_spec.rb index 4a505c51a16..042b5710dce 100644 --- a/spec/migrations/active_record/schema_spec.rb +++ b/spec/migrations/active_record/schema_spec.rb @@ -7,7 +7,7 @@ require 'spec_helper' RSpec.describe ActiveRecord::Schema, schema: :latest do let(:all_migrations) do - migrations_directories = %w[db/migrate db/post_migrate].map { |path| Rails.root.join(path).to_s } + migrations_directories = Rails.application.paths["db/migrate"].paths.map(&:to_s) migrations_paths = migrations_directories.map { |path| File.join(path, '*') } migrations = Dir[*migrations_paths] - migrations_directories |