LandingPage < Jennifer::Model::Base with_timestamps mapping({ id: Primary32, designer_id: {type: Int32, null: false}, taxon_id: {type: Int32, null: true}, }, false) belongs_to :designer, Designer belongs_to :taxon, Taxon scope :has_designer { where { _designer_id != nil } } end