houdini/app/models/full_contact_photo.rb
2019-08-02 19:07:24 +02:00

13 lines
No EOL
359 B
Ruby

# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class FullContactPhoto < ApplicationRecord
attr_accessible \
:full_contact_info,
:full_contact_info_id,
:type_id, # i.e. twitter, linkedin, facebook
:is_primary, #bool
:url #string
belongs_to :full_contact_info
validates_presence_of :full_contact_info
end