# frozen_string_literal: true # Consulatation emails class ConsultationEmail < ApplicationRecord # == Constants ============================================================ PROJECT_VALUES = { 1 => '0 - 1 mln.', 2 => '1 - 2 mln.', 3 => '2 - 3 mln.', 4 => '3 mln i powyżej' }.freeze # == Attributes =========================================================== # == Extensions =========================================================== # == Relationships ======================================================== belongs_to :dotation # == Validations ========================================================== validates :phone_number, presence: true validates :email, presence: true validates :project_value, presence: true # == Scopes =============================================================== # == Callbacks ============================================================ # == Class Methods ======================================================== # == Instance Methods ===================================================== end