mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
7 lines
169 B
Ruby
7 lines
169 B
Ruby
class AddDefalutRole < ActiveRecord::Migration[6.0]
|
|
def change
|
|
ApiUser.all.each do |u|
|
|
u.update_column :roles, ['super'] if u.roles.blank?
|
|
end
|
|
end
|
|
end
|