#2 ぼちぼち

This commit is contained in:
2025-02-27 23:38:45 +09:00
parent c6deba7c26
commit 137c86bba7
18 changed files with 156 additions and 31 deletions
+6
View File
@@ -0,0 +1,6 @@
class IpAddress < ApplicationRecord
validates :ip_address, presence: true, length: { maximum: 16 }
validates :banned, inclusion: { in: [true, false] }
has_many :users
end