diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-07-20 22:34:39 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-07-20 22:34:39 +0300 |
commit | d4079070edc8b750257fffe5da9b0494504d5576 (patch) | |
tree | 554c91e960bca87d6d30a7a3559a9152a972272f /db | |
parent | 1b826eff9b72acc120c44e5e5dab2125abee001b (diff) | |
parent | 3c4da76be52d48bb6f2646cc269cc47c5298f2bc (diff) |
Merge branch 'next-minor' into develop
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170813160104_cleanup_aspects_and_add_unique_index.rb | 2 |
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 |