114677695-converter_and_migration

This commit is contained in:
Stas 2016-04-29 18:17:41 +03:00
parent 576fa914b4
commit d04f558af5
3 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,9 @@
class AddPunyHostnameToNameserver < ActiveRecord::Migration
def change
add_column :nameservers, :hostname_puny, :string
execute "UPDATE nameservers n SET hostname_puny = n.hostname"
end
end