Hello everybody,
I would like to configure this configuration:
clients
id
name
city
products
id
name
price
clients_products
client_id
product_id
date
ip_address
…But I am not sure about this following config because
clients_products table had “date” and “ip_address” attributs. Do you
think I need to build a model for clients_products able?
class Client < ActiveRecord::Base
has_and_belongs_to°many :products
end
class Product < ActiveRecord::Base
has_and_belongs_to°many :clients
end
Thanks