I have two models, Computer and Ipv6Address
Computer belongs_to Ipv6Address
Ipv6Address has_one Computer
Using ActiveRecord, how can I find a list of all Ipv6Addresses where no Computer is associated with it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ipv6address_id is foreign key in Computer table
and
id is PK of Ipv6Address_id table
This may work