From 61267ca9a2d813de24bd1196f1bd23355140eb60 Mon Sep 17 00:00:00 2001 From: Michael Kozono Date: Mon, 11 Dec 2017 12:16:02 -0800 Subject: [PATCH] Ignore temporary table in schema --- .../mk-fix-schema-dump-of-untracked-files-for-uploads.yml | 5 +++++ config/initializers/active_record_schema_ignore_tables.rb | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 changelogs/unreleased/mk-fix-schema-dump-of-untracked-files-for-uploads.yml create mode 100644 config/initializers/active_record_schema_ignore_tables.rb diff --git a/changelogs/unreleased/mk-fix-schema-dump-of-untracked-files-for-uploads.yml b/changelogs/unreleased/mk-fix-schema-dump-of-untracked-files-for-uploads.yml new file mode 100644 index 00000000000..2691e85320c --- /dev/null +++ b/changelogs/unreleased/mk-fix-schema-dump-of-untracked-files-for-uploads.yml @@ -0,0 +1,5 @@ +--- +title: Fix error during schema dump. +merge_request: 15866 +author: +type: fixed diff --git a/config/initializers/active_record_schema_ignore_tables.rb b/config/initializers/active_record_schema_ignore_tables.rb new file mode 100644 index 00000000000..661135f8ade --- /dev/null +++ b/config/initializers/active_record_schema_ignore_tables.rb @@ -0,0 +1,2 @@ +# Ignore table used temporarily in background migration +ActiveRecord::SchemaDumper.ignore_tables = ["untracked_files_for_uploads"]