so I'm new to join tables. I'm not sure if that's even what I need. This is my current setup and situation: I have 2 user models.
Company
User
I need to create a table that belongs to the company model, but can be answered by the User model. Each company can have several applications thus I called my 3rd model
Application
so far I've done
class Application < ActiveRecord::Base
belongs_to :company
end
and
Class Company < ActiveRecord::Base
has_many :applications
end
I created the application model straight forward by running:
rails g model application
have I already made some mistakes, or am I doing fine so far? and what are the next steps here.
