I would appreciate some advice or ideas on the best way to design my
data model for keeping track of multiple addresses for one customer.
Each customer should have one active address but I want to keep
previous addresses as well.
For instance, for each customer it would be nice to see the current
address using something like Customer.current_address put also be able
to get an array of previous addresses (ones that are not marked
active) using something like Customer.previous_addresses.
Any ideas on the best way to handle this?
class Customer < ActiveRecord::Base
class Address < ActiveRecord::Base
Thanks in advance,