setting up first view

This commit is contained in:
2015-10-03 06:38:11 +02:00
parent c7a2fbe62c
commit af827b7e77
13 changed files with 37 additions and 85 deletions
+9 -10
View File
@@ -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