Fix FixAccountsUniqueIndex migration (#8212)
parent
f17d517aec
commit
d329c3ab5e
|
@ -6,6 +6,10 @@ class FixAccountsUniqueIndex < ActiveRecord::Migration[5.2]
|
|||
def local?
|
||||
domain.nil?
|
||||
end
|
||||
|
||||
def acct
|
||||
local? ? username : "#{username}@#{domain}"
|
||||
end
|
||||
end
|
||||
|
||||
disable_ddl_transaction!
|
||||
|
|
Loading…
Reference in New Issue