Ver código fonte

Merged r14052 (#19233).

git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14063 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.0.1
Jean-Philippe Lang 9 anos atrás
pai
commit
735c3ae5c5
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      db/migrate/20150113213922_remove_users_mail.rb

+ 5
- 1
db/migrate/20150113213922_remove_users_mail.rb Ver arquivo

@@ -4,6 +4,10 @@ class RemoveUsersMail < ActiveRecord::Migration
end

def self.down
raise IrreversibleMigration
add_column :users, :mail, :string, :limit => 60, :default => '', :null => false

EmailAddress.where(:is_default => true).each do |a|
User.where(:id => a.user_id).update_all(:mail => a.address)
end
end
end

Carregando…
Cancelar
Salvar