Files
danbooru/db/migrate/20190109210822_rename_ip_addr_on_comments.rb
evazion 80f43f9a7c Fix #4038: Attempting to create an IP-ban bans the creator.
* Rename comments.ip_addr to comments.creator_ip_addr.
* Fix belongs_to_creator to not clobber ip_addr field.
2019-01-09 16:20:34 -06:00

6 lines
139 B
Ruby

class RenameIpAddrOnComments < ActiveRecord::Migration[5.2]
def change
rename_column :comments, :ip_addr, :creator_ip_addr
end
end