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