summaryrefslogtreecommitdiffstats
path: root/db/migrate/20150113213922_remove_users_mail.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-17 14:14:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-17 14:14:12 +0000
commite3618bdbecd9b5d86eb6d2c8c256ba3fcdf05189 (patch)
tree3b54c10eecece6cc2674491a76a4e5e932d82d1e /db/migrate/20150113213922_remove_users_mail.rb
parent7f29c2fd88f271ac59f1c10b90942fec57b35ae2 (diff)
downloadredmine-e3618bdbecd9b5d86eb6d2c8c256ba3fcdf05189.tar.gz
redmine-e3618bdbecd9b5d86eb6d2c8c256ba3fcdf05189.zip
Add support for multiple email addresses per user (#4244).
git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20150113213922_remove_users_mail.rb')
-rw-r--r--db/migrate/20150113213922_remove_users_mail.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150113213922_remove_users_mail.rb b/db/migrate/20150113213922_remove_users_mail.rb
new file mode 100644
index 000000000..8a8b48429
--- /dev/null
+++ b/db/migrate/20150113213922_remove_users_mail.rb
@@ -0,0 +1,9 @@
+class RemoveUsersMail < ActiveRecord::Migration
+ def self.up
+ remove_column :users, :mail
+ end
+
+ def self.down
+ raise IrreversibleMigration
+ end
+end