このコミットが含まれているのは:
2026-04-26 16:08:32 +09:00
コミット e3780e2982
3個のファイルの変更113行の追加2行の削除
+2 -1
ファイルの表示
@@ -2,5 +2,6 @@ class IpAddress < ApplicationRecord
validates :ip_address, presence: true, length: { maximum: 16 }
validates :banned, inclusion: { in: [true, false] }
has_many :users
has_many :user_ips, dependent: :destroy
has_many :users, through: :user_ips
end