diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-12 18:24:36 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-12 18:24:36 +0100 |
commit | 6379a849c0a9ab004f68307dac5375443f3e49fa (patch) | |
tree | 80dfd4e6ea62eee6b731944cd16bd6d6c7758a42 /lib/generators | |
parent | 04505c3399388c124fc4b1da9e8a5491f8d6a0ca (diff) | |
download | gitlab-ce-6379a849c0a9ab004f68307dac5375443f3e49fa.tar.gz |
Fix timestamp to include %M instead of %I for post-deploy migrations.ab-44121-post-deploy-migrations-time-format
Closes #44121.
Diffstat (limited to 'lib/generators')
-rw-r--r-- | lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb b/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb index 7cb4bccb23c..91175b49c79 100644 --- a/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb +++ b/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb @@ -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 |