Fix FixAccountsUniqueIndex migration (#8212)

This commit is contained in:
ThibG 2018-08-15 20:23:12 +02:00 committed by Eugen Rochko
parent f6ad5edbaa
commit a16d41e9fb

View file

@ -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!