summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-29 12:12:00 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-29 12:12:00 +0200
commit3577009ad84fbd6b90b4702f06290980ebd4771a (patch)
tree37287ec8b35c16df706fc32fb3c73faef25c1aad
parent869b7b31cfd03d8245048b3678a84e88279af11e (diff)
downloadgitlab-ce-3577009ad84fbd6b90b4702f06290980ebd4771a.tar.gz
Increase isolation of database migrations test models
-rw-r--r--spec/support/migrations_helpers.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/support/migrations_helpers.rb b/spec/support/migrations_helpers.rb
index 6bf976a2cf9..5d6f662e8fe 100644
--- a/spec/support/migrations_helpers.rb
+++ b/spec/support/migrations_helpers.rb
@@ -1,6 +1,9 @@
module MigrationsHelpers
def table(name)
- Class.new(ActiveRecord::Base) { self.table_name = name }
+ Class.new(ActiveRecord::Base) do
+ self.table_name = name
+ self.inheritance_column = :_type_disabled
+ end
end
def migrations_paths