I would like to run the rails to “generate” a script and create a model that belongs to two other models. Is there a way I can do this?
Figured it out. If you have a model named "child" that refers to a model named "mom" and a model named "dad", the syntax is:
rails generate model child mom:reference dad:reference
Source: https://habr.com/ru/post/1741515/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1741510/what-is-the-default-properties-that-eclipse-uses-to-launch-a-java-process-in-its-debugging-mode&usg=ALkJrhijGAAD8pBZAOnUZJW1akMncihknQloading screen for c # wpf list - c #Mysql stored procedure, where clause is sqlC ++ using one byte to store two variables - c ++Why is Django sending the wrong email template? - djangoasp.net Справочные темы Обработка исключений - multithreadingDifferences in Collapse Collapse in FF and Webkit - cssListCtrl - wxPython / Python - pythoninstalling glass fish on ubuntu karmic using synaptics package manager - ubuntuThe UIImagePickerController add-on is disabled when I add a View overlay - iphoneAll Articles