class Company < ActiveRecord::Base
belongs_to :user
delegate :mobile, :mobile=, :to => :user
delegate :real_name, :real_name=, :to => :user
delegate :nickname, :to => :user
delegate :purchase_amount_total, :to => :user
validates :user, presence: true
validates :real_name, presence: true
validates :mobile, presence: true, mobile: true
mobile 怎么验证?