????
Current Path : C:/inetpub/vhost/redmine/db/migrate/ |
Current File : C:/inetpub/vhost/redmine/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb |
class AddViewMessagesToAllExistingRoles < ActiveRecord::Migration[4.2] def up Role.all.each { |role| role.add_permission! :view_messages } end def down # nothing to revert end end