Parent Directory | Revision Log
minor tweaks, mostly by erasing code which is alway good :-)
1 | dpavlin | 4 | use strict; |
2 | use warnings; | ||
3 | |||
4 | package Arh::Model::Picture; | ||
5 | use Jifty::DBI::Schema; | ||
6 | |||
7 | use Arh::Record schema { | ||
8 | |||
9 | column campaign => | ||
10 | label is _("Part of campaign"), | ||
11 | refers_to Arh::Model::Campaign, | ||
12 | is required, | ||
13 | is indexed, | ||
14 | since '0.0.4'; | ||
15 | |||
16 | column filename => | ||
17 | label is _("Picture filename"), | ||
18 | is required, | ||
19 | is indexed; | ||
20 | |||
21 | column type => | ||
22 | label is _("Type of picture"), | ||
23 | refers_to Arh::Model::PictureType, | ||
24 | is required, | ||
25 | is indexed, | ||
26 | dpavlin | 5 | since '0.0.4'; |
27 | dpavlin | 4 | |
28 | }; | ||
29 | |||
30 | # Your model-specific methods go here. | ||
31 | |||
32 | sub since { '0.0.3' } | ||
33 | |||
34 | 1; | ||
35 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |