]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/014_add_new_email.rb
Allow users to change their email address. Closes #546.
[rails.git] / db / migrate / 014_add_new_email.rb
diff --git a/db/migrate/014_add_new_email.rb b/db/migrate/014_add_new_email.rb
new file mode 100644 (file)
index 0000000..4077b7c
--- /dev/null
@@ -0,0 +1,9 @@
+class AddNewEmail < ActiveRecord::Migration
+  def self.up
+    add_column "users", "new_email", :string
+  end
+
+  def self.down
+    remove_column "users", "new_email"
+  end
+end