Recreate ipaddress field as PostgreSQL's inet type
This commit is contained in:
parent
16b14b1650
commit
3f2928e737
2 changed files with 8 additions and 2 deletions
6
db/migrate/20210222102719_change_ip_field_to_inet.rb
Normal file
6
db/migrate/20210222102719_change_ip_field_to_inet.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class ChangeIpFieldToInet < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
remove_column :screenshots, :uploaderip
|
||||
add_column :screenshots, :uploaderip, :inet
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue