Fix timestamp to include %M instead of %I for post-deploy migrations.
Closes #44121.
This commit is contained in:
parent
04505c3399
commit
6379a849c0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue