class OpenRangeElement < ApplicationRecord belongs_to :element, :polymorphic => true belongs_to :open_range end