From ef1445a5b9e2dca4c9c0aeb451e0c9e72033c1a7 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 5 May 2020 13:18:50 -0500 Subject: [PATCH] Add houdini_upgrade to relevant filenames --- .../cw_to_activestorage/cw_to_activestorage_generator.rb | 2 +- gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 809a292d..393582f7 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 @@ -36,7 +36,7 @@ class CwToActivestorageGenerator < Rails::Generators::Base def create_column_migration_file if (Dir.glob("db/migrate/*_rename_uploader_columns.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.rb" + "db/migrate/#{(DateTime.now.utc + 1.second).strftime('%Y%m%d%H%M%S')}_rename_uploader_columns.houdini_upgrade.rb" end end diff --git a/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake b/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake index d7808d6b..a6c2fe8e 100644 --- a/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake +++ b/gems/houdini_upgrade/lib/tasks/houdini_upgrade_tasks.rake @@ -111,14 +111,14 @@ end if (Dir.glob("db/migrate/*_backup_uploader_columns.rb").none?) byebug 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.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?) 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.rb" + "db/migrate/#{(DateTime.now + 1.second).strftime('%Y%m%d%H%M%S')}_delete_uploader_backup_tables.houdini_upgrade.rb" end end