Commit 5328ae9b authored by Yorick Peterse's avatar Yorick Peterse

Merge branch...

Merge branch '35175-post_deployment_migration-generator-should-use-same-timezone-settings-as-rails-database' into 'master'

Resolve "post_deployment_migration generator should use same timezone settings as rails database migrations"

Closes #35175

See merge request gitlab-org/gitlab!19316
parents 8262749a c27a6849
...@@ -5,7 +5,7 @@ require 'rails/generators' ...@@ -5,7 +5,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%M%S') timestamp = Time.now.utc.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