summaryrefslogtreecommitdiff
path: root/lib/generators
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-12 18:24:36 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-03-12 18:24:36 +0100
commit6379a849c0a9ab004f68307dac5375443f3e49fa (patch)
tree80dfd4e6ea62eee6b731944cd16bd6d6c7758a42 /lib/generators
parent04505c3399388c124fc4b1da9e8a5491f8d6a0ca (diff)
downloadgitlab-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.rb2
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