<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - Schema/model design for "parts in general" vs "parts in system"]]></title>
		<link>http://railsforum.com/viewtopic.php?id=51543</link>
		<description><![CDATA[The most recent posts in Schema/model design for "parts in general" vs "parts in system".]]></description>
		<lastBuildDate>Sun, 09 Dec 2012 19:35:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Schema/model design for "parts in general" vs "parts in system"]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=157441#p157441</link>
			<description><![CDATA[<p>I&#039;m trying to figure out the best model choice for a system design application. My basic models:</p><p>System has_many Amplifiers<br />Amplifier has_many Speakers</p><p>I&#039;d like a drop-down list to appear when created a System that allows selection of existing amplifier parts. Each amplifier has a drop-down list for adding speakers. To populate these drop down lists, I&#039;ve created two more models:</p><p>Amplifier_part<br />Speaker_part</p><p>These models will contain all the information related to the part in isolation. In addition to part selection, some information will be recorded regarding the performance of each amplifier in a particular system installation. This means that the Amplifier model in System will contain a) a reference to an Amplifier_part and b) a few stored values related to in-system performance. </p><p>My question: is this the most straightforward way to achieve this? It feels a bit odd creating separate &quot;Part type&quot; vs &quot;Part instance&quot; models.</p>]]></description>
			<author><![CDATA[dummy@example.com (asfarley)]]></author>
			<pubDate>Sun, 09 Dec 2012 19:35:50 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=157441#p157441</guid>
		</item>
	</channel>
</rss>
