blob: 7a3ba67e3ffd1f34a7b8af49b8c5933b35e53c3f (
plain)
1
2
3
4
5
6
7
8
9
|
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
|