When I test some models in the console, how can I find the generated
sql at background?
Also, one of my table “quotes” has compound primary key “date” and
“ticker”, how can I declare that as the foreign key of another table
“portfolios”? What’s the convention here?
Thanks, but there’s nothing in test.log, only development.log repeating
what
I’ve seen in the console. I got “42000You have an error in your SQL
syntax”
error message on Mysql5 when using join table, so I want to see what
exactly
the SQL is.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.