SumOfUs/Champaign

View on GitHub
app/models/phone_number.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: phone_numbers
#
#  id      :integer          not null, primary key
#  number  :string
#  country :string
#

class PhoneNumber < ActiveRecord::Base
  validates :number, presence: true, phony_plausible: true
  phony_normalize :number
end