]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20121203124841_change_note_address_to_inet.rb
Make paragraph breaks more visible in changeset and note comments
[rails.git] / db / migrate / 20121203124841_change_note_address_to_inet.rb
1 class ChangeNoteAddressToInet < ActiveRecord::Migration[5.0]
2   def up
3     execute "ALTER TABLE note_comments ALTER COLUMN author_ip TYPE inet USING CAST(author_ip AS inet)"
4   end
5
6   def down
7     change_column :note_comments, :author_ip, :string
8   end
9 end