fix ordering of fix method
This commit is contained in:
@@ -3,8 +3,9 @@
|
|||||||
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
|
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
|
||||||
|
|
||||||
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
||||||
|
|
||||||
|
ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id where updater_id <> creator_id")
|
||||||
|
|
||||||
Tag.find_each do |tag|
|
Tag.find_each do |tag|
|
||||||
tag.fix_post_count
|
tag.fix_post_count
|
||||||
end
|
end
|
||||||
|
|
||||||
ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id where updater_id <> creator_id")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user