for real
This commit is contained in:
6
app/models/invitation.rb
Normal file
6
app/models/invitation.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Invitation < ApplicationRecord
|
||||
|
||||
validates :name, length: {maximum: 64}
|
||||
validates :attending, inclusion: { in: ["yes", "no"] }
|
||||
validates :additional_guest, length: {maximum: 64}
|
||||
end
|
||||
Reference in New Issue
Block a user