summaryrefslogtreecommitdiffstats
path: root/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb
blob: 6f851a1f13db1d64dda9e78e7c82b463252cea54 (plain)
1
2
3
4
5
6
7
8
9
class AddViewNewsToAllExistingRoles < ActiveRecord::Migration
  def up
    Role.all.each { |role| role.add_permission! :view_news }
  end

  def down
    # nothing to revert
  end
end