本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
abunchtell
/
mastodon
關注
1
收藏
0
複製
0
程式碼
問題
0
活動
瀏覽代碼
Fix FixAccountsUniqueIndex migration (
#8212
)
master
ThibG
5 年之前
committed by
Eugen Rochko
父節點
625b5a567b
當前提交
4f24dc31dc
共有
1 個檔案被更改
,包括
4 行新增
和
0 行删除
統一視圖
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
查看文件
@@ -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!
Write
Preview
Loading…
取消
儲存