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

Call .reset_column_in_all_models! before migrating in MigrationsHelpers.schema_migrate_up!


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent d1eac99b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
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