Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove after_initialize block

Oliver Günthere816b2a795f0
diff --git a/config/initializers/postgresql_timestamp.rb b/config/initializers/postgresql_timestamp.rb
index 8804d89e586..30687f10a21 100644
--- a/config/initializers/postgresql_timestamp.rb
+++ b/config/initializers/postgresql_timestamp.rb
@@ -1,4 +1,2 @@
-Rails.application.config.after_initialize do
- # Use timestampz to create new timestamp columns, so that we get WITH TIME ZONE support
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.datetime_type = :timestamptz
-end
+# Use timestampz to create new timestamp columns, so that we get WITH TIME ZONE support
+ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.datetime_type = :timestamptz