diff --git a/gems/houdini_upgrade/lib/generators/cw_to_activestorage/cw_to_activestorage_generator.rb b/gems/houdini_upgrade/lib/generators/cw_to_activestorage/cw_to_activestorage_generator.rb index 393582f7..8b225fee 100644 --- a/gems/houdini_upgrade/lib/generators/cw_to_activestorage/cw_to_activestorage_generator.rb +++ b/gems/houdini_upgrade/lib/generators/cw_to_activestorage/cw_to_activestorage_generator.rb @@ -34,7 +34,7 @@ class CwToActivestorageGenerator < Rails::Generators::Base end def create_column_migration_file - if (Dir.glob("db/migrate/*_rename_uploader_columns.rb").none?) + if (Dir.glob("db/migrate/*_rename_uploader_columns.houdini_upgrade.rb").none?) copy_file "migrate/rename_uploader_columns.rb", "db/migrate/#{(DateTime.now.utc + 1.second).strftime('%Y%m%d%H%M%S')}_rename_uploader_columns.houdini_upgrade.rb" end diff --git a/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake b/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake index 17ab085d..037a3ab8 100644 --- a/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake +++ b/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake @@ -107,14 +107,14 @@ end end task :create_backup_uploader_migration do - if (Dir.glob("db/migrate/*_backup_uploader_columns.rb").none?) + if (Dir.glob("db/migrate/*_backup_uploader_columns.houdini_upgrade.rb").none?) FileUtils.cp __dir__ + "/templates/backup_uploader_columns.rb", "db/migrate/#{(DateTime.now.utc + 1.second).strftime('%Y%m%d%H%M%S')}_backup_uploader_columns.houdini_upgrade.rb" end end task :delete_uploader_backup_tables_migration do - if (Dir.glob("db/migrate/*_backup_uploader_columns.rb").none?) + if (Dir.glob("db/migrate/*_backup_uploader_columns.houdini_upgrade.rb").none?) FileUtils.cp __dir + "/templates/delete_uploader_backup_tables.rb", "db/migrate/#{(DateTime.now + 1.second).strftime('%Y%m%d%H%M%S')}_delete_uploader_backup_tables.houdini_upgrade.rb" end