fix auto migration

This commit is contained in:
Alex Turchyn committed 2023-07-26 22:17:13 +03:00
1 parent df1d78897a
commit db7e3794d9
1 file changed
+2
+2
View File
@@ -1,3 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
Rails.configuration.to_prepare do
ActiveRecord::Tasks::DatabaseTasks.migrate if ENV['RAILS_ENV'] == 'production' ActiveRecord::Tasks::DatabaseTasks.migrate if ENV['RAILS_ENV'] == 'production'
end