Skip to content
Snippets Groups Projects
Commit 674882fe authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch '49631-fix-dangerfile-schema-rb' into 'master'

Resolve "Dangerfile reporting that db/schema.rb wasn't updated"

Closes #49631

See merge request gitlab-org/gitlab-ce!20852
parents 33aa3ca8 8f4745de
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -41,8 +41,8 @@ end
 
all_files = git.added_files + git.modified_files
 
non_geo_db_schema_updated = !git.modified_files.grep(%r{\Adb/schema\.rb/}).empty?
geo_db_schema_updated = !git.modified_files.grep(%r{\Aee/db/geo/schema\.rb/}).empty?
non_geo_db_schema_updated = !git.modified_files.grep(%r{\Adb/schema\.rb}).empty?
geo_db_schema_updated = !git.modified_files.grep(%r{\Aee/db/geo/schema\.rb}).empty?
 
non_geo_migration_created = !git.added_files.grep(%r{\A(db/(post_)?migrate)/}).empty?
geo_migration_created = !git.added_files.grep(%r{\Aee/db/geo/(post_)?migrate/}).empty?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment