mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
DEV: Upgrade Rails to version 7.2
This commit is contained in:

committed by
Loïc Guitaut

parent
f4d0a77d5f
commit
d6bec460a8
@ -70,7 +70,7 @@ end
|
||||
|
||||
task "db:rollback" => %w[environment set_locale] do |_, args|
|
||||
step = ENV["STEP"] ? ENV["STEP"].to_i : 1
|
||||
ActiveRecord::Base.connection.migration_context.rollback(step)
|
||||
ActiveRecord::Base.connection_pool.migration_context.rollback(step)
|
||||
Rake::Task["db:_dump"].invoke
|
||||
end
|
||||
|
||||
@ -236,7 +236,7 @@ task "db:migrate" => %w[
|
||||
redis: Discourse.redis.without_namespace,
|
||||
validity: 300,
|
||||
) do
|
||||
migrations = ActiveRecord::Base.connection.migration_context.migrations
|
||||
migrations = ActiveRecord::Base.connection_pool.migration_context.migrations
|
||||
now_timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
|
||||
epoch_timestamp = Time.at(0).utc.strftime("%Y%m%d%H%M%S").to_i
|
||||
|
||||
|
Reference in New Issue
Block a user