mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
Migration fix
This commit is contained in:
parent
2dc5fc8410
commit
3d6e04a9de
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class DataUpdateRegisntrarCodes < ActiveRecord::Migration
|
||||||
next if r.code.present?
|
next if r.code.present?
|
||||||
r[:code] = r.name.parameterize
|
r[:code] = r.name.parameterize
|
||||||
puts "#{r.id}: #{r.changes.inspect}"
|
puts "#{r.id}: #{r.changes.inspect}"
|
||||||
r.save!
|
r.save(validate: false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue