mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 01:03:35 +02:00
111297422-migration_fix
This commit is contained in:
parent
4a0b1fea39
commit
1370a5f0fe
1 changed files with 0 additions and 6 deletions
|
@ -2,12 +2,6 @@ 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue