```ruby
scope :root, -> {  joins(:owner).includes(:owner).where(type: nil) }
```