Sha256: c3dc7730ff23a7c9662d77a3e905e42042cbb0fd119da20442e986f96aa41953

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

class AgentTicket < ActiveRecord::Base

  self.table_name = "agent_tickets"
  self.primary_key = 'id'	

  validates :tick_type, presence: true
  validates :name, presence: true
  VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
  validates :email, presence: true, format: {with: VALID_EMAIL_REGEX}
  validates :phone_number, presence: true
  validates :content, presence: true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
civic311_test3-0.0.2 app/models/agent_ticket.rb