Fix FixAccountsUniqueIndex migration (#8212)

master
ThibG 6 years ago committed by Eugen Rochko
parent 625b5a567b
commit 4f24dc31dc
  1. 4
      db/migrate/20180528141303_fix_accounts_unique_index.rb

@ -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…
Cancel
Save