class RemoveUserEmailRequirement < ActiveRecord::Migration
  def self.up
    change_column :user, :email, :string, :null => true
  end

  def self.down
    change_column :user, :email, :string, :default => "", :null => false
  end
end

Create migration to allow null emails
Create migration to allow null emails

Omniauth authentication providers do not always return a user's email
in the info hash sent back through the callback. Providers like Twitter
keep that information private/hidden. User records need to be able to
be saved without an email if they're using an omniauth provider.
