]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20121203124841_change_note_address_to_inet.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 20121203124841_change_note_address_to_inet.rb
1 # frozen_string_literal: true
2
3 class ChangeNoteAddressToInet < ActiveRecord::Migration[4.2]
4   def up
5     execute "ALTER TABLE note_comments ALTER COLUMN author_ip TYPE inet USING CAST(author_ip AS inet)"
6   end
7
8   def down
9     change_column :note_comments, :author_ip, :string
10   end
11 end