changes has_one to belongs_to
changes company migration to belong_to :user