This website works better with JavaScript.
Home
Explore
Help
Sign In
abunchtell
/
mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Activity
Browse Source
Fix FixAccountsUniqueIndex migration (
#8212
)
master
ThibG
5 years ago
committed by
Eugen Rochko
parent
625b5a567b
commit
4f24dc31dc
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
db/migrate/20180528141303_fix_accounts_unique_index.rb
+ 4
- 0
db/migrate/20180528141303_fix_accounts_unique_index.rb
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!
Write
Preview
Loading…
Cancel
Save