]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20121202155309_remove_author_name_from_note_comment.rb
Remove the author_name field from notes
[rails.git] / db / migrate / 20121202155309_remove_author_name_from_note_comment.rb
diff --git a/db/migrate/20121202155309_remove_author_name_from_note_comment.rb b/db/migrate/20121202155309_remove_author_name_from_note_comment.rb
new file mode 100644 (file)
index 0000000..60d0ab2
--- /dev/null
@@ -0,0 +1,9 @@
+class RemoveAuthorNameFromNoteComment < ActiveRecord::Migration
+  def up
+    remove_column :note_comments, :author_name
+  end
+
+  def down
+    add_column :note_comments, :author_name, :string
+  end
+end