```ruby
class User
  include Mongoid::Document
  # Include default devise modules. Others available are: :token_authenticatable, :encryptable,
  # :confirmable, :lockable, :timeoutable, :database_authenticatable, :registerable, :recoverable,
  # :rememberable, :trackable, :validatable and :omniauthable
  devise :trackable, :database_authenticatable, :recoverable, :rememberable

  field :name
  field :contact, :type => Boolean
  field :admin, :type => Boolean, :default => false
  field :github_access_token
  field :signup_channel, :default => "unknown"

#  validates_presence_of :email, :contact, :name
#  validates_uniqueness_of :email, :case_sensitive => false
  attr_accessible :name, :contact
end
```

Store the http-referers of signups.
user
```ruby
class User
  include Mongoid::Document
  # Include default devise modules. Others available are: :token_authenticatable, :encryptable,
  # :confirmable, :lockable, :timeoutable, :database_authenticatable, :registerable, :recoverable,
  # :rememberable, :trackable, :validatable and :omniauthable
  devise :trackable, :database_authenticatable, :recoverable, :rememberable

  field :name
  field :contact, :type => Boolean
  field :admin, :type => Boolean, :default => false
  field :github_access_token
  field :signup_channel, :default => "unknown"
  field :signup_referer, :default => "unknown"

#  validates_presence_of :email, :contact, :name
#  validates_uniqueness_of :email, :case_sensitive => false
  attr_accessible :name, :contact
end
```
assistant