mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
111297422-blocked_domains
This commit is contained in:
parent
4095450fb8
commit
11d543d967
5 changed files with 465 additions and 137 deletions
|
@ -0,0 +1,17 @@
|
|||
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
|
||||
|
||||
def down
|
||||
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue