ish_models 0.0.33.50 → 0.0.33.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/event.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7d20be996fecd2563a6b86d5ebd78f253b8e8f3
|
4
|
+
data.tar.gz: 4c0578efb741abcbf11d58ed65a20e2d5cd6fcac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb6c6c31b12ef723dba11c909de33a0bdf8c2cfd14995e1826ac79debb4cc24b9aa49f2ac3f50e55a28dfe5c66428779bea553a7945c5999ceb5915387c76708
|
7
|
+
data.tar.gz: 5859e0377c1e81e6629f5f7added400598a8e79193723667b683119ce7e621c09400dc7ab3ad78c5fe4db814c5782f9293be174ed4c275361227aa110e4d91e0
|
data/lib/event.rb
CHANGED
@@ -7,10 +7,10 @@ class Event
|
|
7
7
|
field :name, :type => String
|
8
8
|
validates :name, :presence => true, :uniqueness => true
|
9
9
|
|
10
|
-
field :
|
11
|
-
validates :
|
10
|
+
field :eventname, :type => String
|
11
|
+
validates :eventname, :presence => true, :uniqueness => true
|
12
12
|
|
13
|
-
field :
|
13
|
+
field :description, :type => String
|
14
14
|
|
15
15
|
field :date, :type => DateTime
|
16
16
|
validates :date, :presence => true
|
@@ -19,3 +19,4 @@ class Event
|
|
19
19
|
validates :city, :presence => true
|
20
20
|
|
21
21
|
end
|
22
|
+
|