diff options
| author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-29 12:12:00 +0200 |
|---|---|---|
| committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-29 12:12:00 +0200 |
| commit | 3577009ad84fbd6b90b4702f06290980ebd4771a (patch) | |
| tree | 37287ec8b35c16df706fc32fb3c73faef25c1aad | |
| parent | 869b7b31cfd03d8245048b3678a84e88279af11e (diff) | |
| download | gitlab-ce-3577009ad84fbd6b90b4702f06290980ebd4771a.tar.gz | |
Increase isolation of database migrations test models
| -rw-r--r-- | spec/support/migrations_helpers.rb | 5 |
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 |
