Ruby on rails 具有多行主地址的Rails模型最佳实践

Ruby on rails 具有多行主地址的Rails模型最佳实践,ruby-on-rails,models,Ruby On Rails,Models,这可能是一个简单/愚蠢的问题,但在命名模型的地址属性方面是否有最佳实践 以下是确定的还是有标准的方法?具体来说,这三个地址字段是否命名为ok?您如何处理国家/州与国家/地区之间的关系?zipcode、postalcode和code呢 t.string address1 t.string address2 t.string address3 t.string city t.string country t.string region t.string state t.string code? t

这可能是一个简单/愚蠢的问题,但在命名模型的地址属性方面是否有最佳实践

以下是确定的还是有标准的方法?具体来说,这三个地址字段是否命名为ok?您如何处理国家/州与国家/地区之间的关系?zipcode、postalcode和code呢

t.string address1
t.string address2
t.string address3

t.string city
t.string country
t.string region
t.string state
t.string code?
t.string zipcode?
t.string postalcode?

如果你想成为真正的全球化者,你应该至少添加地址4、地区、县、省和区。我相信还有很多:)最好从需要和成长开始。你在建立什么样的模式?“联系”或者可能是“领导”