Commit 6379a849 authored by Andreas Brandl's avatar Andreas Brandl

Fix timestamp to include %M instead of %I for post-deploy migrations.

Closes #44121.
parent 04505c33
...@@ -3,7 +3,7 @@ require 'rails/generators' ...@@ -3,7 +3,7 @@ require 'rails/generators'
module Rails module Rails
class PostDeploymentMigrationGenerator < Rails::Generators::NamedBase class PostDeploymentMigrationGenerator < Rails::Generators::NamedBase
def create_migration_file def create_migration_file
timestamp = Time.now.strftime('%Y%m%d%H%I%S') timestamp = Time.now.strftime('%Y%m%d%H%M%S')
template "migration.rb", "db/post_migrate/#{timestamp}_#{file_name}.rb" template "migration.rb", "db/post_migrate/#{timestamp}_#{file_name}.rb"
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