Skip to content
Snippets Groups Projects
Commit 4f24dc31 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Fix FixAccountsUniqueIndex migration (#8212)

parent 625b5a56
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,10 @@ class FixAccountsUniqueIndex < ActiveRecord::Migration[5.2] ...@@ -6,6 +6,10 @@ class FixAccountsUniqueIndex < ActiveRecord::Migration[5.2]
def local? def local?
domain.nil? domain.nil?
end end
def acct
local? ? username : "#{username}@#{domain}"
end
end end
disable_ddl_transaction! disable_ddl_transaction!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment