Commit 198495ad authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'ab-44121-post-deploy-migrations-time-format' into 'master'

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

Closes #44121

See merge request gitlab-org/gitlab-ce!17699
parents 04a3deda 6379a849
...@@ -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