class ServiceToken < ActiveRecord::Base
  attr_readonly :service_id, :value

  belongs_to :service, inverse_of: :service_tokens

  validates :service, presence: true
  validates :value,   presence: true, length: { maximum: 100 }
end
