20170418090031_add_view_news_to_all_existing_roles.rb 189 Bytes
Newer Older
1
class AddViewNewsToAllExistingRoles < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9
  def up
    Role.all.each { |role| role.add_permission! :view_news }
  end

  def down
    # nothing to revert
  end
end