Created
June 19, 2020 01:42
-
-
Save raphox/81ebaf6d333e09032c3e5d72e4787b33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class UserNeo4j | |
| include Neo4j::ActiveNode | |
| include Neo4j::Timestamps | |
| property :slug | |
| property :first_name | |
| property :last_name | |
| property :website | |
| property :titles | |
| property :subtitles | |
| property :introduction | |
| property :slug | |
| serialize :titles, Array | |
| serialize :subtitles, Array | |
| attr_accessor :skip_load_website_titles | |
| has_many :out, :friends, type: :FRIEND, model_class: self, labels: false, unique: true | |
| validates :slug, exclusion: { in: %w[admin root] + RouteRecognizer.initial_path_segments }, uniqueness: true | |
| validates :first_name, presence: true | |
| validates :website, uniqueness: true, presence: true, website: true | |
| #... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment