Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-07-16 19:17:06 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-07-20 22:26:58 +0300
commitb5a46cf7bbd5e9a857e26443a40b5b1a6b696cb1 (patch)
tree3ecc4170d8d4e6d1b490561ee883b858d4c25894 /db
parent2d38a24a8688b3db5e8cba90e81a0eccd8086474 (diff)
Fix deprecation warnings for rails 6.0
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170813160104_cleanup_aspects_and_add_unique_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170813160104_cleanup_aspects_and_add_unique_index.rb b/db/migrate/20170813160104_cleanup_aspects_and_add_unique_index.rb
index 1d8c7325a..7741d5b08 100644
--- a/db/migrate/20170813160104_cleanup_aspects_and_add_unique_index.rb
+++ b/db/migrate/20170813160104_cleanup_aspects_and_add_unique_index.rb
@@ -17,7 +17,7 @@ class CleanupAspectsAndAddUniqueIndex < ActiveRecord::Migration[5.1]
Aspect.where(user_id: 0).delete_all
Aspect.joins("INNER JOIN aspects as a2 ON aspects.user_id = a2.user_id AND aspects.name = a2.name")
.where("aspects.id > a2.id").each do |aspect|
- aspect.update_attributes(name: "#{aspect.name}_#{UUID.generate(:compact)}")
+ aspect.update(name: "#{aspect.name}_#{UUID.generate(:compact)}")
end
end
end