lost by merge

This commit is contained in:
Vladimir Krylov 2016-01-25 11:07:21 +02:00
parent 6814a7569f
commit 61338bee9c

View file

@ -2,6 +2,12 @@ class NameAndPasswordForBlockedDomain < ActiveRecord::Migration
def up
add_column :blocked_domains, :name, :string
add_index :blocked_domains, :name
BlockedDomain.find_each do |x, domain|
names = domain.names
domain.update_columns(name: names[x])
end
remove_column :blocked_domains, :names
end