Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class EntityType < ApplicationRecord
- has_many :context_types, :dependent => :destroy
- end
- class ContextType < ApplicationRecord
- belongs_to :entity_type,optional: true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement