Recreate ipaddress field as PostgreSQL's inet type

This commit is contained in:
Christoph Haas 2021-02-22 11:31:34 +01:00
parent 16b14b1650
commit 3f2928e737
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,6 @@
class ChangeIpFieldToInet < ActiveRecord::Migration[6.1]
def change
remove_column :screenshots, :uploaderip
add_column :screenshots, :uploaderip, :inet
end
end