mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 04:23:44 +08:00
f8ba5346c4
- 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.
9 lines
205 B
Ruby
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
|