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-20 22:34:39 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-07-20 22:34:39 +0300
commitd4079070edc8b750257fffe5da9b0494504d5576 (patch)
tree554c91e960bca87d6d30a7a3559a9152a972272f /db
parent1b826eff9b72acc120c44e5e5dab2125abee001b (diff)
parent3c4da76be52d48bb6f2646cc269cc47c5298f2bc (diff)
Merge branch 'next-minor' into develop
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