]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20121203124841_change_note_address_to_inet.rb
Update to rails 7.2.1.2
[rails.git] / db / migrate / 20121203124841_change_note_address_to_inet.rb
1 class ChangeNoteAddressToInet < ActiveRecord::Migration[4.2]
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