Commit d7c52af8 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 329df0a6
...@@ -60,6 +60,8 @@ module MigrationsHelpers ...@@ -60,6 +60,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