0
down vote
favorite
I am using concerns for my rails application. I've different kind of
users so I have made a "loggable.rb" concern.

In my concern I have
´´´
included do
        has_one :auth_info
    end
´´´

because every of my user that will include the concern will have an
association with auth_info table.

The problem is, what foreign keys I need to put in my auth_info table?

E.G

I've 3 kind of users:

customer
seller
visitor
If I had only customer, in my table scheme I would have put the field

"id_customer"
but in my case?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/6f2ad5a51aec9a32337e9baa32b7f0ab%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to