我的表格中有一个称为“icon”的栏目,我一直用来核对“icon”是否可用于用户或用户。
这显然不是这样做的最佳途径,因为如果我想用一线来说绿化和用户,甚至其他物体,我就会被 st。
Do I need to make another table called icons_object and then list the icon_id and object_name? Seems like I would have to do a lot of repeating of the icon_id s if an icon is used for several objects but is this the way to go?
Also what would this table association in Rails be. Say the Table is called icons_objects. Then in Rails would it be
Icon.rb
icon有吗?
这里完全混淆不清,因此,希望得到任何帮助。
是否有办法实现这一正常化?