discourse/db/migrate/20150713203955_enlarge_users_email_field.rb
Sam f8ba5346c4 SECURITY: Remove email validation check bypass
- Increase size of email column to varchar(513)
 - Give error message on signup when email is too large

Overall impact: Low, allows signups from blocked domains. Main risk is increased spam.
2015-07-14 09:46:00 +10:00

9 lines
205 B
Ruby

class EnlargeUsersEmailField < ActiveRecord::Migration
def up
change_column :users, :email, :string, :limit => 513
end
def down
change_column :users, :email, :string, :limit => 128
end
end