Skip to content

Commit

Permalink
Fixed issue #650 - Unable to process emails with email addresses long…
Browse files Browse the repository at this point in the history
…er then 140 signs.
  • Loading branch information
martini committed Feb 9, 2017
1 parent 261ebc0 commit 3e57a57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20120101000001_create_base.rb
Expand Up @@ -16,10 +16,10 @@ def up

create_table :users do |t|
t.references :organization, null: true
t.string :login, limit: 100, null: false
t.string :login, limit: 255, null: false
t.string :firstname, limit: 100, null: true, default: ''
t.string :lastname, limit: 100, null: true, default: ''
t.string :email, limit: 140, null: true, default: ''
t.string :email, limit: 255, null: true, default: ''
t.string :image, limit: 100, null: true
t.string :image_source, limit: 200, null: true
t.string :web, limit: 100, null: true, default: ''
Expand Down
10 changes: 10 additions & 0 deletions db/migrate/20170119000001_login_email_lentgh_650.rb
@@ -0,0 +1,10 @@
class LoginEmailLength650 < ActiveRecord::Migration
def up

# return if it's a new setup
return if !Setting.find_by(name: 'system_init_done')

change_column(:users, :login, :string, limit: 255)
change_column(:users, :email, :string, limit: 255)
end
end

0 comments on commit 3e57a57

Please sign in to comment.