mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Do not validate user in roles refactor migration
This commit is contained in:
parent
0d456e9a88
commit
099b4471ff
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class RefactorRoles < ActiveRecord::Migration
|
|||
User.paper_trail_off!
|
||||
User.all.each do |x|
|
||||
x.roles = ['admin']
|
||||
x.save
|
||||
x.save(validation: false)
|
||||
end
|
||||
User.paper_trail_on!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue