Fix FixAccountsUniqueIndex migration (#8212)

lolsob-rspec
ThibG 2018-08-15 20:23:12 +02:00 committed by Eugen Rochko
parent f17d517aec
commit d329c3ab5e
1 changed files with 4 additions and 0 deletions

View File

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