Restructure white ip interfaces #2713

This commit is contained in:
Martin Lensment 2015-09-15 14:00:19 +03:00
parent cc32312328
commit c6073c7e87
9 changed files with 32 additions and 23 deletions

View file

@ -0,0 +1,6 @@
class AddMultipleInterfacesForWhiteIp < ActiveRecord::Migration
def change
change_column :white_ips, :interface, "varchar[] USING (string_to_array(interface, ','))"
rename_column :white_ips, :interface, :interfaces
end
end