class User < ActiveRecord::Base belongs_to :company def full_name "#{first_name} #{last_name}" end def apply_for_license(well_type, location) company.licenses.create(well_type: well_type, location: location, applicant: self) end end