module Spree class Newsletter < Spree::Base validates :name, presence: true validates :email, presence: true, uniqueness: true end end