Remove email column and index. Fix schema.
[b4.git] / app / models / user.rb
blobd9eb0ca5020e3ac0a2765b08d2957fcd66055dc2
1 class User < ActiveRecord::Base
2   # Include default devise modules. Others available are:
3   # :token_authenticatable, :confirmable,
4   # :lockable, :timeoutable and :omniauthable
5   devise :database_authenticatable, :registerable, :rememberable, :trackable
7   # Setup accessible (or protected) attributes for your model
8   attr_accessible :username, :password, :password_confirmation, :remember_me
9   # attr_accessible :title, :body
11   has_many :links, dependent: :destroy
12   def email_required?
13     false
14   end
15 end