Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. class EntityType < ApplicationRecord
  2.  
  3. has_many :context_types, :dependent => :destroy
  4.  
  5. end
  6.  
  7. class ContextType < ApplicationRecord
  8.  
  9. belongs_to :entity_type,optional: true
  10.  
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement