Task13Start - Create request table
See TasksExplained? for more infos about tasks. This task is based on the template at TaskTemplateStart
Status : closed
Category : gui
Date opened : 2007-25-01
Description : Setup a table to take the http requests
Referenced in stories/tasks :
Story6Start
Task14Start
Testsuite : test/unit/request_test.rb
Commited revision : 31
Remarks :
Table of contents
Changelog
2007-01-25 - Table scheme
The table should have the following simple scheme for a start:
| id | http_method | path | weight |
-------------------------------------------------
| 1 | GET | /index.html | 2 |
| 2 | POST | /action/post.php | 1 |
...
Rails does not like
method as col name. Thus using http_method. Likewise sqlite with order. Thus using weight instead of order.
The following validations are taking place:
- presence: http_method, path, weight
- numeral: weight
- uniqueness: weight
- http_method is a valid http method