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
This commit is contained in:
commit
198495adf4
|
@ -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 New Issue