setting up first view
This commit is contained in:
+9
-10
@@ -1,16 +1,15 @@
|
||||
class Supporter
|
||||
include Mongoid::Document
|
||||
|
||||
field :first_name, type: String
|
||||
field :last_name, type: String
|
||||
field :street, type: String
|
||||
field :zip, type: Integer
|
||||
field :email, type: String
|
||||
field :support, type: String # Indicates the type of support
|
||||
field :votable, type: Boolean
|
||||
|
||||
field :first_name, type: String
|
||||
field :last_name, type: String
|
||||
field :street, type: String
|
||||
field :zip, type: Integer
|
||||
field :email, type: String
|
||||
field :support, type: String # Indicates the type of support
|
||||
field :age_category, type: String
|
||||
|
||||
validates :email, presence: true, uniqueness: true
|
||||
validates :support, presence: true
|
||||
validates :email, presence: true, uniqueness: true
|
||||
validates :support, presence: true
|
||||
validates :age_category, presence: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user