20170119000001_login_email_length_650.rb 278 B

12345678910
  1. class LoginEmailLength650 < ActiveRecord::Migration[4.2]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. change_column(:users, :login, :string, limit: 255)
  6. change_column(:users, :email, :string, limit: 255)
  7. end
  8. end