summaryrefslogtreecommitdiffstats
path: root/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb
blob: d010ba4974c1903405b40bfa5cb2b62e40a958e7 (plain)
1
2
3
4
5
6
7
8
9
class AddViewMessagesToAllExistingRoles < ActiveRecord::Migration
  def up
    Role.all.each { |role| role.add_permission! :view_messages }
  end

  def down
    # nothing to revert
  end
end