Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix FixAccountsUniqueIndex migration (mastodon#8212)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and Gargron committed Aug 15, 2018
1 parent 625b5a5 commit 4f24dc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/migrate/20180528141303_fix_accounts_unique_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ class Account < ApplicationRecord
def local?
domain.nil?
end

def acct
local? ? username : "#{username}@#{domain}"
end
end

disable_ddl_transaction!
Expand Down

0 comments on commit 4f24dc3

Please sign in to comment.