Commit 5912d9b7 authored by Rémy Coutable's avatar Rémy Coutable

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
...@@ -58,6 +58,8 @@ module MigrationsHelpers ...@@ -58,6 +58,8 @@ module MigrationsHelpers
end end
def schema_migrate_up! def schema_migrate_up!
reset_column_in_all_models
disable_migrations_output do disable_migrations_output do
ActiveRecord::Migrator.migrate(migrations_paths) ActiveRecord::Migrator.migrate(migrations_paths)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment