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

Closes #44121.
This commit is contained in:
Andreas Brandl 2018-03-12 18:24:36 +01:00
parent 04505c3399
commit 6379a849c0
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ require 'rails/generators'
module Rails
class PostDeploymentMigrationGenerator < Rails::Generators::NamedBase
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"
end