Cleaned up properties, many-to-one associations
commit3efc4781cb073a08d10761ab7e3aae8ea3041452
authorAlex Coles <alexbcoles@mac.com>
Tue, 6 May 2008 12:10:43 +0000 (6 14:10 +0200)
committerAlex Coles <alexbcoles@mac.com>
Tue, 6 May 2008 12:10:43 +0000 (6 14:10 +0200)
tree2feb6da551cb4615039b2c47cce89789e58d5d91
parentdc243ce5d02488338d19a8b046346228075b78c7
Cleaned up properties, many-to-one associations

* Added explicit association key for all
  many-to-one associations.
* Reordered declaration of properties, then
  associations in model classes.
* Added FIXME for duplicated product / store
  association in OrderLineItem.
* Updated product_spec to test for properties
  that exist.
17 files changed:
app/models/accounts/base_account.rb
app/models/address.rb
app/models/order.rb
app/models/order_line_item.rb
app/models/order_shipping_type.rb
app/models/order_shipping_weight.rb
app/models/order_status_code.rb
app/models/product_image.rb
app/models/promotion.rb
app/models/right.rb
app/models/role.rb
app/models/state.rb
app/models/store_item.rb
app/models/user_upload.rb
app/models/variation.rb
app/models/wishlist_item.rb
spec/models/product_spec.rb