Joining Unrelated Tables in Rails Joining Unrelated Tables in Rails oracle oracle

Joining Unrelated Tables in Rails


The data might not be visible in the query, but the record will respond to those fields that were fetched by the query, meaining if the phone record has a number attribute for example, doing a call to .number will respond with the fetched number

address = Address.joins(....).select('*').firstaddress.number  # => this will print the phone number of the phone record.