summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-02-12 15:33:39 +0100
committerRémy Coutable <remy@rymai.me>2018-02-12 16:54:21 +0100
commit5912d9b70b35769b7da468113ea6680ef8cbc309 (patch)
tree191ed94287a8531c93e3a61bea4a015454397993
parentd1eac99b92635429eb0ea4e11c6f61e0494f9eb7 (diff)
downloadgitlab-ce-5912d9b70b35769b7da468113ea6680ef8cbc309.tar.gz
Call .reset_column_in_all_models! before migrating in MigrationsHelpers.schema_migrate_up!
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--spec/support/migrations_helpers.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/migrations_helpers.rb b/spec/support/migrations_helpers.rb
index 06322aa0586..9a151439486 100644
--- a/spec/support/migrations_helpers.rb
+++ b/spec/support/migrations_helpers.rb
@@ -58,6 +58,8 @@ module MigrationsHelpers
end
def schema_migrate_up!
+ reset_column_in_all_models
+
disable_migrations_output do
ActiveRecord::Migrator.migrate(migrations_paths)
end