id user_id address 1 1 Tokyo 2 1 Yokohama 3 2 Saga 4 2 Chiba 5 3 Tokyo user_addressesテーブル 例えば、1対他のassociation class User < ApplicationRecord has_many :user_addresses end class UserAddress < ApplicationRecord belongs_to :user end user1 = User.find(1) user1.user_addresses # <UserAddress id: 1>, <UserAddress id: 2> user1.user_addresses.map(&:address) # ['Tokyo', ‘Yokohama']