]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20121202155309_remove_author_name_from_note_comment.rb
use a controller method to handle cancan denials
[rails.git] / db / migrate / 20121202155309_remove_author_name_from_note_comment.rb
1 class RemoveAuthorNameFromNoteComment < ActiveRecord::Migration[5.0]
2   def up
3     remove_column :note_comments, :author_name
4   end
5
6   def down
7     add_column :note_comments, :author_name, :string
8   end
9 end