Description:
add submissions to users
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r738:d514585a072a - - 1 file changed: 2 inserted, 0 deleted
@@ -13,6 +13,8 | |||||
|
13 | has_many :test_pairs, :dependent => :delete_all |
|
13 | has_many :test_pairs, :dependent => :delete_all |
|
14 | has_many :testcases, :dependent => :destroy |
|
14 | has_many :testcases, :dependent => :destroy |
|
15 |
|
15 | ||
|
|
16 | + has_many :submissions | ||
|
|
17 | + | ||
|
16 | validates_presence_of :name |
|
18 | validates_presence_of :name |
|
17 | validates_format_of :name, :with => /\A\w+\z/ |
|
19 | validates_format_of :name, :with => /\A\w+\z/ |
|
18 | validates_presence_of :full_name |
|
20 | validates_presence_of :full_name |
You need to be logged in to leave comments.
Login now