Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
413a54e7be221e1dc488e36a5aa2860d31c44cca
discourse/db/migrate/20150713203955_enlarge_users_email_field.rb

9 lines
204 B
Ruby
Raw Normal View History

Fix all the errors to get our tests green on Rails 5.1.
2017-08-31 12:06:56 +08:00
class EnlargeUsersEmailField < ActiveRecord::Migration[4.2]
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-13 13:40:52 -07:00
def up
Add rubocop to our build. (#5004)
2017-07-28 10:20:09 +09:00
change_column :users, :email, :string, limit: 513
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-13 13:40:52 -07:00
end
def down
Add rubocop to our build. (#5004)
2017-07-28 10:20:09 +09:00
change_column :users, :email, :string, limit: 128
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-13 13:40:52 -07:00
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 178ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API