Ich habe 3 Tabellen multiplizieren:Wie andere Tabelle in Ruby on Rails
table 1
hat Spalte price
tabel 2
hat Spalte total
table 3
hat Spalte total_price
Frage:
Ich mag die Spalte total_price
ist das Ergebnis aus der Multiplikation von price
und total
:
total_price = price * total
im sehr Neuling.
ist es 12.59 Beziehung – uzaif
seine MANY_TO_MANY beetwen Tabelle 1 und 2 –
wie können Sie Modell Verein – uzaif