repo.or.cz
/
merb_mart.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Cleaned up properties, many-to-one associations
[merb_mart.git]
/
app
/
models
/
product_image.rb
blob
b479364ef83e6813d4a43b3324ad1b711195edb3
1
class ProductImage
2
3
include DataMapper::Resource
4
5
property :product_id, Fixnum # foreign-key
6
property :image_id, Fixnum # foreign-key
7
property :rank, Fixnum
8
9
many_to_one :product
10
many_to_one :image
11
12
end