has_one

If the User Model has the foreign key "extension_id" it's not has_on :extension it has to be belongs_to :extension

foreign keys are always on the belongs_to side. has_one/has_many has no foreign keys.