]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20121203124841_change_note_address_to_inet.rb
use a controller method to handle cancan denials
[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